3 # as we move files into common between samba-util and samba-util3, move them here.
4 # Both samba-util and samba-util3 depend on this private library
5 bld.SAMBA_LIBRARY('samba-util-common',
6 source='''talloc_stack.c smb_threads.c xfile.c data_blob.c
7 util_file.c time.c rbtree.c rfc1738.c select.c
8 genrand.c fsusage.c blocking.c become_daemon.c
9 signal.c system.c params.c util.c util_id.c util_net.c
10 util_strlist.c idtree.c debug.c fault.c base64.c''',
11 public_deps='talloc pthread LIBCRYPTO',
12 # until we get all the dependencies in this library in common
13 # we need to allow this library to be built with unresolved symbols
14 allow_undefined_symbols=True,
16 public_headers='debug.h',
17 header_path= [('*', 'util') ],
21 if bld.env._SAMBA_BUILD_ == 4:
22 bld.SAMBA_LIBRARY('samba-util',
24 ms_fnmatch.c parmlist.c substitute.c util_str.c
26 deps='samba-util-common',
27 public_deps='talloc CHARSET execinfo uid_wrapper',
28 public_headers='attr.h byteorder.h data_blob.h memory.h safe_string.h time.h talloc_stack.h xfile.h dlinklist.h util.h',
29 header_path= [ ('dlinklist.h util.h', '.'), ('*', 'util') ],
32 pc_files='samba-util.pc'
36 bld.SAMBA_LIBRARY('asn1util',
38 deps='talloc samba-util-common',
43 bld.SAMBA_SUBSYSTEM('UNIX_PRIVS',
44 source='unix_privs.c',
45 autoproto='unix_privs.h',
46 deps='replace talloc',
51 bld.SAMBA_LIBRARY('wrap_xattr',
52 source='wrap_xattr.c',
60 bld.SAMBA_SUBSYSTEM('UTIL_TDB',
63 public_deps='tdb talloc'
66 bld.SAMBA_SUBSYSTEM('UTIL_TEVENT',
67 source='tevent_unix.c tevent_ntstatus.c tevent_werror.c',
70 public_headers='tevent_ntstatus.h tevent_unix.h tevent_werror.h',
71 header_path=[ ('*', 'util') ],
75 if bld.env._SAMBA_BUILD_ == 4:
76 bld.SAMBA_SUBSYSTEM('UTIL_LDB',
80 public_headers='util_ldb.h'
84 bld.SAMBA_SUBSYSTEM('UTIL_RUNCMD',
85 source='util_runcmd.c',
90 bld.SAMBA_SUBSYSTEM('UTIL_PW',