wafsamba: Require public libraries to have headers.
authorJelmer Vernooij <jelmer@samba.org>
Sun, 21 Aug 2011 00:26:51 +0000 (02:26 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Sun, 21 Aug 2011 01:22:05 +0000 (03:22 +0200)
buildtools/wafsamba/wafsamba.py

index 85ff732..544b491 100644 (file)
@@ -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('_', '-')