changeset 139:f7a26cd00c93 src

* only install the headers that really are intended for public use * dvdnav.h has to include the headers differently if an application is using it
author mroi
date Sat, 29 Mar 2003 14:16:28 +0000
parents 5ce26c18c455
children 33d6bb570dcb
files Makefile.am dvdnav.h
diffstat 2 files changed, 11 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile.am	Sat Mar 29 12:21:15 2003 +0000
+++ b/Makefile.am	Sat Mar 29 14:16:28 2003 +0000
@@ -1,5 +1,6 @@
 lib_LTLIBRARIES = libdvdnav.la
 
+AM_CPPFLAGS = -DDVDNAV_COMPILE
 AM_CFLAGS = @THREAD_CFLAGS@
 
 libdvdnav_la_SOURCES = decoder.c dvdnav.c vm.c vmcmd.c \
@@ -9,9 +10,9 @@
 	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
 #	-release $(DVDNAV_MAJOR).$(DVDNAV_MINOR).$(DVDNAV_SUB)
 
-include_HEADERS = decoder.h dvdnav.h dvdnav_events.h \
-	dvdnav_internal.h vm.h vmcmd.h read_cache.h dvd_types.h \
-	remap.h
+include_HEADERS = dvdnav.h dvdnav_events.h dvd_types.h
+noinst_HEADERS = decoder.h dvdnav_internal.h vm.h vmcmd.h \
+	read_cache.h remap.h
 
 EXTRA_DIST = README.MAP FELLOWSHIP.map
 
--- a/dvdnav.h	Sat Mar 29 12:21:15 2003 +0000
+++ b/dvdnav.h	Sat Mar 29 14:16:28 2003 +0000
@@ -34,11 +34,13 @@
 extern "C" {
 #endif
 
-/* Defines the various events and dvdnav_event_t */
-#include "dvdnav_events.h"
-
-/* Various useful types */
-#include "dvd_types.h"
+#ifdef DVDNAV_COMPILE
+#  include "dvdnav_events.h"
+#  include "dvd_types.h"
+#else
+#  include <dvdnav/dvdnav_events.h>
+#  include <dvdnav/dvd_types.h>
+#endif
 
 #include <dvdread/dvd_reader.h>
 #include <dvdread/ifo_types.h> /* For vm_cmd_t */