forked from vapoursynth/vapoursynth
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile.am
271 lines (196 loc) · 7.39 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
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
warningflags = -Wall -Wextra -Wno-unused-parameter -Wno-unused-function -Wno-ignored-attributes
commoncflags = -O3 -fvisibility=hidden $(warningflags) -I$(srcdir)/include $(DEBUGCFLAGS) $(MFLAGS) $(UNICODECFLAGS) $(STACKREALIGN)
AM_CXXFLAGS = -std=c++17 $(commoncflags)
AM_CFLAGS = -std=c99 $(commoncflags)
ACLOCAL_AMFLAGS = -I m4
cython_verbose = $(cython_verbose_$(V))
cython_verbose_ = $(cython_verbose_$(AM_DEFAULT_VERBOSITY))
cython_verbose_0 = @echo " CYTHON " $@;
.pyx.c:
$(cython_verbose)$(CYTHON) -o $@ $<
commonlibtoolflags = --tag=disable-static
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA =
EXTRA_DIST = pc/vapoursynth.pc.in \
pc/vapoursynth-script.pc.in
lib_LTLIBRARIES =
if VSCORE
noinst_LTLIBRARIES =
lib_LTLIBRARIES += libvapoursynth.la
libvapoursynth_la_SOURCES = src/core/audiofilters.cpp \
src/core/averageframesfilter.cpp \
src/core/boxblurfilter.cpp \
src/core/cpufeatures.cpp \
src/core/cpufeatures.h \
src/core/expr/expr.cpp \
src/core/expr/expr.h \
src/core/expr/jitcompiler.cpp \
src/core/expr/jitcompiler.h \
src/core/exprfilter.cpp \
src/core/filtershared.h \
src/core/genericfilters.cpp \
src/core/internalfilters.h \
src/core/kernel/average.cpp \
src/core/kernel/average.h \
src/core/kernel/cpulevel.cpp \
src/core/kernel/cpulevel.h \
src/core/kernel/generic.cpp \
src/core/kernel/generic.h \
src/core/kernel/merge.c \
src/core/kernel/merge.h \
src/core/kernel/planestats.c \
src/core/kernel/planestats.h \
src/core/kernel/transpose.c \
src/core/kernel/transpose.h \
src/core/lutfilters.cpp \
src/core/mergefilters.cpp \
src/core/reorderfilters.cpp \
src/core/settings.cpp \
src/core/settings.h \
src/core/simplefilters.cpp \
src/core/ter-116n.h \
src/core/textfilter.cpp \
src/core/version.h \
src/core/vsapi.cpp \
src/core/vscore.cpp \
src/core/vscore.h \
src/core/vslog.cpp \
src/core/vslog.h \
src/core/vsresize.cpp \
src/core/vsthreadpool.cpp \
src/core/x86utils.h
pkginclude_HEADERS = include/VapourSynth.h \
include/VapourSynth4.h \
include/VSConstants4.h \
include/VSHelper.h \
include/VSHelper4.h \
include/VSScript.h \
include/VSScript4.h
pkgconfig_DATA += pc/vapoursynth.pc
libvapoursynth_la_LDFLAGS = -no-undefined -avoid-version $(UNDEFINEDLDFLAGS)
libvapoursynth_la_CPPFLAGS = $(PTHREAD_CFLAGS) $(ZIMG_CFLAGS) -DVS_PATH_PLUGINDIR='"$(PLUGINDIR)"'
libvapoursynth_la_LIBADD = $(PTHREAD_LIBS) $(ZIMG_LIBS) $(DLOPENLIB)
if X86ASM
noinst_LTLIBRARIES += libvapoursynth_avx2.la
libvapoursynth_avx2_la_SOURCES = src/core/kernel/x86/generic_avx2.cpp \
src/core/kernel/x86/merge_avx2.c \
src/core/kernel/x86/planestats_avx2.c
libvapoursynth_avx2_la_CFLAGS = $(AM_CFLAGS) $(AVX2FLAGS)
libvapoursynth_avx2_la_CXXFLAGS = $(AM_CXXFLAGS) $(AVX2FLAGS)
libvapoursynth_la_SOURCES += src/core/expr/jitasm.h \
src/core/expr/jitcompiler_x86.cpp \
src/core/kernel/x86/average_sse2.c \
src/core/kernel/x86/generic_sse2.cpp \
src/core/kernel/x86/merge_sse2.c \
src/core/kernel/x86/planestats_sse2.c \
src/core/kernel/x86/transpose_sse2.c
libvapoursynth_la_LIBADD += libvapoursynth_avx2.la
endif # X86ASM
if PYTHONMODULE
pyexec_LTLIBRARIES = vapoursynth.la
vapoursynth_la_SOURCES = src/cython/vapoursynth.pyx
vapoursynth_la_CFLAGS= $(AM_CFLAGS) -fvisibility=default -Wno-implicit-fallthrough
vapoursynth_la_CPPFLAGS = $(PYTHON3_CFLAGS)
vapoursynth_la_LIBADD = $(MAYBE_PYTHON3_LIBS) libvapoursynth.la
vapoursynth_la_LDFLAGS = $(PYTHON_MODULE_UNDEFINED) -avoid-version -module
vapoursynth_la_LIBTOOLFLAGS = $(commonlibtoolflags)
MOSTLYCLEANFILES = src/cython/vapoursynth.c \
src/cython/vapoursynth.h \
src/cython/vapoursynth_api.h
endif # PYTHONMODULE
endif # VSCORE
if VSSCRIPT
lib_LTLIBRARIES += libvapoursynth-script.la
pkgconfig_DATA += pc/vapoursynth-script.pc
libvapoursynth_script_la_SOURCES = src/vsscript/vsscript.cpp
libvapoursynth_script_la_LDFLAGS = -no-undefined -version-info 0 $(UNDEFINEDLDFLAGS)
libvapoursynth_script_la_CPPFLAGS = $(PYTHON3_CFLAGS)
libvapoursynth_script_la_LIBADD = $(PYTHON3_LIBS)
if VSPIPE
bin_PROGRAMS = vspipe
vspipe_SOURCES = src/vspipe/vspipe.cpp \
src/vspipe/printgraph.cpp \
src/vspipe/md5.c \
src/vspipe/vsjson.cpp \
src/common/wave.cpp
vspipe_LDADD = libvapoursynth-script.la
vspipe_LDFLAGS = $(UNICODELDFLAGS)
endif # VSPIPE
endif # VSSCRIPT
pkglib_LTLIBRARIES =
commonpluginldflags = -no-undefined -avoid-version $(PLUGINLDFLAGS) $(UNDEFINEDLDFLAGS)
if SUBTEXT
pkglib_LTLIBRARIES += libsubtext.la
libsubtext_la_SOURCES = src/filters/subtext/text.c \
src/filters/subtext/common.c \
src/filters/subtext/common.h \
src/filters/subtext/image.cpp \
src/filters/subtext/toass.cpp \
src/filters/subtext/toutf8.c
libsubtext_la_LDFLAGS = $(commonpluginldflags)
libsubtext_la_LIBTOOLFLAGS = $(commonlibtoolflags)
libsubtext_la_CPPFLAGS = $(LIBASS_CFLAGS) $(FFMPEG_CFLAGS)
libsubtext_la_LIBADD = $(LIBASS_LIBS) $(FFMPEG_LIBS)
endif
if EEDI3
pkglib_LTLIBRARIES += libeedi3.la
libeedi3_la_SOURCES = src/filters/eedi3/eedi3.c
libeedi3_la_LDFLAGS = $(commonpluginldflags)
libeedi3_la_LIBTOOLFLAGS = $(commonlibtoolflags)
endif
if IMWRI
pkglib_LTLIBRARIES += libimwri.la
libimwri_la_SOURCES = src/filters/imwri/imwri.cpp
libimwri_la_LDFLAGS = $(commonpluginldflags)
libimwri_la_LIBTOOLFLAGS = $(commonlibtoolflags)
libimwri_la_CPPFLAGS = $(IMAGEMAGICK_CFLAGS)
libimwri_la_LIBADD = $(IMAGEMAGICK_LIBS)
endif
if MISCFILTERS
pkglib_LTLIBRARIES += libmiscfilters.la
libmiscfilters_la_SOURCES = src/filters/misc/miscfilters.cpp
libmiscfilters_la_LDFLAGS = $(commonpluginldflags)
libmiscfilters_la_LIBTOOLFLAGS = $(commonlibtoolflags)
endif
if MORPHO
pkglib_LTLIBRARIES += libmorpho.la
libmorpho_la_SOURCES = src/filters/morpho/morpho.c \
src/filters/morpho/morpho_filters.c \
src/filters/morpho/morpho_filters.h \
src/filters/morpho/morpho.h \
src/filters/morpho/morpho_selems.c \
src/filters/morpho/morpho_selems.h
libmorpho_la_LDFLAGS = $(commonpluginldflags)
libmorpho_la_LIBTOOLFLAGS = $(commonlibtoolflags)
endif
if OCR
pkglib_LTLIBRARIES += libocr.la
libocr_la_SOURCES = src/filters/ocr/ocr.c
libocr_la_LDFLAGS = $(commonpluginldflags)
libocr_la_LIBTOOLFLAGS = $(commonlibtoolflags)
libocr_la_CPPFLAGS = $(TESSERACT_CFLAGS)
libocr_la_LIBADD = $(TESSERACT_LIBS)
endif
if REMOVEGRAIN
pkglib_LTLIBRARIES += libremovegrain.la
libremovegrain_la_SOURCES = src/filters/removegrain/clense.cpp \
src/filters/removegrain/removegrainvs.cpp \
src/filters/removegrain/repairvs.cpp \
src/filters/removegrain/shared.cpp \
src/filters/removegrain/shared.h \
src/filters/removegrain/verticalcleaner.cpp
libremovegrain_la_LDFLAGS = $(commonpluginldflags)
libremovegrain_la_LIBTOOLFLAGS = $(commonlibtoolflags)
endif
if VINVERSE
pkglib_LTLIBRARIES += libvinverse.la
libvinverse_la_SOURCES = src/filters/vinverse/vinverse.c
libvinverse_la_LDFLAGS = $(commonpluginldflags)
libvinverse_la_LIBTOOLFLAGS = $(commonlibtoolflags)
endif
if VIVTC
pkglib_LTLIBRARIES += libvivtc.la
libvivtc_la_SOURCES = src/filters/vivtc/vivtc.c
libvivtc_la_LDFLAGS = $(commonpluginldflags)
libvivtc_la_LIBTOOLFLAGS = $(commonlibtoolflags)
endif