]> git.sesse.net Git - vlc/blobdiff - src/Makefile.am
Add sanity check for public headers
[vlc] / src / Makefile.am
index 99f6e0c90bdeb03825bc6834c76169fc23cf5753..861296fdfab2e5407f8665afa60430b3937ed449 100644 (file)
@@ -68,6 +68,7 @@ HEADERS_include = \
        ../include/vlc_objects.h \
        ../include/vlc_os_specific.h \
        ../include/vlc_osd.h \
+       ../include/vlc_pgpkey.h \
        ../include/vlc_playlist.h \
        ../include/vlc_rand.h \
        ../include/vlc_services_discovery.h \
@@ -271,7 +272,6 @@ SOURCES_libvlc_common = \
        stream_output/sap.c \
        stream_output/sdp.c \
        osd/osd.c \
-       osd/osd_parser.c \
        osd/osd_text.c \
        osd/osd_widgets.c \
        network/acl.c \
@@ -296,13 +296,17 @@ SOURCES_libvlc_common = \
        misc/block.c \
        modules/modules.h \
        modules/modules.c \
+       modules/cache.c \
        modules/entry.c \
+       modules/os.c \
        misc/threads.c \
        misc/stats.c \
        misc/cpu.c \
-       modules/configuration.h \
-       modules/configuration.c \
-       modules/configuration_chain.c \
+       config/configuration.h \
+       config/core.c \
+       config/chain.c \
+       config/file.c \
+       config/cmdline.c \
        misc/events.c \
        misc/image.c \
        misc/messages.c \
@@ -337,6 +341,8 @@ SOURCES_libvlc_control = \
        control/dynamic_media_list.c \
        control/event.c \
        control/flat_media_list_view.c \
+       control/hierarchical_media_list_view.c \
+       control/hierarchical_node_media_list_view.c \
        control/media_descriptor.c \
        control/media_instance.c \
        control/media_list.c \
@@ -365,8 +371,16 @@ misc/revision.c:
 ###############################################################################
 # Unit/regression test
 ###############################################################################
-check_PROGRAMS = test_i18n_atof test_url test_utf8 test_control
-TESTS = $(check_PROGRAMS)
+check_PROGRAMS = \
+       test_i18n_atof \
+       test_url \
+       test_utf8 \
+       test_headers \
+       test_control \
+       $(NULL)
+
+dist_check_SCRIPTS = check_symbols check_headers
+TESTS = $(check_PROGRAMS) $(dist_check_SCRIPTS)
 
 CFLAGS_tests = `$(VLC_CONFIG) --cflags libvlc`
 
@@ -381,10 +395,24 @@ test_utf8_SOURCES = test/utf8.c
 test_utf8_LDADD = libvlc.la
 test_utf8_CFLAGS = $(CFLAGS_tests)
 
+test_headers_SOURCES = test/headers.c
+test_headers_CFLAGS = $(CFLAGS_tests)
+
 test_control_SOURCES = control/testapi.c
 test_control_LDADD = libvlc-control.la
 test_control_CFLAGS = $(CFLAGS_tests)
 
+check-local:
+       for h in `echo $(dist_pkginclude_HEADERS) $(pkginclude_HEADERS) | sed -e s,\.\./include/,,g`; \
+       do \
+               echo grep - "#include <$$h>" $(srcdir)/test/headers.c ; \
+               if ! grep -- "#include <$$h>" $(srcdir)/test/headers.c ; \
+               then \
+                       echo "Header $$h not included in test/headers.c!"; \
+                       exit 1; \
+               fi ; \
+       done
+
 FORCE:
        @echo "Generated source cannot be phony. Go away." >&2
        @exit 1