summaryrefslogtreecommitdiff
path: root/buildtools
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-10-21 11:22:36 +1100
committerAndrew Tridgell <tridge@samba.org>2010-10-21 19:03:24 +1100
commit7cba3cfac8781061e4114573517b30baedbf891a (patch)
tree35470bb962d34fe5380f02f7124cf603fb097466 /buildtools
parent1d8733537e47439f8d79cd78d278eace1b795df3 (diff)
downloadsamba-7cba3cfac8781061e4114573517b30baedbf891a.tar.gz
waf: replace the is_bundled option with private_library
'private_library' better captures what we are trying to get at when we bundle a library
Diffstat (limited to 'buildtools')
-rw-r--r--buildtools/wafsamba/samba_install.py2
-rw-r--r--buildtools/wafsamba/wafsamba.py12
2 files changed, 5 insertions, 9 deletions
diff --git a/buildtools/wafsamba/samba_install.py b/buildtools/wafsamba/samba_install.py
index eaeaff3af7d..56e979ed535 100644
--- a/buildtools/wafsamba/samba_install.py
+++ b/buildtools/wafsamba/samba_install.py
@@ -95,7 +95,7 @@ def install_library(self):
install_name = bld.make_libname(self.target, version=self.vnum)
install_link = bld.make_libname(self.target, version=vnum_base)
inst_name = bld.make_libname(t.target)
- if not self.is_bundled:
+ if not self.private_library:
# only generate the dev link for non-bundled libs
dev_link = bld.make_libname(self.target)
else:
diff --git a/buildtools/wafsamba/wafsamba.py b/buildtools/wafsamba/wafsamba.py
index bc8fd75b0c6..4cb0402718e 100644
--- a/buildtools/wafsamba/wafsamba.py
+++ b/buildtools/wafsamba/wafsamba.py
@@ -114,9 +114,9 @@ def SAMBA_LIBRARY(bld, libname, source,
abi_file=None,
abi_match=None,
hide_symbols=False,
- is_bundled=False,
manpages=None,
private_library=False,
+ grouping_library=False,
enabled=True):
'''define a Samba library'''
@@ -168,16 +168,11 @@ def SAMBA_LIBRARY(bld, libname, source,
realname = bld.map_shlib_extension(realname, python=(target_type=='PYTHON'))
link_name = bld.map_shlib_extension(link_name, python=(target_type=='PYTHON'))
- if private_library:
- # private libraries always get the 'bundling' treatment with respect
- # to the library name suffix
- is_bundled = True
-
# we don't want any public libraries without version numbers
if not private_library and vnum is None and target_type != 'PYTHON' and not realname:
raise Utils.WafError("public library '%s' must have a vnum" % libname)
- if target_type == 'PYTHON' or realname or not is_bundled:
+ if target_type == 'PYTHON' or realname or not private_library:
# Sanitize the library name
bundled_name = libname.lower().replace('_', '-')
while bundled_name.startswith("lib"):
@@ -214,7 +209,8 @@ def SAMBA_LIBRARY(bld, libname, source,
samba_install = install,
abi_file = abi_file,
abi_match = abi_match,
- is_bundled = is_bundled
+ private_library = private_library,
+ grouping_library=grouping_library
)
if realname and not link_name: