aout: reset stereo-mode when a new aout is created
[vlc.git] / src / Makefile.am
index 9ac25d3..6b661a6 100644 (file)
@@ -23,16 +23,16 @@ pluginsincludedir = $(pkgincludedir)/plugins
 
 pluginsinclude_HEADERS = \
        ../include/vlc_access.h \
+       ../include/vlc_addons.h \
        ../include/vlc_aout.h \
-       ../include/vlc_aout_intf.h \
        ../include/vlc_aout_volume.h \
        ../include/vlc_arrays.h \
-       ../include/vlc_art_finder.h \
        ../include/vlc_atomic.h \
        ../include/vlc_avcodec.h \
        ../include/vlc_bits.h \
        ../include/vlc_block.h \
        ../include/vlc_block_helper.h \
+       ../include/vlc_boxes.h \
        ../include/vlc_charset.h \
        ../include/vlc_codec.h \
        ../include/vlc_common.h \
@@ -57,12 +57,16 @@ pluginsinclude_HEADERS = \
        ../include/vlc_inhibit.h \
        ../include/vlc_input.h \
        ../include/vlc_input_item.h \
+       ../include/vlc_interface.h \
        ../include/vlc_keys.h \
+       ../include/vlc_keystore.h \
        ../include/vlc_main.h \
        ../include/vlc_md5.h \
        ../include/vlc_messages.h \
        ../include/vlc_meta.h \
+       ../include/vlc_meta_fetcher.h \
        ../include/vlc_media_library.h \
+       ../include/vlc_memstream.h \
        ../include/vlc_mime.h \
        ../include/vlc_modules.h \
        ../include/vlc_mouse.h \
@@ -77,10 +81,13 @@ pluginsinclude_HEADERS = \
        ../include/vlc_probe.h \
        ../include/vlc_rand.h \
        ../include/vlc_services_discovery.h \
-       ../include/vlc_sql.h \
+       ../include/vlc_fingerprinter.h \
+       ../include/vlc_interrupt.h \
+       ../include/vlc_renderer_discovery.h \
        ../include/vlc_sout.h \
        ../include/vlc_spu.h \
        ../include/vlc_stream.h \
+       ../include/vlc_stream_extractor.h \
        ../include/vlc_strings.h \
        ../include/vlc_subpicture.h \
        ../include/vlc_text_style.h \
@@ -100,20 +107,16 @@ pluginsinclude_HEADERS = \
 nodist_pluginsinclude_HEADERS = ../include/vlc_about.h
 
 noinst_HEADERS = \
-       ../include/vlc_codec_synchro.h \
        ../include/vlc_codecs.h \
        ../include/vlc_extensions.h \
        ../include/vlc_fixups.h \
-       ../include/vlc_interface.h \
        ../include/vlc_intf_strings.h \
        ../include/vlc_iso_lang.h \
        ../include/vlc_memory.h \
-       ../include/vlc_osd.h \
        ../include/vlc_pgpkey.h \
        ../include/vlc_update.h \
        ../include/vlc_vod.h \
        ../include/vlc_vout_wrapper.h \
-       ../include/vlc_windows_interfaces.h \
        $(NULL)
 
 ../include/vlc_about.h: Makefile.am $(top_srcdir)/COPYING $(top_srcdir)/THANKS $(top_srcdir)/AUTHORS
@@ -165,9 +168,8 @@ EXTRA_DIST += libvlc_win32_rc.rc.in
 lib_LTLIBRARIES = libvlccore.la
 
 AM_CPPFLAGS = $(INCICONV) $(IDN_CFLAGS) \
-       -DMODULE_STRING=\"main\" \
+       -DMODULE_STRING=\"core\" \
        -DLOCALEDIR=\"$(localedir)\" \
-       -DSYSCONFDIR=\"$(sysconfdir)\" \
        -DPKGDATADIR=\"$(vlcdatadir)\" \
        -DPKGLIBDIR=\"$(vlclibdir)\"
 AM_CFLAGS = $(CFLAGS_libvlccore)
@@ -179,141 +181,37 @@ AM_CPPFLAGS += -DHAVE_DBUS
 AM_CFLAGS += $(DBUS_CFLAGS)
 endif
 
-libvlccore_la_SOURCES = $(SOURCES_libvlc)
-libvlccore_la_LDFLAGS = \
-       -no-undefined \
-       $(LDFLAGS_libvlccore) \
-       -no-undefined \
-       -export-symbols $(srcdir)/libvlccore.sym \
-       -version-info 5:0:0
-libvlccore_la_LIBADD = $(LIBS_libvlccore) \
-       ../compat/libcompat.la \
-       $(LTLIBINTL) $(LTLIBICONV) \
-       $(IDN_LIBS) $(LIBPTHREAD) $(SOCKET_LIBS) $(LIBDL) $(LIBM)
-libvlccore_la_DEPENDENCIES = libvlccore.sym
-if HAVE_WIN32
-libvlccore_la_DEPENDENCIES += libvlc_win32_rc.$(OBJEXT)
-libvlccore_la_LDFLAGS += -Wl,libvlc_win32_rc.$(OBJEXT) -avoid-version
-endif
-if HAVE_DBUS
-libvlccore_la_LIBADD += $(DBUS_LIBS)
-endif
-
-libvlc_win32_rc.$(OBJEXT): libvlc_win32_rc.rc
-       $(WINDRES) --include-dir $(top_srcdir)/share --include-dir $(top_srcdir)/extras/package/win32 -i $< -o $@
-
-EXTRA_libvlccore_la_SOURCES = \
-       $(SOURCES_libvlc_darwin) \
-       $(SOURCES_libvlc_linux) \
-       $(SOURCES_libvlc_win32) \
-       $(SOURCES_libvlc_os2) \
-       $(SOURCES_libvlc_other) \
-       $(SOURCES_libvlc_httpd) \
-       $(SOURCES_libvlc_sout) \
-       $(SOURCES_libvlc_vlm) \
-       $(NULL)
-if HAVE_DARWIN
-libvlccore_la_SOURCES += $(SOURCES_libvlc_darwin)
-else
-if HAVE_LINUX
-libvlccore_la_SOURCES += $(SOURCES_libvlc_linux)
-else
-if HAVE_WIN32
-libvlccore_la_SOURCES += $(SOURCES_libvlc_win32)
-else
-if HAVE_SYMBIAN
-#libvlccore_la_SOURCES += $(SOURCES_libvlc_symbian)
-else
-if HAVE_OS2
-libvlccore_la_SOURCES += $(SOURCES_libvlc_os2)
-else
-libvlccore_la_SOURCES += $(SOURCES_libvlc_other)
-endif
-endif
-endif
-endif
-endif
-if BUILD_HTTPD
-libvlccore_la_SOURCES += $(SOURCES_libvlc_httpd)
-endif
-if ENABLE_SOUT
-libvlccore_la_SOURCES += $(SOURCES_libvlc_sout)
-if ENABLE_VLM
-libvlccore_la_SOURCES += $(SOURCES_libvlc_vlm)
-endif
-endif
-
-SOURCES_libvlc_darwin = \
-       posix/darwin_dirs.c \
-       posix/filesystem.c \
-       posix/plugin.c \
-       posix/thread.c \
-       posix/timer.c \
-       posix/darwin_specific.c \
-       posix/rand.c \
-       $(NULL)
-
-SOURCES_libvlc_linux = \
-       posix/dirs.c \
-       posix/filesystem.c \
-       posix/plugin.c \
-       posix/thread.c \
-       posix/timer.c \
-       posix/linux_cpu.c \
-       posix/linux_specific.c \
-       posix/specific.c \
-       posix/rand.c \
-       $(NULL)
-
-SOURCES_libvlc_win32 = \
-       win32/dirs.c \
-       win32/filesystem.c \
-       win32/plugin.c \
-       win32/thread.c \
-       win32/specific.c \
-       win32/winsock.c \
-       win32/rand.c \
-       $(NULL)
-
-SOURCES_libvlc_symbian = \
-       symbian/path.cpp \
-       symbian/dirs.c \
-       win32/plugin.c \
-       posix/rand.c \
-       $(NULL)
-
-SOURCES_libvlc_os2 = \
-       os2/getaddrinfo.c \
-       os2/dirs.c \
-       os2/filesystem.c \
-       os2/plugin.c \
-       os2/thread.c \
-       os2/specific.c \
-       os2/rand.c \
-       $(NULL)
-
-SOURCES_libvlc_other = \
-       posix/dirs.c \
-       posix/filesystem.c \
-       posix/thread.c \
-       posix/timer.c \
-       posix/plugin.c \
-       posix/specific.c \
-       posix/rand.c \
-       $(NULL)
-
-SOURCES_libvlc_common = \
+libvlccore_la_SOURCES = \
        libvlc.c \
        libvlc.h \
        libvlc-module.c \
        missing.c \
        revision.c \
        version.c \
+       config/configuration.h \
+       config/core.c \
+       config/chain.c \
+       config/file.c \
+       config/help.c \
+       config/intf.c \
+       config/keys.c \
+       config/cmdline.c \
+       config/getopt.c \
+       config/vlc_getopt.h \
+       extras/libc.c \
+       extras/tdestroy.c \
+       modules/modules.h \
+       modules/modules.c \
+       modules/bank.c \
+       modules/cache.c \
+       modules/entry.c \
+       modules/textdomain.c \
        interface/dialog.c \
        interface/interface.c \
        playlist/playlist_internal.h \
        playlist/art.c \
        playlist/art.h \
+       playlist/aout.c \
        playlist/thread.c \
        playlist/control.c \
        playlist/engine.c \
@@ -332,15 +230,14 @@ SOURCES_libvlc_common = \
        input/clock.c \
        input/control.c \
        input/decoder.c \
-       input/decoder_synchro.c \
        input/demux.c \
+       input/demux_chained.c \
        input/es_out.c \
        input/es_out_timeshift.c \
        input/event.c \
        input/input.c \
        input/info.h \
        input/meta.c \
-       input/access.h \
        input/clock.h \
        input/decoder.h \
        input/demux.h \
@@ -348,6 +245,7 @@ SOURCES_libvlc_common = \
        input/es_out_timeshift.h \
        input/event.h \
        input/item.h \
+       input/mrl_helpers.h \
        input/stream.h \
        input/input_internal.h \
        input/input_interface.h \
@@ -355,13 +253,21 @@ SOURCES_libvlc_common = \
        input/vlm_event.h \
        input/resource.h \
        input/resource.c \
+       input/services_discovery.c \
        input/stats.c \
        input/stream.c \
-       input/stream_demux.c \
+       input/stream_fifo.c \
+       input/stream_extractor.c \
        input/stream_filter.c \
        input/stream_memory.c \
        input/subtitles.c \
        input/var.c \
+       audio_output/aout_internal.h \
+       audio_output/common.c \
+       audio_output/dec.c \
+       audio_output/filters.c \
+       audio_output/output.c \
+       audio_output/volume.c \
        video_output/chrono.h \
        video_output/control.c \
        video_output/control.h \
@@ -375,117 +281,221 @@ SOURCES_libvlc_common = \
        video_output/snapshot.c \
        video_output/snapshot.h \
        video_output/statistic.h \
-       video_output/postprocessing.c \
-       video_output/postprocessing.h \
        video_output/video_output.c \
        video_output/video_text.c \
        video_output/video_epg.c \
        video_output/video_widgets.c \
        video_output/vout_subpictures.c \
        video_output/window.c \
+       video_output/window.h \
        video_output/opengl.c \
        video_output/vout_intf.c \
        video_output/vout_internal.h \
        video_output/vout_control.h \
        video_output/vout_wrapper.c \
-       audio_output/aout_internal.h \
-       audio_output/common.c \
-       audio_output/dec.c \
-       audio_output/filters.c \
-       audio_output/input.c \
-       audio_output/output.c \
-       audio_output/volume.c \
-       audio_output/intf.c \
-       osd/osd.c \
-       osd/osd_text.c \
        network/getaddrinfo.c \
+       network/http_auth.c \
        network/io.c \
        network/tcp.c \
        network/udp.c \
        network/rootbind.c \
        network/tls.c \
        text/charset.c \
+       text/memstream.c \
        text/strings.c \
        text/unicode.c \
        text/url.c \
        text/filesystem.c \
        text/iso_lang.c \
        text/iso-639_def.h \
+       misc/background_worker.c \
+       misc/background_worker.h \
        misc/md5.c \
        misc/probe.c \
        misc/rand.c \
        misc/mtime.c \
        misc/block.c \
+       misc/fifo.c \
        misc/fourcc.c \
+       misc/fourcc_list.h \
        misc/es_format.c \
        misc/picture.c \
+       misc/picture.h \
        misc/picture_fifo.c \
        misc/picture_pool.c \
-       modules/modules.h \
-       modules/modules.c \
-       modules/bank.c \
-       modules/cache.c \
-       modules/entry.c \
-       modules/textdomain.c \
+       misc/interrupt.h \
+       misc/interrupt.c \
+       misc/keystore.c \
+       misc/renderer_discovery.c \
        misc/threads.c \
        misc/cpu.c \
        misc/epg.c \
        misc/exit.c \
-       config/configuration.h \
-       config/core.c \
-       config/chain.c \
-       config/file.c \
-        config/help.c \
-       config/intf.c \
-       config/keys.c \
-       config/cmdline.c \
-       config/getopt.c \
-       config/vlc_getopt.h \
        misc/events.c \
        misc/image.c \
        misc/messages.c \
        misc/mime.c \
        misc/objects.c \
+       misc/objres.c \
        misc/variables.h \
        misc/variables.c \
        misc/error.c \
-       misc/update.h \
-       misc/update.c \
-       misc/update_crypto.c \
        misc/xml.c \
-       misc/media_library.c \
-       extras/libc.c \
-       extras/tdestroy.c \
+       misc/addons.c \
        misc/filter.c \
        misc/filter_chain.c \
-       misc/http_auth.c \
-       misc/sql.c \
+       misc/httpcookies.c \
+       misc/fingerprinter.c \
        misc/text_style.c \
        misc/subpicture.c \
-       misc/subpicture.h \
-       $(NULL)
+       misc/subpicture.h
+libvlccore_la_LIBADD = $(LIBS_libvlccore) \
+       ../compat/libcompat.la \
+       $(LTLIBINTL) $(LTLIBICONV) \
+       $(IDN_LIBS) $(LIBPTHREAD) $(SOCKET_LIBS) $(LIBRT) $(LIBDL) $(LIBM)
 
-SOURCES_libvlc_httpd = \
-       network/httpd.c \
-       $(NULL)
+if HAVE_WIN32
+libvlccore_la_SOURCES += \
+       win32/dirs.c \
+       win32/error.c \
+       win32/filesystem.c \
+       win32/netconf.c \
+       win32/plugin.c \
+       win32/rand.c \
+       win32/specific.c \
+       win32/thread.c \
+       win32/winsock.c
+if HAVE_WINSTORE
+libvlccore_la_SOURCES += posix/timer.c
+else
+libvlccore_la_SOURCES += win32/timer.c
+endif
+else
+if HAVE_OS2
+libvlccore_la_SOURCES += \
+       os2/dirs.c \
+       darwin/error.c \
+       os2/filesystem.c \
+       os2/getaddrinfo.c \
+       os2/netconf.c \
+       os2/plugin.c \
+       os2/specific.c \
+       os2/rand.c \
+       os2/thread.c
+else
+if HAVE_NACL
+libvlccore_la_SOURCES += \
+       android/error.c \
+       posix/dirs.c \
+       posix/filesystem.c \
+       posix/netconf.c \
+       posix/rand.c \
+       posix/specific.c \
+       posix/timer.c
+else
+libvlccore_la_SOURCES += \
+       posix/filesystem.c \
+       posix/plugin.c \
+       posix/rand.c \
+       posix/timer.c
+if HAVE_ANDROID
+libvlccore_la_SOURCES += \
+       android/error.c \
+       android/specific.c \
+       android/thread.c \
+       linux/cpu.c \
+       linux/dirs.c \
+       linux/thread.c
+else
+if HAVE_DARWIN
+libvlccore_la_SOURCES += \
+       darwin/dirs.c \
+       darwin/error.c \
+       darwin/netconf.c \
+       darwin/specific.c \
+       darwin/thread.c
+else
+libvlccore_la_SOURCES += \
+       posix/dirs.c \
+       posix/error.c \
+       posix/netconf.c \
+       posix/specific.c \
+       posix/thread.c
+if HAVE_LINUX
+libvlccore_la_SOURCES += \
+       linux/cpu.c \
+       linux/dirs.c \
+       linux/getaddrinfo.c \
+       linux/thread.c
+libvlccore_la_LIBADD += -lanl
+else
+libvlccore_la_SOURCES += \
+       posix/getaddrinfo.c
+endif
+endif
+endif
+endif
+endif
+endif
 
-SOURCES_libvlc_sout = \
-       stream_output/stream_output.c \
-       stream_output/stream_output.h \
-       stream_output/announce.c \
-       stream_output/sap.c \
-       stream_output/sdp.c \
-       $(NULL)
+if BUILD_HTTPD
+libvlccore_la_SOURCES += network/httpd.c
+endif
 
-SOURCES_libvlc_vlm = \
-       input/vlm.c \
-       input/vlm_event.c \
-       input/vlmshell.c \
-       $(NULL)
+if ENABLE_SOUT
+libvlccore_la_SOURCES += \
+       stream_output/sap.c stream_output/sdp.c \
+       stream_output/stream_output.c stream_output/stream_output.h
+if ENABLE_VLM
+libvlccore_la_SOURCES += input/vlm.c input/vlm_event.c input/vlmshell.c
+endif
+endif
 
-SOURCES_libvlc = \
-       $(SOURCES_libvlc_common) \
-       $(NULL)
+if UPDATE_CHECK
+libvlccore_la_SOURCES += \
+       misc/update.h misc/update.c \
+       misc/update_crypto.c
+AM_CPPFLAGS += -DUPDATE_CHECK
+AM_CFLAGS += $(GCRYPT_CFLAGS)
+libvlccore_la_LIBADD += $(GCRYPT_LIBS)
+endif
+
+libvlccore_la_LDFLAGS = \
+       $(LDFLAGS_libvlccore) \
+       -no-undefined \
+       -export-symbols $(srcdir)/libvlccore.sym \
+       -version-info 8:0:0
+libvlccore_la_DEPENDENCIES = libvlccore.sym
+if HAVE_WIN32
+libvlccore_la_DEPENDENCIES += libvlc_win32_rc.$(OBJEXT)
+libvlccore_la_LDFLAGS += -Wl,libvlc_win32_rc.$(OBJEXT) -avoid-version -Wc,-static $(LIBCOM)
+endif
+if HAVE_OS2
+libvlccore_la_LDFLAGS += -avoid-version
+endif
+if HAVE_DBUS
+libvlccore_la_LIBADD += $(DBUS_LIBS)
+endif
+if HAVE_DARWIN
+libvlccore_la_LDFLAGS += -Xlinker -install_name -Xlinker @rpath/libvlccore.dylib
+endif
+
+libvlc_win32_rc.$(OBJEXT): libvlc_win32_rc.rc $(top_srcdir)/extras/package/win32/libvlc.dll.manifest
+       $(WINDRES) --include-dir $(top_srcdir)/share --include-dir $(top_srcdir)/extras/package/win32 -i $< -o $@
+
+# FourCC tables
+BUILT_SOURCES += fourcc_tables.h
+EXTRA_DIST += misc/fourcc_gen.c
+MOSTLYCLEANFILES = fourcc_gen$(BUILDEXEEXT)
+
+fourcc_gen$(BUILDEXEEXT): misc/fourcc_gen.c misc/fourcc_list.h ../include/vlc_fourcc.h
+       $(AM_V_at)rm -f -- $@
+       $(AM_V_CC)$(BUILDCC) -I$(srcdir) -o $@ $<
+
+fourcc_tables.h: fourcc_gen$(BUILDEXEEXT)
+       $(AM_V_at)rm -f -- $@.tmp
+       $(AM_V_GEN)$(builddir)/fourcc_gen$(BUILDEXEEXT) > $@.tmp
+       $(AM_V_at)mv -f -- $@.tmp $@
 
 # Unit/regression tests
 #
@@ -493,14 +503,17 @@ check_PROGRAMS = \
        test_block \
        test_dictionary \
        test_i18n_atof \
+       test_interrupt \
        test_md5 \
+       test_picture_pool \
        test_timer \
        test_url \
        test_utf8 \
        test_xmlent \
-       test_headers
+       test_headers \
+       test_mrl_helpers
 
-TESTS = $(check_PROGRAMS)
+TESTS = $(check_PROGRAMS) check_symbols
 
 test_block_SOURCES = test/block_test.c
 test_block_LDADD = $(LDADD) $(LIBS_libvlccore)
@@ -508,12 +521,16 @@ test_block_DEPENDENCIES =
 
 test_dictionary_SOURCES = test/dictionary.c
 test_i18n_atof_SOURCES = test/i18n_atof.c
+test_interrupt_SOURCES = test/interrupt.c
+test_interrupt_LDADD = $(LDADD) $(LIBS_libvlccore) $(LIBPTHREAD)
 test_md5_SOURCES = test/md5.c
+test_picture_pool_SOURCES = test/picture_pool.c
 test_timer_SOURCES = test/timer.c
 test_url_SOURCES = test/url.c
 test_utf8_SOURCES = test/utf8.c
 test_xmlent_SOURCES = test/xmlent.c
 test_headers_SOURCES = test/headers.c
+test_mrl_helpers_SOURCES = test/mrl_helpers.c
 
 AM_LDFLAGS = -no-install
 LDADD = libvlccore.la \
@@ -553,7 +570,7 @@ stamp-revision:
 # Unit/regression test
 ###############################################################################
 
-dist_check_SCRIPTS = check_headers
+dist_check_SCRIPTS = check_headers check_symbols
 
 check-local:
        for h in `echo $(pkginclude_HEADERS) | sed -e s,\.\./include/,,g`; \