From 7668e457a6463fb2c1d7499659f37d10ca322190 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sat, 17 Jan 2015 00:24:53 +0100 Subject: wafsamba: make it possible to pass bundled_name to SAMBA_LIBRARY() Bug: https://bugzilla.samba.org/show_bug.cgi?id=10112 Signed-off-by: Stefan Metzmacher Reviewed-by: Jelmer Vernooij --- buildtools/wafsamba/wafsamba.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'buildtools') diff --git a/buildtools/wafsamba/wafsamba.py b/buildtools/wafsamba/wafsamba.py index 82a9d6fcfe9..fb5934df44d 100644 --- a/buildtools/wafsamba/wafsamba.py +++ b/buildtools/wafsamba/wafsamba.py @@ -130,6 +130,7 @@ def SAMBA_LIBRARY(bld, libname, source, pyext=False, target_type='LIBRARY', bundled_extension=False, + bundled_name=None, link_name=None, abi_directory=None, abi_match=None, @@ -223,7 +224,9 @@ def SAMBA_LIBRARY(bld, libname, source, raise Utils.WafError("public library '%s' must have header files" % libname) - if target_type == 'PYTHON' or realname or not private_library: + if bundled_name is not None: + pass + elif target_type == 'PYTHON' or realname or not private_library: if keep_underscore: bundled_name = libname else: -- cgit v1.2.1