summaryrefslogtreecommitdiff
path: root/lib/tdb/wscript
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-10-24 11:50:47 -0700
committerJelmer Vernooij <jelmer@samba.org>2010-10-26 10:17:18 -0700
commit50256c01d061c6d73bb2d8ee2c60785d58748e6c (patch)
tree3a450c294f273aca16126a990f9c86a5643caa2a /lib/tdb/wscript
parenta74e8be6d1448f121181e6d7cca3841891321a12 (diff)
downloadsamba-50256c01d061c6d73bb2d8ee2c60785d58748e6c.tar.gz
samba-50256c01d061c6d73bb2d8ee2c60785d58748e6c.tar.bz2
samba-50256c01d061c6d73bb2d8ee2c60785d58748e6c.zip
waf: Only specify vnum for non-private libraries.
Diffstat (limited to 'lib/tdb/wscript')
-rw-r--r--lib/tdb/wscript18
1 files changed, 12 insertions, 6 deletions
diff --git a/lib/tdb/wscript b/lib/tdb/wscript
index 37af34c2f5..fcb15f8218 100644
--- a/lib/tdb/wscript
+++ b/lib/tdb/wscript
@@ -62,6 +62,16 @@ def build(bld):
freelistcheck.c lock.c dump.c freelist.c
io.c open.c transaction.c hash.c''')
+ if bld.env.standalone_tdb:
+ bld.env.PKGCONFIGDIR = '${LIBDIR}/pkgconfig'
+ bld.PKG_CONFIG_FILES('tdb.pc', vnum=VERSION)
+ bld.INSTALL_FILES('${INCLUDEDIR}', 'include/tdb.h', flat=True)
+ vnum = VERSION
+ private_library = False
+ else:
+ private_library = True
+ vnum = None
+
if not bld.CONFIG_SET('USING_SYSTEM_TDB'):
bld.SAMBA_LIBRARY('tdb',
COMMON_SRC,
@@ -70,8 +80,8 @@ def build(bld):
abi_file='ABI/tdb-%s.sigs' % VERSION,
abi_match='tdb_*',
hide_symbols=True,
- vnum=VERSION,
- private_library=not bld.env.standalone_tdb)
+ vnum=vnum,
+ private_library=private_library)
bld.SAMBA_BINARY('tdbtorture',
'tools/tdbtorture.c',
@@ -103,10 +113,6 @@ def build(bld):
realname='tdb.so',
cflags='-DPACKAGE_VERSION=\"%s\"' % VERSION)
- if bld.env.standalone_tdb:
- bld.env.PKGCONFIGDIR = '${LIBDIR}/pkgconfig'
- bld.PKG_CONFIG_FILES('tdb.pc', vnum=VERSION)
- bld.INSTALL_FILES('${INCLUDEDIR}', 'include/tdb.h', flat=True)
def test(ctx):