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 85ff732f14c17384a97fe2b0552a377731e9828c..544b491a701bf6a204945efbff1354300a0a4597 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('_', '-')