summaryrefslogtreecommitdiff
path: root/lib/tevent/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tevent/wscript')
-rw-r--r--lib/tevent/wscript19
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',