summaryrefslogtreecommitdiff
path: root/buildtools
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2011-08-21 02:26:51 +0200
committerJelmer Vernooij <jelmer@samba.org>2011-08-21 03:22:05 +0200
commit8cb6449130284e8cab76b044a1a406c4a9074cc1 (patch)
treec299cfab6a32c5674163927e174596ed71f757d2 /buildtools
parent9d668c495c5841fe3d62a6eb9a0c505500a2d7f5 (diff)
downloadsamba-8cb6449130284e8cab76b044a1a406c4a9074cc1.tar.gz
samba-8cb6449130284e8cab76b044a1a406c4a9074cc1.tar.bz2
samba-8cb6449130284e8cab76b044a1a406c4a9074cc1.zip
wafsamba: Require public libraries to have headers.
Diffstat (limited to 'buildtools')
-rw-r--r--buildtools/wafsamba/wafsamba.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/buildtools/wafsamba/wafsamba.py b/buildtools/wafsamba/wafsamba.py
index 85ff732f14..544b491a70 100644
--- a/buildtools/wafsamba/wafsamba.py
+++ b/buildtools/wafsamba/wafsamba.py
@@ -198,6 +198,9 @@ def SAMBA_LIBRARY(bld, libname, source,
if pc_files is None:
raise Utils.WafError("public library '%s' must have pkg-config file" %
libname)
+ if public_headers is None:
+ raise Utils.WafError("public library '%s' must have header files" %
+ libname)
if target_type == 'PYTHON' or realname or not private_library:
bundled_name = libname.replace('_', '-')