From 3eb90650a8aba68305e5c0b32c83be268c122b0e Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 28 Dec 2015 00:04:02 +0000 Subject: Error when private libraries have public headers. Signed-Off-By: Jelmer Vernooij Reviewed-By: Andrew Bartlett Reviewed-By: Stefan Metzmacher --- buildtools/wafsamba/wafsamba.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/buildtools/wafsamba/wafsamba.py b/buildtools/wafsamba/wafsamba.py index 3b05916b45b..4a47dbffe02 100644 --- a/buildtools/wafsamba/wafsamba.py +++ b/buildtools/wafsamba/wafsamba.py @@ -146,8 +146,12 @@ def SAMBA_LIBRARY(bld, libname, source, if pyembed and bld.env['IS_EXTRA_PYTHON']: public_headers = pc_files = None + if private_library and public_headers: + raise Utils.WafError("private library '%s' must not have public header files" % + libname) + if LIB_MUST_BE_PRIVATE(bld, libname): - private_library=True + private_library = True if not enabled: SET_TARGET_TYPE(bld, libname, 'DISABLED') -- cgit v1.2.1