forked from videolan/vlc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
241 lines (222 loc) · 9.17 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
video_filterdir = $(pluginsdir)/video_filter
noinst_HEADERS += video_filter/filter_picture.h
# video filters
libedgedetection_plugin_la_SOURCES = video_filter/edgedetection.c
libedgedetection_plugin_la_LIBADD = $(LIBM)
libadjust_plugin_la_SOURCES = video_filter/adjust.c video_filter/adjust_sat_hue.c video_filter/adjust_sat_hue.h
libadjust_plugin_la_LIBADD = $(LIBM)
libalphamask_plugin_la_SOURCES = video_filter/alphamask.c
libanaglyph_plugin_la_SOURCES = video_filter/anaglyph.c
libantiflicker_plugin_la_SOURCES = video_filter/antiflicker.c
libball_plugin_la_SOURCES = video_filter/ball.c
libball_plugin_la_LIBADD = $(LIBM)
libblendbench_plugin_la_SOURCES = video_filter/blendbench.c
libbluescreen_plugin_la_SOURCES = video_filter/bluescreen.c
libcanvas_plugin_la_SOURCES = video_filter/canvas.c
libcolorthres_plugin_la_SOURCES = video_filter/colorthres.c
libcolorthres_plugin_la_LIBADD = $(LIBM)
libcroppadd_plugin_la_SOURCES = video_filter/croppadd.c
liberase_plugin_la_SOURCES = video_filter/erase.c
libextract_plugin_la_SOURCES = video_filter/extract.c
libextract_plugin_la_LIBADD = $(LIBM)
libfps_plugin_la_SOURCES = video_filter/fps.c
libfreeze_plugin_la_SOURCES = video_filter/freeze.c
libgaussianblur_plugin_la_SOURCES = video_filter/gaussianblur.c
libgaussianblur_plugin_la_LIBADD = $(LIBM)
libgradfun_plugin_la_SOURCES = video_filter/gradfun.c video_filter/gradfun.h
libgradient_plugin_la_SOURCES = video_filter/gradient.c
libgradient_plugin_la_LIBADD = $(LIBM)
libgrain_plugin_la_SOURCES = video_filter/grain.c
libgrain_plugin_la_LIBADD = $(LIBM)
libhqdn3d_plugin_la_SOURCES = video_filter/hqdn3d.c video_filter/hqdn3d.h
libhqdn3d_plugin_la_LIBADD = $(LIBM)
libinvert_plugin_la_SOURCES = video_filter/invert.c
libmagnify_plugin_la_SOURCES = video_filter/magnify.c
libformatcrop_plugin_la_SOURCES = video_filter/formatcrop.c
libmirror_plugin_la_SOURCES = video_filter/mirror.c
libmotionblur_plugin_la_SOURCES = video_filter/motionblur.c
libmotiondetect_plugin_la_SOURCES = video_filter/motiondetect.c
liboldmovie_plugin_la_SOURCES = video_filter/oldmovie.c
liboldmovie_plugin_la_LIBADD = $(LIBM)
libposterize_plugin_la_SOURCES = video_filter/posterize.c
libpsychedelic_plugin_la_SOURCES = video_filter/psychedelic.c
libpsychedelic_plugin_la_LIBADD = $(LIBM)
libpuzzle_plugin_la_SOURCES = \
video_filter/puzzle/puzzle.c video_filter/puzzle/puzzle.h \
video_filter/puzzle/puzzle_bezier.c video_filter/puzzle/puzzle_bezier.h \
video_filter/puzzle/puzzle_lib.c video_filter/puzzle/puzzle_lib.h \
video_filter/puzzle/puzzle_mgt.c video_filter/puzzle/puzzle_mgt.h \
video_filter/puzzle/puzzle_pce.c video_filter/puzzle/puzzle_pce.h
libpuzzle_plugin_la_LIBADD = $(LIBM)
libripple_plugin_la_SOURCES = video_filter/ripple.c
libripple_plugin_la_LIBADD = $(LIBM)
librotate_plugin_la_SOURCES = video_filter/rotate.c
librotate_plugin_la_LIBADD = libvlc_motion.la $(LIBM)
librotate_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(video_filterdir)'
if HAVE_DARWIN
if !HAVE_TVOS
if !HAVE_WATCHOS
librotate_plugin_la_LDFLAGS += -Wl,-framework,IOKit,-framework,CoreFoundation
endif
endif
endif
libscale_plugin_la_SOURCES = video_filter/scale.c
libscene_plugin_la_SOURCES = video_filter/scene.c
libscene_plugin_la_LIBADD = $(LIBM)
libsepia_plugin_la_SOURCES = video_filter/sepia.c
libsharpen_plugin_la_SOURCES = video_filter/sharpen.c
libtransform_plugin_la_SOURCES = video_filter/transform.c
libvhs_plugin_la_SOURCES = video_filter/vhs.c
libwave_plugin_la_SOURCES = video_filter/wave.c
libwave_plugin_la_LIBADD = $(LIBM)
video_filter_LTLIBRARIES = \
libadjust_plugin.la \
libalphamask_plugin.la \
libball_plugin.la \
libblendbench_plugin.la \
libbluescreen_plugin.la \
libcanvas_plugin.la \
libcolorthres_plugin.la \
libcroppadd_plugin.la \
libedgedetection_plugin.la \
liberase_plugin.la \
libextract_plugin.la \
libgradient_plugin.la \
libgrain_plugin.la \
libgaussianblur_plugin.la \
libinvert_plugin.la \
libmagnify_plugin.la \
libformatcrop_plugin.la \
libmirror_plugin.la \
libmotionblur_plugin.la \
libmotiondetect_plugin.la \
libposterize_plugin.la \
libpsychedelic_plugin.la \
libripple_plugin.la \
libscale_plugin.la \
libscene_plugin.la \
libsepia_plugin.la \
libsharpen_plugin.la \
libtransform_plugin.la \
libwave_plugin.la \
libgradfun_plugin.la \
libantiflicker_plugin.la \
libhqdn3d_plugin.la \
libanaglyph_plugin.la \
liboldmovie_plugin.la \
libvhs_plugin.la \
libfps_plugin.la \
libfreeze_plugin.la \
libpuzzle_plugin.la \
librotate_plugin.la
# macOS / iOS hardware video filters
libci_filters_plugin_la_SOURCES = video_filter/ci_filters.m codec/vt_utils.c codec/vt_utils.h
libci_filters_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(video_filterdir)' \
-Wl,-framework,Foundation -Wl,-framework,CoreGraphics -Wl,-framework,CoreImage \
-Wl,-framework,CoreVideo
if HAVE_OSX
libci_filters_plugin_la_LDFLAGS += -Wl,-framework,OpenGL
video_filter_LTLIBRARIES += libci_filters_plugin.la
endif
if HAVE_IOS_OR_TVOS
libci_filters_plugin_la_LDFLAGS += -Wl,-framework,OpenGLES
video_filter_LTLIBRARIES += libci_filters_plugin.la
endif
libopengl_filter_plugin_la_SOURCES = video_filter/opengl.c
if HAVE_LINUX
if HAVE_ANDROID
libopengl_filter_plugin_la_LIBADD = libvlc_opengles.la
libopengl_filter_plugin_la_CFLAGS = -DUSE_OPENGL_ES2=1
video_filter_LTLIBRARIES += libopengl_filter_plugin.la
else
libopengl_filter_plugin_la_LIBADD = libvlc_opengl.la
if HAVE_GL
video_filter_LTLIBRARIES += libopengl_filter_plugin.la
endif
endif
endif
if HAVE_IOS_OR_TVOS
libopengl_filter_plugin_la_LIBADD = libvlc_opengles.la
libopengl_filter_plugin_la_CFLAGS = -DUSE_OPENGL_ES2=1
video_filter_LTLIBRARIES += libopengl_filter_plugin.la
endif
if HAVE_OSX
libopengl_filter_plugin_la_LIBADD = libvlc_opengl.la
video_filter_LTLIBRARIES += libopengl_filter_plugin.la
endif
libdeinterlace_common_la_SOURCES = video_filter/deinterlace/common.c video_filter/deinterlace/common.h
libdeinterlace_common_la_LDFLAGS = -static
noinst_LTLIBRARIES += libdeinterlace_common.la
libdeinterlace_plugin_la_SOURCES = \
video_filter/deinterlace/deinterlace.c video_filter/deinterlace/deinterlace.h \
video_filter/deinterlace/merge.c video_filter/deinterlace/merge.h \
video_filter/deinterlace/helpers.c video_filter/deinterlace/helpers.h \
video_filter/deinterlace/algo_basic.c video_filter/deinterlace/algo_basic.h \
video_filter/deinterlace/algo_x.c video_filter/deinterlace/algo_x.h \
video_filter/deinterlace/algo_yadif.c video_filter/deinterlace/algo_yadif.h \
video_filter/deinterlace/yadif.h \
video_filter/deinterlace/algo_phosphor.c video_filter/deinterlace/algo_phosphor.h \
video_filter/deinterlace/algo_ivtc.c video_filter/deinterlace/algo_ivtc.h
libdeinterlace_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
libdeinterlace_plugin_la_CFLAGS = $(AM_CFLAGS)
if HAVE_X86ASM
libdeinterlace_plugin_la_SOURCES += video_filter/deinterlace/yadif_x86.asm
# inline ASM doesn't build with -O0
libdeinterlace_plugin_la_CFLAGS += -O2
endif
if HAVE_ALTIVEC
libdeinterlace_plugin_la_CPPFLAGS += -DCAN_COMPILE_C_ALTIVEC
endif
libdeinterlace_plugin_la_LIBADD = libdeinterlace_common.la
video_filter_LTLIBRARIES += libdeinterlace_plugin.la
libglblend_plugin_la_SOURCES = video_filter/deinterlace/glblend.c
libglblend_plugin_la_CFLAGS = $(AM_CFLAGS)
if HAVE_GL
libglblend_plugin_la_LIBADD = libvlc_opengl.la
video_filter_LTLIBRARIES += libglblend_plugin.la
endif
if HAVE_OSX
video_filter_LTLIBRARIES += libglblend_plugin.la
libglblend_plugin_la_LIBADD = libvlc_opengl.la
endif
if HAVE_IOS_OR_TVOS
video_filter_LTLIBRARIES += libglblend_plugin.la
libglblend_plugin_la_LIBADD = libvlc_opengles.la
libglblend_plugin_la_CFLAGS += -DUSE_OPENGL_ES2=1
endif
if !HAVE_GL
if HAVE_GLES2
libglblend_plugin_la_LIBADD = libvlc_opengles.la
libglblend_plugin_la_CFLAGS += -DUSE_OPENGL_ES2=1
video_filter_LTLIBRARIES += libglblend_plugin.la
endif
endif
libopencv_wrapper_plugin_la_SOURCES = video_filter/opencv_wrapper.c
libopencv_wrapper_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(OPENCV_CFLAGS)
libopencv_wrapper_plugin_la_LIBADD = $(OPENCV_LIBS)
libopencv_wrapper_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(video_filterdir)'
video_filter_LTLIBRARIES += $(LTLIBopencv_wrapper)
EXTRA_LTLIBRARIES += libopencv_wrapper_plugin.la
libpostproc_plugin_la_SOURCES = video_filter/postproc.c
libpostproc_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(POSTPROC_CFLAGS) $(AVUTIL_CFLAGS)
libpostproc_plugin_la_LIBADD = $(LIBM) $(POSTPROC_LIBS) $(AVUTIL_LIBS)
libpostproc_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(video_filterdir)'
video_filter_LTLIBRARIES += $(LTLIBpostproc)
EXTRA_LTLIBRARIES += libpostproc_plugin.la
if HAVE_AMF_ENHANCER
libamf_vqenhancer_plugin_la_SOURCES = video_filter/amf_vqenhancer.c \
hw/amf/amf_helper.c hw/amf/amf_helper.h
if HAVE_WIN32
libamf_vqenhancer_plugin_la_LIBADD = $(LIBCOM) libd3d11_common.la -ld3d11
video_filter_LTLIBRARIES += libamf_vqenhancer_plugin.la
endif
endif
# misc
libblend_plugin_la_SOURCES = video_filter/blend.cpp
video_filter_LTLIBRARIES += libblend_plugin.la
libopencv_example_plugin_la_SOURCES = video_filter/opencv_example.cpp video_filter/filter_event_info.h
libopencv_example_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(OPENCV_CFLAGS)
libopencv_example_plugin_la_LIBADD = $(OPENCV_LIBS)
libopencv_example_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(video_filterdir)'
video_filter_LTLIBRARIES += $(LTLIBopencv_example)
EXTRA_LTLIBRARIES += libopencv_example_plugin.la