waf: replace the is_bundled option with private_library
authorAndrew Tridgell <tridge@samba.org>
Thu, 21 Oct 2010 00:22:36 +0000 (11:22 +1100)
committerAndrew Tridgell <tridge@samba.org>
Thu, 21 Oct 2010 08:03:24 +0000 (19:03 +1100)
'private_library' better captures what we are trying to get at when we
bundle a library

buildtools/wafsamba/samba_install.py
buildtools/wafsamba/wafsamba.py
lib/talloc/wscript
lib/tdb/wscript
lib/tevent/wscript
source4/heimdal_build/wscript_build
source4/lib/ldb/wscript

index eaeaff3af7dec7acf9e5cc2bf93c529e8c49b339..56e979ed535ea52f893caa63410c9fd3eca2ccf9 100644 (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:
index bc8fd75b0c6c8e7f4e6c7d4617d320cade12ceb6..4cb0402718e9bb4f21215188864af85117ab1a48 100644 (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:
index 9550ea4cc6d83710d20766b65b64e267e5b8e716..bdf21a347bee372966b0a8e677f4af051f9e5441 100644 (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
index 340aebd59156a151de7622b25b4b169624c057cb..5c2ecafd72c9ea639cbb89eae5599b2693dece10 100644 (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',
index 677ab8c75ac2f0c8983d90a7814e98029e1cc90e..43d23e54c4a1a10f5b2f43c936ca32ac8171f5eb 100644 (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'
index cc5dcdc9d168d87cfc37ba2829933ddc6ace5672..ae5e092484f559f775ab7149b3978c8192aeb06e 100644 (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
         )
 
 
index 7075380871f96a8649cb78547daaf17a10d9cf33..e79bad3d3d2c7f59181c8efc4da4856f215ee090 100644 (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',