Qt: adapt the UI for correct spatializer values
[vlc.git] / src / Makefile.am
blob24632acac83da413a93cf3566bae1a97de7ff9c2
1 ###############################################################################
2 # Automake targets and declarations
3 ###############################################################################
5 AUTOMAKE_OPTIONS = subdir-objects
6 SUBDIRS = . test
8 NULL =
9 EXTRA_DIST = \
10         vlc-plugin.pc.in \
11         libvlccore.sym \
12         revision.txt
14 BUILT_SOURCES = $(nodist_pluginsinclude_HEADERS)
15 CLEANFILES = $(BUILT_SOURCES)
17 SUFFIXES = .pc.in .pc .rc.in .rc
19 ###############################################################################
20 # Headers
21 ###############################################################################
23 pluginsincludedir = $(pkgincludedir)/plugins
25 pluginsinclude_HEADERS = \
26         ../include/vlc_access.h \
27         ../include/vlc_acl.h \
28         ../include/vlc_aout.h \
29         ../include/vlc_aout_intf.h \
30         ../include/vlc_aout_mixer.h \
31         ../include/vlc_arrays.h \
32         ../include/vlc_art_finder.h \
33         ../include/vlc_atomic.h \
34         ../include/vlc_avcodec.h \
35         ../include/vlc_bits.h \
36         ../include/vlc_block.h \
37         ../include/vlc_block_helper.h \
38         ../include/vlc_charset.h \
39         ../include/vlc_codec.h \
40         ../include/vlc_common.h \
41         ../include/vlc_config.h \
42         ../include/vlc_config_cat.h \
43         ../include/vlc_configuration.h \
44         ../include/vlc_cpu.h \
45         ../include/vlc_dialog.h \
46         ../include/vlc_demux.h \
47         ../include/vlc_epg.h \
48         ../include/vlc_es.h \
49         ../include/vlc_es_out.h \
50         ../include/vlc_events.h \
51         ../include/vlc_filter.h \
52         ../include/vlc_fourcc.h \
53         ../include/vlc_fs.h \
54         ../include/vlc_gcrypt.h \
55         ../include/vlc_opengl.h \
56         ../include/vlc_http.h \
57         ../include/vlc_httpd.h \
58         ../include/vlc_image.h \
59         ../include/vlc_inhibit.h \
60         ../include/vlc_input.h \
61         ../include/vlc_input_item.h \
62         ../include/vlc_main.h \
63         ../include/vlc_md5.h \
64         ../include/vlc_messages.h \
65         ../include/vlc_meta.h \
66         ../include/vlc_media_library.h \
67         ../include/vlc_modules.h \
68         ../include/vlc_mouse.h \
69         ../include/vlc_mtime.h \
70         ../include/vlc_network.h \
71         ../include/vlc_objects.h \
72         ../include/vlc_picture.h \
73         ../include/vlc_picture_fifo.h \
74         ../include/vlc_picture_pool.h \
75         ../include/vlc_playlist.h \
76         ../include/vlc_plugin.h \
77         ../include/vlc_probe.h \
78         ../include/vlc_rand.h \
79         ../include/vlc_services_discovery.h \
80         ../include/vlc_sql.h \
81         ../include/vlc_sout.h \
82         ../include/vlc_spu.h \
83         ../include/vlc_stream.h \
84         ../include/vlc_strings.h \
85         ../include/vlc_subpicture.h \
86         ../include/vlc_text_style.h \
87         ../include/vlc_threads.h \
88         ../include/vlc_tls.h \
89         ../include/vlc_url.h \
90         ../include/vlc_variables.h \
91         ../include/vlc_vlm.h \
92         ../include/vlc_video_splitter.h \
93         ../include/vlc_vout.h \
94         ../include/vlc_vout_display.h \
95         ../include/vlc_vout_osd.h \
96         ../include/vlc_vout_window.h \
97         ../include/vlc_xml.h \
98         ../include/vlc_xlib.h \
99         $(NULL)
100 nodist_pluginsinclude_HEADERS = ../include/vlc_about.h
102 noinst_HEADERS = \
103         ../include/vlc_codec_synchro.h \
104         ../include/vlc_codecs.h \
105         ../include/vlc_extensions.h \
106         ../include/vlc_fixups.h \
107         ../include/vlc_interface.h \
108         ../include/vlc_intf_strings.h \
109         ../include/vlc_iso_lang.h \
110         ../include/vlc_keys.h \
111         ../include/vlc_memory.h \
112         ../include/vlc_osd.h \
113         ../include/vlc_pgpkey.h \
114         ../include/vlc_update.h \
115         ../include/vlc_vod.h \
116         ../include/vlc_vout_wrapper.h \
117         ../include/vlc_windows_interfaces.h \
118         $(NULL)
120 ../include/vlc_about.h: Makefile.am $(top_srcdir)/COPYING $(top_srcdir)/THANKS $(top_srcdir)/AUTHORS
121         $(AM_V_at)rm -f -- "$@.tmp"
122         $(AM_V_at)mkdir -p -- ../include
123         $(AM_V_GEN)(echo "/* Automatically generated file - DO NOT EDIT */" && \
124         echo "static const char psz_license[] =" && \
125         sed 's/"/\\"/g;s/^.*$$/\"&\\n\"/' "$(top_srcdir)/COPYING" && \
126         echo ";" && \
127         echo "static const char psz_thanks[] =" && \
128         sed '/\$$Id:/d;s/"/\\"/g;s/<.*.> //;s/^.*$$/\"&\\n\"/' \
129                 "$(top_srcdir)/THANKS" && \
130         echo ";" && \
131         echo "static const char psz_authors[] =" && \
132         sed '/\$$Id:/d;s/"/\\"/g;s/<.*.> //;s/^.*$$/\"&\\n\"/' \
133                 "$(top_srcdir)/AUTHORS" && \
134         echo ";") >> "$@.tmp"
135         $(AM_V_at)mv -f -- "$@.tmp" "$@"
137 ###############################################################################
138 # pkg-config integration
139 ###############################################################################
141 pkgconfigdir = $(libdir)/pkgconfig
142 pkgconfig_DATA = vlc-plugin.pc
143 CLEANFILES += $(pkgconfig_DATA)
145 .pc.in.pc: $(top_builddir)/config.status
146         $(AM_V_GEN)cd "$(top_builddir)" && \
147         $(SHELL) ./config.status --file="src/$@"
149 ##############################################################################
150 # Windows resource files
151 ##############################################################################
153 if HAVE_WIN32
154 noinst_DATA = libvlc_win32_rc.rc
155 endif
156 EXTRA_DIST += libvlc_win32_rc.rc.in
158 .rc.in.rc: $(top_builddir)/config.status
159         cd "$(top_builddir)" && \
160         $(SHELL) ./config.status --file="src/$@"
162 ###############################################################################
163 # Building libvlc
164 ###############################################################################
166 lib_LTLIBRARIES = libvlccore.la
168 AM_CPPFLAGS = $(INCICONV) \
169         -DMODULE_STRING=\"main\" \
170         -DLOCALEDIR=\"$(localedir)\" \
171         -DSYSCONFDIR=\"$(sysconfdir)\" \
172         -DPKGDATADIR=\"$(vlcdatadir)\" \
173         -DPKGLIBDIR=\"$(vlclibdir)\"
174 AM_CFLAGS = $(CFLAGS_libvlccore)
176 libvlccore_la_SOURCES = $(SOURCES_libvlc)
177 libvlccore_la_LDFLAGS = \
178         -no-undefined \
179         $(LDFLAGS_libvlccore) \
180         -no-undefined \
181         -export-symbols $(srcdir)/libvlccore.sym \
182         -version-info 5:0:0
183 libvlccore_la_LIBADD = $(LIBS_libvlccore) \
184         ../compat/libcompat.la \
185         $(LTLIBINTL) $(LTLIBICONV) \
186         $(SOCKET_LIBS) $(LIBDL) $(LIBM)
187 libvlccore_la_DEPENDENCIES = libvlccore.sym
188 if HAVE_WIN32
189 libvlccore_la_DEPENDENCIES += libvlc_win32_rc.$(OBJEXT)
190 libvlccore_la_LDFLAGS += -Wl,libvlc_win32_rc.$(OBJEXT) -avoid-version
191 endif
193 libvlc_win32_rc.$(OBJEXT): libvlc_win32_rc.rc
194         $(WINDRES) --include-dir $(top_srcdir)/share --include-dir $(top_srcdir)/extras/package/win32 -i $< -o $@
196 EXTRA_libvlccore_la_SOURCES = \
197         $(SOURCES_libvlc_darwin) \
198         $(SOURCES_libvlc_linux) \
199         $(SOURCES_libvlc_win32) \
200         $(SOURCES_libvlc_os2) \
201         $(SOURCES_libvlc_other) \
202         $(SOURCES_libvlc_httpd) \
203         $(SOURCES_libvlc_sout) \
204         $(SOURCES_libvlc_vlm) \
205         $(NULL)
206 if HAVE_DARWIN
207 libvlccore_la_SOURCES += $(SOURCES_libvlc_darwin)
208 else
209 if HAVE_LINUX
210 libvlccore_la_SOURCES += $(SOURCES_libvlc_linux)
211 else
212 if HAVE_WIN32
213 libvlccore_la_SOURCES += $(SOURCES_libvlc_win32)
214 else
215 if HAVE_WINCE
216 libvlccore_la_SOURCES += $(SOURCES_libvlc_win32)
217 else
218 if HAVE_SYMBIAN
219 #libvlccore_la_SOURCES += $(SOURCES_libvlc_symbian)
220 else
221 if HAVE_OS2
222 libvlccore_la_SOURCES += $(SOURCES_libvlc_os2)
223 else
224 libvlccore_la_SOURCES += $(SOURCES_libvlc_other)
225 endif
226 endif
227 endif
228 endif
229 endif
230 endif
231 if BUILD_HTTPD
232 libvlccore_la_SOURCES += $(SOURCES_libvlc_httpd)
233 endif
234 if ENABLE_SOUT
235 libvlccore_la_SOURCES += $(SOURCES_libvlc_sout)
236 if ENABLE_VLM
237 libvlccore_la_SOURCES += $(SOURCES_libvlc_vlm)
238 endif
239 endif
241 SOURCES_libvlc_darwin = \
242         posix/darwin_dirs.c \
243         misc/atomic.c \
244         posix/filesystem.c \
245         posix/plugin.c \
246         posix/thread.c \
247         posix/darwin_specific.c \
248         posix/rand.c \
249         $(NULL)
251 SOURCES_libvlc_linux = \
252         posix/dirs.c \
253         misc/atomic.c \
254         posix/filesystem.c \
255         posix/plugin.c \
256         posix/thread.c \
257         posix/linux_cpu.c \
258         posix/linux_specific.c \
259         posix/specific.c \
260         posix/rand.c \
261         $(NULL)
263 SOURCES_libvlc_win32 = \
264         win32/dirs.c \
265         win32/atomic.c \
266         win32/filesystem.c \
267         win32/plugin.c \
268         win32/thread.c \
269         win32/specific.c \
270         win32/winsock.c \
271         win32/rand.c \
272         $(NULL)
274 SOURCES_libvlc_symbian = \
275         symbian/path.cpp \
276         symbian/dirs.c \
277         misc/atomic.c \
278         win32/plugin.c \
279         posix/rand.c \
280         $(NULL)
282 SOURCES_libvlc_os2 = \
283         os2/getaddrinfo.c \
284         os2/dirs.c \
285         misc/atomic.c \
286         posix/filesystem.c \
287         posix/plugin.c \
288         os2/thread.c \
289         os2/specific.c \
290         os2/rand.c \
291         $(NULL)
293 SOURCES_libvlc_other = \
294         posix/dirs.c \
295         misc/atomic.c \
296         posix/filesystem.c \
297         posix/thread.c \
298         posix/plugin.c \
299         posix/specific.c \
300         posix/rand.c \
301         $(NULL)
303 SOURCES_libvlc_common = \
304         libvlc.c \
305         libvlc.h \
306         libvlc-module.c \
307         missing.c \
308         revision.c \
309         version.c \
310         interface/dialog.c \
311         interface/interface.c \
312         playlist/playlist_internal.h \
313         playlist/art.c \
314         playlist/art.h \
315         playlist/thread.c \
316         playlist/control.c \
317         playlist/engine.c \
318         playlist/fetcher.c \
319         playlist/fetcher.h \
320         playlist/sort.c \
321         playlist/loadsave.c \
322         playlist/preparser.c \
323         playlist/preparser.h \
324         playlist/tree.c \
325         playlist/item.c \
326         playlist/search.c \
327         playlist/services_discovery.c \
328         input/item.c \
329         input/access.c \
330         input/clock.c \
331         input/control.c \
332         input/decoder.c \
333         input/decoder_synchro.c \
334         input/demux.c \
335         input/es_out.c \
336         input/es_out_timeshift.c \
337         input/event.c \
338         input/input.c \
339         input/info.h \
340         input/meta.c \
341         input/access.h \
342         input/clock.h \
343         input/decoder.h \
344         input/demux.h \
345         input/es_out.h \
346         input/es_out_timeshift.h \
347         input/event.h \
348         input/item.h \
349         input/stream.h \
350         input/input_internal.h \
351         input/input_interface.h \
352         input/vlm_internal.h \
353         input/vlm_event.h \
354         input/resource.h \
355         input/resource.c \
356         input/stats.c \
357         input/stream.c \
358         input/stream_demux.c \
359         input/stream_filter.c \
360         input/stream_memory.c \
361         input/subtitles.c \
362         input/var.c \
363         video_output/chrono.h \
364         video_output/control.c \
365         video_output/control.h \
366         video_output/display.c \
367         video_output/display.h \
368         video_output/event.h \
369         video_output/inhibit.c \
370         video_output/inhibit.h \
371         video_output/interlacing.c \
372         video_output/interlacing.h \
373         video_output/snapshot.c \
374         video_output/snapshot.h \
375         video_output/statistic.h \
376         video_output/postprocessing.c \
377         video_output/postprocessing.h \
378         video_output/video_output.c \
379         video_output/video_text.c \
380         video_output/video_epg.c \
381         video_output/video_widgets.c \
382         video_output/vout_subpictures.c \
383         video_output/window.c \
384         video_output/opengl.c \
385         video_output/vout_intf.c \
386         video_output/vout_internal.h \
387         video_output/vout_control.h \
388         video_output/vout_wrapper.c \
389         audio_output/aout_internal.h \
390         audio_output/common.c \
391         audio_output/dec.c \
392         audio_output/filters.c \
393         audio_output/input.c \
394         audio_output/mixer.c \
395         audio_output/output.c \
396         audio_output/intf.c \
397         osd/osd.c \
398         osd/osd_text.c \
399         network/acl.c \
400         network/getaddrinfo.c \
401         network/io.c \
402         network/tcp.c \
403         network/udp.c \
404         network/rootbind.c \
405         network/tls.c \
406         text/charset.c \
407         text/strings.c \
408         text/unicode.c \
409         text/filesystem.c \
410         text/iso_lang.c \
411         text/iso-639_def.h \
412         misc/md5.c \
413         misc/probe.c \
414         misc/rand.c \
415         misc/mtime.c \
416         misc/block.c \
417         misc/fourcc.c \
418         misc/es_format.c \
419         misc/picture.c \
420         misc/picture_fifo.c \
421         misc/picture_pool.c \
422         modules/modules.h \
423         modules/modules.c \
424         modules/bank.c \
425         modules/cache.c \
426         modules/entry.c \
427         modules/textdomain.c \
428         misc/threads.c \
429         misc/cpu.c \
430         misc/epg.c \
431         misc/exit.c \
432         config/configuration.h \
433         config/core.c \
434         config/chain.c \
435         config/file.c \
436         config/help.c \
437         config/intf.c \
438         config/keys.c \
439         config/cmdline.c \
440         config/getopt.c \
441         config/vlc_getopt.h \
442         misc/events.c \
443         misc/image.c \
444         misc/messages.c \
445         misc/objects.c \
446         misc/variables.h \
447         misc/variables.c \
448         misc/error.c \
449         misc/update.h \
450         misc/update.c \
451         misc/update_crypto.c \
452         misc/xml.c \
453         misc/media_library.c \
454         extras/libc.c \
455         extras/tdestroy.c \
456         misc/filter.c \
457         misc/filter_chain.c \
458         misc/http_auth.c \
459         misc/sql.c \
460         misc/text_style.c \
461         misc/subpicture.c \
462         misc/subpicture.h \
463         $(NULL)
465 SOURCES_libvlc_httpd = \
466         network/httpd.c \
467         $(NULL)
469 SOURCES_libvlc_sout = \
470         stream_output/stream_output.c \
471         stream_output/stream_output.h \
472         stream_output/announce.c \
473         stream_output/sap.c \
474         stream_output/sdp.c \
475         $(NULL)
477 SOURCES_libvlc_vlm = \
478         input/vlm.c \
479         input/vlm_event.c \
480         input/vlmshell.c \
481         $(NULL)
483 SOURCES_libvlc = \
484         $(SOURCES_libvlc_common) \
485         $(NULL)
487 ###############################################################################
488 # GIT revision
489 ###############################################################################
491 BUILT_SOURCES += stamp-revision
492 MAINTAINERCLEANFILES = $(srcdir)/revision.txt $(srcdir)/revision.c
494 $(srcdir)/revision.c: $(srcdir)/revision.txt
495         $(AM_V_at)rm -f -- $@
496         $(AM_V_GEN)echo "const char psz_vlc_changeset[] = \"$$(cat $<)\";" \
497                 > $@
499 $(srcdir)/revision.txt:
500         $(AM_V_at)$(MAKE) stamp-revision
501         $(AM_V_GEN)touch $@
503 stamp-revision:
504         $(AM_V_at)rm -f -- revision.tmp
505         $(AM_V_GEN)if ! git \
506                         --git-dir="$(top_srcdir)/.git/" describe \
507                         --tags --long --match '?.*.*' --always; then \
508                 cat $(srcdir)/revision.txt ; \
509         fi > revision.tmp
510         $(AM_V_at)if diff revision.tmp $(srcdir)/revision.txt >/dev/null 2>&1; then \
511                 rm -f -- revision.tmp; \
512         else \
513                 mv -f -- revision.tmp $(srcdir)/revision.txt; \
514         fi
515 #2>&1
517 ###############################################################################
518 # Unit/regression test
519 ###############################################################################
521 dist_check_SCRIPTS = check_headers
523 check-local:
524         for h in `echo $(pkginclude_HEADERS) | sed -e s,\.\./include/,,g`; \
525         do \
526                 echo grep - "#include <$$h>" $(srcdir)/test/headers.c ; \
527                 if ! grep -- "#include <$$h>" $(srcdir)/test/headers.c ; \
528                 then \
529                         echo "Header $$h not included in test/headers.c!"; \
530                         exit 1; \
531                 fi ; \
532         done
533         $(SHELL) $(srcdir)/check_headers $(pluginsinclude_HEADERS)
535 FORCE:
536         @echo "Generated source cannot be phony. Go away." >&2
537         @exit 1
539 .PHONY: FORCE