1 ###############################################################################
2 # Automake targets and declarations
3 ###############################################################################
5 AUTOMAKE_OPTIONS = subdir-objects
13 BUILT_SOURCES = $(nodist_pluginsinclude_HEADERS)
14 CLEANFILES = $(BUILT_SOURCES)
16 SUFFIXES = .pc.in .pc .rc.in .rc
18 ###############################################################################
20 ###############################################################################
22 pluginsincludedir = $(pkgincludedir)/plugins
24 pluginsinclude_HEADERS = \
25 ../include/vlc_access.h \
26 ../include/vlc_actions.h \
27 ../include/vlc_addons.h \
28 ../include/vlc_aout.h \
29 ../include/vlc_aout_volume.h \
30 ../include/vlc_arrays.h \
31 ../include/vlc_atomic.h \
32 ../include/vlc_avcodec.h \
33 ../include/vlc_bits.h \
34 ../include/vlc_block.h \
35 ../include/vlc_block_helper.h \
36 ../include/vlc_boxes.h \
37 ../include/vlc_charset.h \
38 ../include/vlc_codec.h \
39 ../include/vlc_common.h \
40 ../include/vlc_config.h \
41 ../include/vlc_config_cat.h \
42 ../include/vlc_configuration.h \
43 ../include/vlc_cpu.h \
44 ../include/vlc_cxx_helpers.hpp \
45 ../include/vlc_decoder.h \
46 ../include/vlc_dialog.h \
47 ../include/vlc_demux.h \
48 ../include/vlc_epg.h \
50 ../include/vlc_es_out.h \
51 ../include/vlc_events.h \
52 ../include/vlc_filter.h \
53 ../include/vlc_fourcc.h \
55 ../include/vlc_gcrypt.h \
56 ../include/vlc_opengl.h \
57 ../include/vlc_http.h \
58 ../include/vlc_httpd.h \
59 ../include/vlc_image.h \
60 ../include/vlc_inhibit.h \
61 ../include/vlc_input.h \
62 ../include/vlc_input_item.h \
63 ../include/vlc_interface.h \
64 ../include/vlc_keystore.h \
65 ../include/vlc_list.h \
66 ../include/vlc_md5.h \
67 ../include/vlc_media_source.h \
68 ../include/vlc_messages.h \
69 ../include/vlc_meta.h \
70 ../include/vlc_meta_fetcher.h \
71 ../include/vlc_media_library.h \
72 ../include/vlc_memstream.h \
73 ../include/vlc_mime.h \
74 ../include/vlc_modules.h \
75 ../include/vlc_mouse.h \
76 ../include/vlc_network.h \
77 ../include/vlc_objects.h \
78 ../include/vlc_picture.h \
79 ../include/vlc_picture_fifo.h \
80 ../include/vlc_picture_pool.h \
81 ../include/vlc_player.h \
82 ../include/vlc_playlist.h \
83 ../include/vlc_playlist_export.h \
84 ../include/vlc_plugin.h \
85 ../include/vlc_probe.h \
86 ../include/vlc_rand.h \
87 ../include/vlc_services_discovery.h \
88 ../include/vlc_fingerprinter.h \
89 ../include/vlc_interrupt.h \
90 ../include/vlc_renderer_discovery.h \
91 ../include/vlc_sort.h \
92 ../include/vlc_sout.h \
93 ../include/vlc_spu.h \
94 ../include/vlc_stream.h \
95 ../include/vlc_stream_extractor.h \
96 ../include/vlc_strings.h \
97 ../include/vlc_subpicture.h \
98 ../include/vlc_text_style.h \
99 ../include/vlc_threads.h \
100 ../include/vlc_tick.h \
101 ../include/vlc_timestamp_helper.h \
102 ../include/vlc_thumbnailer.h \
103 ../include/vlc_tls.h \
104 ../include/vlc_url.h \
105 ../include/vlc_variables.h \
106 ../include/vlc_vector.h \
107 ../include/vlc_viewpoint.h \
108 ../include/vlc_vlm.h \
109 ../include/vlc_video_splitter.h \
110 ../include/vlc_vout.h \
111 ../include/vlc_vout_display.h \
112 ../include/vlc_vout_osd.h \
113 ../include/vlc_vout_window.h \
114 ../include/vlc_xml.h \
115 ../include/vlc_xlib.h \
117 nodist_pluginsinclude_HEADERS = ../include/vlc_about.h
120 ../include/vlc_codecs.h \
121 ../include/vlc_extensions.h \
122 ../include/vlc_fixups.h \
123 ../include/vlc_intf_strings.h \
124 ../include/vlc_iso_lang.h \
125 ../include/vlc_pgpkey.h \
126 ../include/vlc_update.h \
129 ../include/vlc_about.h: Makefile.am $(top_srcdir)/COPYING $(top_srcdir)/THANKS $(top_srcdir)/AUTHORS
130 $(AM_V_at)rm -f -- "$@.tmp"
131 $(AM_V_at)mkdir -p -- ../include
132 $(AM_V_GEN)(echo "/* Automatically generated file - DO NOT EDIT */" && \
133 echo "static const char psz_license[] =" && \
134 sed 's/"/\\"/g;s/^.*$$/\"&\\n\"/' "$(top_srcdir)/COPYING" && \
136 echo "static const char psz_thanks[] =" && \
137 sed '/\$$Id:/d;s/"/\\"/g;s/<.*.> //;s/^.*$$/\"&\\n\"/' \
138 "$(top_srcdir)/THANKS" && \
140 echo "static const char psz_authors[] =" && \
141 sed '/\$$Id:/d;s/"/\\"/g;s/<.*.> //;s/^.*$$/\"&\\n\"/' \
142 "$(top_srcdir)/AUTHORS" && \
143 echo ";") >> "$@.tmp"
144 $(AM_V_at)mv -f -- "$@.tmp" "$@"
146 ###############################################################################
147 # pkg-config integration
148 ###############################################################################
150 pkgconfigdir = $(libdir)/pkgconfig
151 pkgconfig_DATA = vlc-plugin.pc
152 CLEANFILES += $(pkgconfig_DATA)
154 .pc.in.pc: $(top_builddir)/config.status
155 $(AM_V_GEN)cd "$(top_builddir)" && \
156 $(SHELL) ./config.status --file="src/$@"
158 ##############################################################################
159 # Windows resource files
160 ##############################################################################
163 noinst_DATA = libvlc_win32_rc.rc
165 EXTRA_DIST += libvlc_win32_rc.rc.in
167 .rc.in.rc: $(top_builddir)/config.status
168 cd "$(top_builddir)" && \
169 $(SHELL) ./config.status --file="src/$@"
171 ###############################################################################
173 ###############################################################################
175 lib_LTLIBRARIES = libvlccore.la
177 AM_CPPFLAGS = $(INCICONV) $(IDN_CFLAGS) \
178 -DMODULE_STRING=\"core\" \
179 -DSYSDATADIR=\"$(datadir)\" \
180 -DLIBDIR=\"$(libdir)\" \
181 -DLIBEXECDIR=\"$(libexecdir)\" \
182 -DLOCALEDIR=\"$(localedir)\" \
183 -DPKGDATADIR=\"$(pkgdatadir)\" \
184 -DPKGLIBDIR=\"$(pkglibdir)\" \
185 -DPKGLIBEXECDIR=\"$(pkglibexecdir)\"
186 AM_CFLAGS = $(CFLAGS_libvlccore)
187 if HAVE_DYNAMIC_PLUGINS
188 AM_CPPFLAGS += -DHAVE_DYNAMIC_PLUGINS
191 AM_CPPFLAGS += -DHAVE_DBUS
192 AM_CFLAGS += $(DBUS_CFLAGS)
195 libvlccore_la_SOURCES = \
202 config/configuration.h \
210 config/vlc_getopt.h \
212 media_source/media_source.c \
213 media_source/media_source.h \
214 media_source/media_tree.c \
215 media_source/media_tree.h \
221 modules/textdomain.c \
223 interface/interface.c \
235 playlist/playlist.c \
236 playlist/playlist.h \
237 playlist/preparse.c \
238 playlist/preparse.h \
239 playlist/randomizer.c \
240 playlist/randomizer.h \
246 preparser/fetcher.c \
247 preparser/fetcher.h \
248 preparser/preparser.c \
249 preparser/preparser.h \
252 clock/clock_internal.c \
253 clock/input_clock.c \
256 input/decoder_helpers.c \
258 input/demux_chained.c \
260 input/es_out_source.c \
261 input/es_out_timeshift.c \
275 clock/input_clock.h \
277 clock/clock_internal.h \
283 input/mrl_helpers.h \
285 input/input_internal.h \
286 input/input_interface.h \
287 input/vlm_internal.h \
291 input/services_discovery.c \
294 input/stream_fifo.c \
295 input/stream_extractor.c \
296 input/stream_filter.c \
297 input/stream_memory.c \
299 input/thumbnailer.c \
301 audio_output/aout_internal.h \
302 audio_output/common.c \
304 audio_output/filters.c \
305 audio_output/output.c \
306 audio_output/volume.c \
307 video_output/chrono.h \
308 video_output/control.c \
309 video_output/control.h \
310 video_output/display.c \
311 video_output/display.h \
312 video_output/inhibit.c \
313 video_output/inhibit.h \
314 video_output/interlacing.c \
315 video_output/interlacing.h \
316 video_output/snapshot.c \
317 video_output/snapshot.h \
318 video_output/statistic.h \
319 video_output/video_output.c \
320 video_output/video_text.c \
321 video_output/video_epg.c \
322 video_output/video_widgets.c \
323 video_output/vout_subpictures.c \
324 video_output/vout_spuregion_helper.h \
325 video_output/vout_wrapper.h \
326 video_output/window.c \
327 video_output/window.h \
328 video_output/opengl.c \
329 video_output/vout_intf.c \
330 video_output/vout_internal.h \
331 video_output/vout_wrapper.c \
332 network/getaddrinfo.c \
333 network/http_auth.c \
350 misc/background_worker.c \
351 misc/background_worker.h \
363 misc/picture_fifo.c \
364 misc/picture_pool.c \
368 misc/renderer_discovery.c \
384 misc/filter_chain.c \
386 misc/fingerprinter.c \
391 misc/medialibrary.c \
393 libvlccore_la_LIBADD = $(LIBS_libvlccore) \
394 ../compat/libcompat.la \
395 $(LTLIBINTL) $(LTLIBICONV) \
396 $(IDN_LIBS) $(SOCKET_LIBS) $(ATOMIC_LIB) $(LIBRT) $(LIBDL) $(LIBM)
399 libvlccore_la_SOURCES += \
410 libvlccore_la_SOURCES += posix/timer.c
412 libvlccore_la_SOURCES += win32/timer.c
417 libvlccore_la_SOURCES += \
430 libvlccore_la_SOURCES += \
441 libvlccore_la_SOURCES += \
445 libvlccore_objc_la_SOURCES = \
448 noinst_LTLIBRARIES = libvlccore_objc.la
452 libvlccore_la_SOURCES += \
457 libvlccore_la_SOURCES += \
462 libvlccore_la_SOURCES += \
465 libvlccore_la_SOURCES += \
475 libvlccore_la_SOURCES += \
481 libvlccore_la_SOURCES += posix/wait.c
484 libvlccore_la_SOURCES += posix/sort.c
486 libvlccore_la_SOURCES += \
494 libvlccore_la_SOURCES += \
496 libvlccore_la_LIBADD += -lanl
498 libvlccore_la_SOURCES += \
508 libvlccore_la_SOURCES += \
509 stream_output/sap.c stream_output/sdp.c \
510 stream_output/stream_output.c stream_output/stream_output.h
512 libvlccore_la_SOURCES += input/vlm.c input/vlm_event.c input/vlmshell.c
517 libvlccore_la_SOURCES += \
518 misc/update.h misc/update.c \
520 AM_CPPFLAGS += -DUPDATE_CHECK
521 AM_CFLAGS += $(GCRYPT_CFLAGS)
522 libvlccore_la_LIBADD += $(GCRYPT_LIBS)
525 libvlccore_la_LDFLAGS = \
526 $(LDFLAGS_libvlccore) \
528 -export-symbols $(srcdir)/libvlccore.sym \
530 libvlccore_la_DEPENDENCIES = libvlccore.sym
532 libvlccore_la_DEPENDENCIES += libvlc_win32_rc.$(OBJEXT)
533 libvlccore_la_LDFLAGS += -Wl,libvlc_win32_rc.$(OBJEXT) -avoid-version -Wc,-static $(LIBCOM)
536 libvlccore_la_LDFLAGS += -avoid-version
539 libvlccore_la_LIBADD += $(DBUS_LIBS)
542 $(libvlccore_la_OBJECTS): libvlccore_objc.la
543 libvlccore_objc_la_OBJCFLAGS = $(AM_OBJCFLAGS) -fobjc-arc
544 libvlccore_objc_la_LDFLAGS = -static
545 libvlccore_la_LIBADD += libvlccore_objc.la
546 libvlccore_la_LDFLAGS += -Wl,-framework,Foundation -Xlinker -install_name -Xlinker @rpath/libvlccore.dylib
549 libvlc_win32_rc.$(OBJEXT): libvlc_win32_rc.rc $(top_srcdir)/extras/package/win32/libvlc.dll.manifest
550 $(WINDRES) --include-dir $(top_srcdir)/share --include-dir $(top_srcdir)/extras/package/win32 -i $< -o $@
553 BUILT_SOURCES += fourcc_tables.h
554 EXTRA_DIST += misc/fourcc_gen.c
555 MOSTLYCLEANFILES = fourcc_gen$(BUILDEXEEXT)
557 fourcc_gen$(BUILDEXEEXT): misc/fourcc_gen.c misc/fourcc_list.h ../include/vlc_fourcc.h
558 $(AM_V_at)rm -f -- $@
559 $(AM_V_CC)$(BUILDCC) -I$(srcdir) -o $@ $<
561 fourcc_tables.h: fourcc_gen$(BUILDEXEEXT)
562 $(AM_V_at)rm -f -- $@.tmp
563 $(AM_V_GEN)$(builddir)/fourcc_gen$(BUILDEXEEXT) > $@.tmp
564 $(AM_V_at)mv -f -- $@.tmp $@
566 # Unit/regression tests
585 test_shared_data_ptr \
591 TESTS = $(check_PROGRAMS) check_symbols
593 test_block_SOURCES = test/block_test.c
594 test_block_LDADD = $(LDADD) $(LIBS_libvlccore)
595 test_block_DEPENDENCIES =
597 test_dictionary_SOURCES = test/dictionary.c
598 test_i18n_atof_SOURCES = test/i18n_atof.c
599 test_interrupt_SOURCES = test/interrupt.c
600 test_interrupt_LDADD = $(LDADD) $(LIBS_libvlccore)
601 test_list_SOURCES = test/list.c
602 test_md5_SOURCES = test/md5.c
603 test_picture_pool_SOURCES = test/picture_pool.c
604 test_sort_SOURCES = test/sort.c
605 test_timer_SOURCES = test/timer.c
606 test_url_SOURCES = test/url.c
607 test_utf8_SOURCES = test/utf8.c
608 test_xmlent_SOURCES = test/xmlent.c
609 test_headers_SOURCES = test/headers.c
610 test_mrl_helpers_SOURCES = test/mrl_helpers.c
611 test_arrays_SOURCES = test/arrays.c
612 test_vector_SOURCES = test/vector.c
613 test_shared_data_ptr_SOURCES = test/shared_data_ptr.cpp
614 test_extensions_SOURCES = test/extensions.c
615 test_playlist_SOURCES = playlist/test.c \
621 playlist/playlist.c \
622 playlist/preparse.c \
623 playlist/randomizer.c \
627 test_playlist_CFLAGS = -DTEST_PLAYLIST
628 test_randomizer_SOURCES = playlist/randomizer.c
629 test_randomizer_CFLAGS = -DTEST_RANDOMIZER
630 test_media_source_LDADD = $(LDADD) $(LIBS_libvlccore)
631 test_media_source_CFLAGS = -DTEST_MEDIA_SOURCE
632 test_media_source_SOURCES = media_source/test.c \
633 media_source/media_source.c \
634 media_source/media_tree.c
636 AM_LDFLAGS = -no-install
637 LDADD = libvlccore.la \
638 ../compat/libcompat.la
640 ###############################################################################
642 ###############################################################################
644 BUILT_SOURCES += stamp-revision
645 MAINTAINERCLEANFILES = $(srcdir)/revision.txt $(srcdir)/revision.c
647 $(srcdir)/revision.c: $(srcdir)/revision.txt
648 $(AM_V_at)rm -f -- $@
649 $(AM_V_GEN)echo "const char psz_vlc_changeset[] = \"$$(cat $<)\";" \
652 $(srcdir)/revision.txt:
653 $(AM_V_at)$(MAKE) stamp-revision
657 $(AM_V_at)rm -f -- revision.tmp
658 $(AM_V_GEN)if ! git \
659 -C "$(top_srcdir)" describe \
660 --tags --long --match '?.*.*' --always; then \
661 cat $(srcdir)/revision.txt ; \
663 $(AM_V_at)if diff revision.tmp $(srcdir)/revision.txt >/dev/null 2>&1; then \
664 rm -f -- revision.tmp; \
666 mv -f -- revision.tmp $(srcdir)/revision.txt; \
670 ###############################################################################
671 # Unit/regression test
672 ###############################################################################
674 dist_check_SCRIPTS = check_headers check_symbols
677 for h in `echo $(pkginclude_HEADERS) | sed -e s,\.\./include/,,g`; \
679 echo grep - "#include <$$h>" $(srcdir)/test/headers.c ; \
680 if ! grep -- "#include <$$h>" $(srcdir)/test/headers.c ; \
682 echo "Header $$h not included in test/headers.c!"; \
686 $(SHELL) $(srcdir)/check_headers $(pluginsinclude_HEADERS)
689 @echo "Generated source cannot be phony. Go away." >&2