1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-27 22:50:26 +03:00

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
This commit is contained in:
Andrew Tridgell 2010-10-21 11:22:36 +11:00
parent 1d8733537e
commit 7cba3cfac8
7 changed files with 13 additions and 17 deletions

View File

@ -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:

View File

@ -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:

View File

@ -61,7 +61,7 @@ def build(bld):
abi_match='talloc* _talloc*',
hide_symbols=True,
vnum=VERSION,
is_bundled=not bld.env.standalone_talloc,
private_library=not bld.env.standalone_talloc,
manpages='talloc.3')
# should we also install the symlink to libtalloc1.so here?
@ -70,7 +70,7 @@ def build(bld):
deps='talloc',
enabled = bld.env.TALLOC_COMPAT1,
vnum=VERSION,
is_bundled=not bld.env.standalone_talloc)
private_library=not bld.env.standalone_talloc)
if not getattr(bld.env, '_SAMBA_BUILD_', 0) == 4:
# s4 already has the talloc testsuite builtin to smbtorture

View File

@ -71,7 +71,7 @@ def build(bld):
abi_match='tdb_*',
hide_symbols=True,
vnum=VERSION,
is_bundled=not bld.env.standalone_tdb)
private_library=not bld.env.standalone_tdb)
bld.SAMBA_BINARY('tdbtorture',
'tools/tdbtorture.c',

View File

@ -74,7 +74,7 @@ def build(bld):
abi_file='ABI/tevent-%s.sigs' % VERSION,
abi_match='tevent_* _tevent_*',
vnum=VERSION,
is_bundled=not bld.env.standalone_tevent)
private_library=not bld.env.standalone_tevent)
if bld.env.standalone_tevent:
bld.env.PKGCONFIGDIR = '${LIBDIR}/pkgconfig'

View File

@ -182,7 +182,7 @@ def HEIMDAL_AUTOPROTO_PRIVATE(header, source):
def HEIMDAL_LIBRARY(libname, source, deps, vnum,
includes='',
cflags='',
is_bundled=True):
private_library=True):
'''define a Heimdal library'''
obj_target = libname + '.objlist'
@ -204,7 +204,7 @@ def HEIMDAL_LIBRARY(libname, source, deps, vnum,
deps = to_list(deps)
deps.append(obj_target)
if not is_bundled:
if not private_library:
# Sanitize the library name
bundled_name = libname.lower().replace('_', '-')
while bundled_name.startswith("lib"):
@ -225,7 +225,7 @@ def HEIMDAL_LIBRARY(libname, source, deps, vnum,
vnum = vnum,
install_path = None,
name = libname,
is_bundled = is_bundled,
private_library = private_library
)

View File

@ -130,7 +130,7 @@ def build(bld):
vnum=VERSION, manpages='man/ldb.3',
abi_file = abi_file,
abi_match = abi_match,
is_bundled=not bld.env.standalone_ldb)
private_library=not bld.env.standalone_ldb)
bld.SAMBA_PYTHON('pyldb', 'pyldb.c',
deps='ldb pyldb_util',