diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2010-10-24 11:50:47 -0700 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2010-10-26 10:17:18 -0700 |
commit | 50256c01d061c6d73bb2d8ee2c60785d58748e6c (patch) | |
tree | 3a450c294f273aca16126a990f9c86a5643caa2a /lib/tevent/wscript | |
parent | a74e8be6d1448f121181e6d7cca3841891321a12 (diff) | |
download | samba-50256c01d061c6d73bb2d8ee2c60785d58748e6c.tar.gz samba-50256c01d061c6d73bb2d8ee2c60785d58748e6c.tar.bz2 samba-50256c01d061c6d73bb2d8ee2c60785d58748e6c.zip |
waf: Only specify vnum for non-private libraries.
Diffstat (limited to 'lib/tevent/wscript')
-rw-r--r-- | lib/tevent/wscript | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/lib/tevent/wscript b/lib/tevent/wscript index a502860100..590fbfeec0 100644 --- a/lib/tevent/wscript +++ b/lib/tevent/wscript @@ -66,6 +66,16 @@ def build(bld): if bld.CONFIG_SET('HAVE_EPOLL'): SRC += ' tevent_epoll.c' + if bld.env.standalone_tevent: + bld.env.PKGCONFIGDIR = '${LIBDIR}/pkgconfig' + bld.PKG_CONFIG_FILES('tevent.pc', vnum=VERSION) + bld.INSTALL_FILES('${INCLUDEDIR}', 'tevent.h') + private_library = False + vnum = VERSION + else: + private_library = True + vnum = None + if not bld.CONFIG_SET('USING_SYSTEM_TEVENT'): bld.SAMBA_LIBRARY('tevent', SRC, @@ -73,13 +83,8 @@ def build(bld): enabled= not bld.CONFIG_SET('USING_SYSTEM_TEVENT'), abi_file='ABI/tevent-%s.sigs' % VERSION, abi_match='tevent_* _tevent_*', - vnum=VERSION, - private_library=not bld.env.standalone_tevent) - - if bld.env.standalone_tevent: - bld.env.PKGCONFIGDIR = '${LIBDIR}/pkgconfig' - bld.PKG_CONFIG_FILES('tevent.pc', vnum=VERSION) - bld.INSTALL_FILES('${INCLUDEDIR}', 'tevent.h') + vnum=vnum, + private_library=private_library) bld.SAMBA_PYTHON('pytevent', 'pytevent.c', |