tevent: Only set public headers field when installing as a public library.
authorJelmer Vernooij <jelmer@jelmer.uk>
Mon, 4 Jan 2016 23:01:26 +0000 (23:01 +0000)
committerKarolin Seeger <kseeger@samba.org>
Mon, 18 Apr 2016 10:59:26 +0000 (12:59 +0200)
Bug: https://bugzilla.samba.org/show_bug.cgi?id=11771

Signed-off-by: Jelmer Vernooij <jelmer@jelmer.uk>
(cherry picked from commit 2cba4918dbe82fb9d0455c73d35aa551dccc924f)

lib/tevent/wscript

index ed36f2ec8004102733b1f7560f164edd870cb6ac..e042e3dd7de0442ee1618bfdbcedbb76a263e6aa 100755 (executable)
@@ -107,7 +107,7 @@ def build(bld):
                           abi_directory='ABI',
                           abi_match='tevent_* _tevent_*',
                           vnum=VERSION,
-                          public_headers='tevent.h',
+                          public_headers=('' if private_library else 'tevent.h'),
                           public_headers_install=not private_library,
                           pc_files='tevent.pc',
                           private_library=private_library)