summaryrefslogtreecommitdiff
path: root/lib/util/wscript_build
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2015-09-08 10:34:21 +1000
committerAmitay Isaacs <amitay@samba.org>2015-10-07 14:53:28 +0200
commit670db6ac1d678babd25dd82c4467c0f094cfabc5 (patch)
treef0ea28c0607662112c812bdfeff74cd301f11791 /lib/util/wscript_build
parent9c16fe43fc37d0804e5a0337726fccf4e1ab73f3 (diff)
downloadsamba-670db6ac1d678babd25dd82c4467c0f094cfabc5.tar.gz
lib/util: Create a new library for tevent_unix.c
This is required for ctdb. This avoids adding dependency on wstatus and ntstatus to ctdb build. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
Diffstat (limited to 'lib/util/wscript_build')
-rwxr-xr-xlib/util/wscript_build15
1 files changed, 12 insertions, 3 deletions
diff --git a/lib/util/wscript_build b/lib/util/wscript_build
index 47d64c1ae8e..e3bf073dd29 100755
--- a/lib/util/wscript_build
+++ b/lib/util/wscript_build
@@ -69,6 +69,15 @@ bld.SAMBA_SUBSYSTEM('samba-util-core',
tevent execinfo pthread''',
local_include=False)
+bld.SAMBA_LIBRARY('tevent-unix-util',
+ source='tevent_unix.c',
+ local_include=False,
+ deps='tevent',
+ public_headers='tevent_unix.h',
+ header_path=[ ('*', 'util') ],
+ pc_files=[],
+ vnum='0.0.1')
+
if not bld.env.SAMBA_UTIL_CORE_ONLY:
bld.env.public_headers_skip.append('charset_compat.h')
@@ -127,10 +136,10 @@ if not bld.env.SAMBA_UTIL_CORE_ONLY:
)
bld.SAMBA_LIBRARY('tevent-util',
- source='tevent_unix.c tevent_ntstatus.c tevent_werror.c',
+ source='tevent_ntstatus.c tevent_werror.c',
local_include=False,
- public_deps='tevent errors',
- public_headers='tevent_ntstatus.h tevent_unix.h tevent_werror.h',
+ public_deps='tevent errors tevent-unix-util',
+ public_headers='tevent_ntstatus.h tevent_werror.h',
header_path=[ ('*', 'util') ],
pc_files=[],
vnum='0.0.1'