modules: use different directory prefixes for each plugins subdirectory
[vlc.git] / modules / codec / Modules.am
1 noinst_HEADERS =
2 noinst_LTLIBRARIES =
3
4 SOURCES_flac = flac.c
5 SOURCES_vorbis = vorbis.c
6 SOURCES_theora = theora.c
7 SOURCES_tremor = vorbis.c
8 SOURCES_speex = speex.c
9 SOURCES_opus = opus.c opus_header.c opus_header.h
10 SOURCES_shine = shine/shine_mod.c shine/enc_base.h
11 EXTRA_DIST += shine/shine.c
12 SOURCES_wma_fixed = \
13         wmafixed/asf.h wmafixed/bswap.h \
14         wmafixed/fft.c wmafixed/fft.h \
15         wmafixed/mdct.c wmafixed/mdct.h \
16         wmafixed/wma.c wmafixed/wmadeci.c \
17         wmafixed/bitstream.c wmafixed/bitstream.h \
18         wmafixed/wmadata.h wmafixed/wmadec.h \
19         wmafixed/wmafixed.c wmafixed/wmafixed.h
20 SOURCES_libmpeg2 = libmpeg2.c
21 SOURCES_rawvideo = rawvideo.c
22 SOURCES_quicktime = quicktime.c
23 SOURCES_faad = faad.c
24 SOURCES_dvbsub = dvbsub.c
25 SOURCES_telx = telx.c
26 SOURCES_x264 = x264.c
27 SOURCES_x262 = x264.c
28 SOURCES_x26410b = x264.c
29 SOURCES_twolame = twolame.c
30 SOURCES_dirac = dirac.c
31 SOURCES_png = png.c
32 SOURCES_svcdsub = svcdsub.c
33 SOURCES_cvdsub = cvdsub.c
34 SOURCES_sdl_image = sdl_image.c
35 SOURCES_zvbi = zvbi.c
36 SOURCES_cdg = cdg.c
37 SOURCES_fluidsynth = fluidsynth.c
38 SOURCES_cc = cc.c cc.h substext.h
39 SOURCES_kate = kate.c
40 SOURCES_schroedinger = schroedinger.c
41 SOURCES_libass = libass.c
42 SOURCES_subsdec = subsdec.c substext.h
43 SOURCES_subsusf = subsusf.c
44 SOURCES_t140 = t140.c
45 SOURCES_crystalhd = crystalhd.c h264_nal.h
46 SOURCES_spudec = spudec/spudec.c spudec/parse.c spudec/spudec.h
47 SOURCES_stl = stl.c
48 SOURCES_dmo = dmo/dmo.c dmo/dmo.h dmo/buffer.c
49 SOURCES_ddummy = ddummy.c
50 SOURCES_edummy = edummy.c
51 SOURCES_fdkaac = fdkaac.c
52 SOURCES_scte27 = scte27.c
53 SOURCES_qsv = qsv.c
54
55 codec_LTLIBRARIES += \
56         libcc_plugin.la \
57         libcdg_plugin.la \
58         libcvdsub_plugin.la \
59         libddummy_plugin.la \
60         libdvbsub_plugin.la \
61         librawvideo_plugin.la \
62         libspudec_plugin.la \
63         libsvcdsub_plugin.la \
64         libsubsdec_plugin.la \
65         libsubsusf_plugin.la \
66         libstl_plugin.la \
67         libscte27_plugin.la \
68         $(NULL)
69
70 if ENABLE_SOUT
71 codec_LTLIBRARIES += \
72         libt140_plugin.la \
73         libedummy_plugin.la
74 endif
75
76 ### Audio codecs ###
77
78 liba52_plugin_la_SOURCES = a52.c a52.h
79 liba52_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
80
81 libadpcm_plugin_la_SOURCES = adpcm.c
82 libadpcm_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
83
84 libaes3_plugin_la_SOURCES = aes3.c
85 libaes3_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
86
87 libaraw_plugin_la_SOURCES = araw.c
88 libaraw_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
89
90 libdts_plugin_la_SOURCES = dts.c
91 libdts_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
92 libdts_plugin_la_LIBADD = libvlc_dts_header.la $(AM_LIBADD)
93
94 libvlc_dts_header_la_SOURCES = dts_header.c dts_header.h
95 libvlc_dts_header_la_LDFLAGS = -static
96 noinst_LTLIBRARIES += libvlc_dts_header.la
97
98 libg711_plugin_la_SOURCES = g711.c
99 libg711_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
100
101 liblpcm_plugin_la_SOURCES = lpcm.c
102 liblpcm_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
103
104 libmpeg_audio_plugin_la_SOURCES = mpeg_audio.c
105 libmpeg_audio_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
106
107 libuleaddvaudio_plugin_la_SOURCES = uleaddvaudio.c
108 libuleaddvaudio_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
109
110 codec_LTLIBRARIES += \
111         liba52_plugin.la \
112         libadpcm_plugin.la \
113         libaes3_plugin.la \
114         libaraw_plugin.la \
115         libdts_plugin.la \
116         libg711_plugin.la \
117         liblpcm_plugin.la \
118         libmpeg_audio_plugin.la \
119         libuleaddvaudio_plugin.la
120
121 ### FFmpeg/libav ###
122 libavcodec_plugin_la_SOURCES = \
123         avcodec/avcommon_compat.h \
124         avcodec/avcommon.h \
125         avcodec/video.c \
126         avcodec/subtitle.c \
127         avcodec/audio.c \
128         avcodec/cpu.c \
129         avcodec/fourcc.c \
130         avcodec/chroma.c avcodec/chroma.h \
131         avcodec/va.c avcodec/va.h \
132         avcodec/avcodec.c avcodec/avcodec.h
133 if ENABLE_SOUT
134 libavcodec_plugin_la_SOURCES += avcodec/encoder.c
135 endif
136 libavcodec_plugin_la_CFLAGS = $(AM_CFLAGS) $(AVCODEC_CFLAGS)
137 libavcodec_plugin_la_LIBADD = $(AM_LIBADD) $(AVCODEC_LIBS) $(LIBM)
138 libavcodec_plugin_la_LDFLAGS = $(AM_LDFLAGS) $(SYMBOLIC_LDFLAGS)
139 if HAVE_WIN32
140 libavcodec_plugin_la_DEPENDENCIES = libavcodec_plugin.rc.o
141 endif
142
143 if MERGE_FFMPEG
144 libavcodec_plugin_la_SOURCES += \
145         ../demux/avformat/demux.c \
146         ../access/avio.c
147 libavcodec_plugin_la_CFLAGS += $(AVFORMAT_CFLAGS)
148 libavcodec_plugin_la_LIBADD += $(AVFORMAT_LIBS)
149 if ENABLE_SOUT
150 libavcodec_plugin_la_SOURCES += \
151         ../demux/avformat/mux.c
152 endif
153 libavcodec_plugin_la_CFLAGS += -DMERGE_FFMPEG
154 endif
155 if HAVE_AVCODEC
156 codec_LTLIBRARIES += libavcodec_plugin.la
157 endif
158
159 ### avcodec hardware acceleration ###
160
161 libvaapi_plugin_la_SOURCES = \
162         avcodec/copy.c avcodec/copy.h \
163         avcodec/vaapi.c
164 libvaapi_plugin_la_CFLAGS = $(AM_CFLAGS) \
165         $(LIBVA_CFLAGS) $(X_CFLAGS) $(AVCODEC_CFLAGS)
166 libvaapi_plugin_la_LIBADD = $(AM_LIBADD) \
167         $(LIBVA_LIBS) $(X_LIBS) $(X_PRE_LIBS) -lX11
168 if HAVE_AVCODEC_VAAPI
169 codec_LTLIBRARIES += libvaapi_plugin.la
170 endif
171
172 libdxva2_plugin_la_SOURCES = \
173         avcodec/copy.c avcodec/copy.h \
174         avcodec/dxva2.c
175 libdxva2_plugin_la_LIBADD = $(AM_LIBADD) -lole32 -lshlwapi -luuid
176 if HAVE_AVCODEC_DXVA2
177 codec_LTLIBRARIES += libdxva2_plugin.la
178 endif
179 libdxva2_plugin_la_DEPENDENCIES = libdxva2_plugin.rc.o
180
181 libvda_plugin_la_SOURCES = \
182         avcodec/copy.c avcodec/copy.h \
183         avcodec/vda.c
184 libvda_plugin_la_CFLAGS = $(AM_CFLAGS) $(AVCODEC_CFLAGS)
185 libvda_plugin_la_LDFLAGS = -Wl,-framework,CoreFoundation,-framework,VideoDecodeAcceleration,-framework,QuartzCore
186 if HAVE_AVCODEC_VDA
187 codec_LTLIBRARIES += libvda_plugin.la
188 endif
189
190 libhwdummy_plugin_la_SOURCES = avcodec/hwdummy.c
191 libhwdummy_plugin_la_CFLAGS = $(AM_CFLAGS) $(VDPAU_CFLAGS) $(AVCODEC_CFLAGS)
192 libhwdummy_plugin_la_LIBADD = $(AM_LIBADD) $(AVCODEC_LIBS)
193 # FIXME: hwdummy only needs libavutil, and only if avcodec < 55.13.0
194 if HAVE_AVCODEC_VDPAU
195 codec_LTLIBRARIES += libhwdummy_plugin.la
196 endif
197 if HAVE_WIN32
198 libhwdummy_plugin_la_DEPENDENCIES = libhwdummy_plugin.rc.o
199 endif
200
201 ### XWD ###
202 libxwd_plugin_la_SOURCES = xwd.c
203 libxwd_plugin_la_CFLAGS = $(AM_CFLAGS) $(XPROTO_CFLAGS)
204 libxwd_plugin_la_LIBADD = $(AM_LIBADD) $(XPROTO_LIBS)
205 libxwd_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
206 codec_LTLIBRARIES += $(LTLIBxwd)
207 EXTRA_LTLIBRARIES += libxwd_plugin.la
208
209 ### OpenMAX ###
210 noinst_HEADERS += \
211         omxil/OMX_Broadcom.h \
212         omxil/OMX_Component.h \
213         omxil/OMX_Core.h \
214         omxil/OMX_Image.h \
215         omxil/OMX_IVCommon.h \
216         omxil/OMX_Types.h \
217         omxil/OMX_Audio.h \
218         omxil/OMX_Index.h \
219         omxil/OMX_Other.h \
220         omxil/OMX_Video.h 
221
222 libomxil_plugin_la_SOURCES = \
223         omxil/utils.c omxil/omxil_utils.h \
224         h264_nal.h \
225         omxil/qcom.c omxil/qcom.h \
226         omxil/omxil.c omxil/omxil.h omxil/omxil_core.c omxil/omxil_core.h
227 libomxil_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/omxil $(CFLAGS_omxil)
228 libomxil_plugin_la_LIBADD = $(AM_LIBADD) $(LIBDL)
229 libomxil_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
230
231 libomxil_vout_plugin_la_SOURCES = omxil/vout.c omxil/omxil_core.c omxil/utils.c omxil/qcom.c
232 libomxil_vout_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/omxil $(CFLAGS_omxil_vout)
233 libomxil_vout_plugin_la_LIBADD = $(AM_LIBADD) $(LIBDL)
234 libomxil_vout_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
235
236 libiomx_plugin_la_SOURCES = $(libomxil_plugin_la_SOURCES)
237 libiomx_plugin_la_CPPFLAGS = $(libomxil_plugin_la_CPPFLAGS) -DUSE_IOMX
238 libiomx_plugin_la_LIBADD = $(libomxil_plugin_la_LIBADD)
239
240 libmediacodec_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/omxil
241 libmediacodec_plugin_la_SOURCES = omxil/android_mediacodec.c omxil/utils.c
242
243 codec_LTLIBRARIES += $(LTLIBomxil) $(LTLIBomxil_vout)
244 EXTRA_LTLIBRARIES += libomxil_plugin.la libomxil_vout_plugin.la
245 if HAVE_ANDROID
246 codec_LTLIBRARIES += libiomx_plugin.la libmediacodec_plugin.la
247 endif