lib: don't install public headers if a private library
authorAndrew Tridgell <tridge@samba.org>
Thu, 3 Mar 2011 06:19:33 +0000 (17:19 +1100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 15 Mar 2011 01:22:20 +0000 (12:22 +1100)
for talloc/tevent/tdb, only install headers if we are doing a
standalone build

lib/talloc/wscript
lib/tdb/wscript
lib/tevent/wscript

index 4080a8d582ace6bf40808111192df75006e0c9fb..c96c69cdd9efd74cd429f07277453a9736f96746 100644 (file)
@@ -98,6 +98,7 @@ def build(bld):
                           hide_symbols=True,
                           vnum=VERSION,
                           public_headers='talloc.h',
+                          public_headers_install=not private_library,
                           private_library=private_library,
                           manpages='talloc.3')
 
index 7498350fc82a26e2c008ed1051d7c19628c4152c..9041f8c1ba6fff69b1d9b06a41a70d9ade5ae93e 100644 (file)
@@ -79,6 +79,7 @@ def build(bld):
                           hide_symbols=True,
                           vnum=VERSION,
                           public_headers='include/tdb.h',
+                          public_headers_install=not private_library,
                           private_library=private_library)
 
         bld.SAMBA_BINARY('tdbtorture',
index c57b65a42523ded52311774e13ce31ce0c49fed5..de245d92e74d116a17e816b9d0edbe753666a74d 100644 (file)
@@ -84,6 +84,7 @@ def build(bld):
                           abi_match='tevent_* _tevent_*',
                           vnum=VERSION,
                           public_headers='tevent.h',
+                          public_headers_install=not private_library,
                           private_library=private_library)
 
     bld.SAMBA_PYTHON('pytevent',