3 # Please add any new SAMBA_SUBSYSTEM/SAMBA_LIBRARY to the bottom of the file
4 # unless they are also required to build standalone ctdb.
6 bld
.SAMBA_SUBSYSTEM('time-basic',
11 bld
.SAMBA_SUBSYSTEM('tini',
16 bld
.SAMBA_SUBSYSTEM('tiniparser',
17 source
='tiniparser.c',
21 bld
.SAMBA_SUBSYSTEM('strv',
26 bld
.SAMBA_SUBSYSTEM('close-low-fd',
27 source
='close_low_fd.c',
31 bld
.SAMBA_LIBRARY('samba-debug',
33 deps
='replace time-basic close-low-fd talloc socket-blocking',
37 bld
.SAMBA_LIBRARY('socket-blocking',
42 bld
.SAMBA_SUBSYSTEM('samba-util-core',
43 source
='''xfile.c data_blob.c util_file.c time.c
44 signal.c util.c idtree.c fault.c
46 deps
='''time-basic samba-debug socket-blocking talloc
47 tevent execinfo pthread''',
50 if not bld
.env
.SAMBA_UTIL_CORE_ONLY
:
52 bld
.env
.public_headers_skip
.append('charset_compat.h')
54 bld
.SAMBA_LIBRARY('samba-util',
55 source
='''talloc_stack.c smb_threads.c
56 rbtree.c rfc1738.c become_daemon.c system.c select.c getpass.c
58 params.c util_id.c util_net.c
59 util_strlist.c util_paths.c idtree_random.c base64.c
60 util_str.c util_str_common.c ms_fnmatch.c
61 server_id.c dprintf.c parmlist.c bitmap.c pidfile.c
62 tevent_debug.c util_process.c memcache.c''',
63 deps
='samba-util-core DYNCONFIG close-low-fd tini tiniparser',
65 public_deps
='talloc tevent execinfo pthread LIBCRYPTO charset util_setid systemd-daemon',
66 public_headers
='debug.h attr.h byteorder.h data_blob.h memory.h safe_string.h time.h talloc_stack.h xfile.h dlinklist.h samba_util.h string_wrappers.h idtree.h idtree_random.h blocking.h signal.h substitute.h fault.h',
67 header_path
= [ ('dlinklist.h samba_util.h', '.'), ('*', 'util') ],
70 pc_files
='samba-util.pc'
73 bld
.SAMBA_LIBRARY('samba-modules',
75 deps
='errors samba-util',
79 bld
.SAMBA_LIBRARY('asn1util',
81 deps
='talloc samba-util',
86 bld
.SAMBA_SUBSYSTEM('UNIX_PRIVS',
87 source
='unix_privs.c',
88 autoproto
='unix_privs.h',
89 deps
='replace talloc',
94 bld
.SAMBA_LIBRARY('util_tdb',
97 public_deps
='tdb talloc',
101 bld
.SAMBA_LIBRARY('talloc_report',
102 source
='talloc_report.c',
104 public_deps
='talloc',
108 if not bld
.env
.disable_ntdb
:
109 bld
.SAMBA_LIBRARY('util_ntdb',
110 source
='util_ntdb.c',
112 public_deps
='ntdb talloc samba-util samba-hostconfig',
116 bld
.SAMBA_LIBRARY('tevent-util',
117 source
='tevent_unix.c tevent_ntstatus.c tevent_werror.c',
119 public_deps
='tevent errors',
120 public_headers
='tevent_ntstatus.h tevent_unix.h tevent_werror.h',
121 header_path
=[ ('*', 'util') ],
126 bld
.SAMBA_LIBRARY('util_setid',
132 bld
.SAMBA_SUBSYSTEM('util_ldb',
136 public_headers
='util_ldb.h'
140 bld
.SAMBA_SUBSYSTEM('UTIL_RUNCMD',
141 source
='util_runcmd.c',
146 bld
.SAMBA_SUBSYSTEM('UTIL_PW',
152 bld
.SAMBA_LIBRARY('server_id_db',
153 source
='server_id_db.c',
154 deps
='talloc tdb strv util_tdb tdb-wrap samba-util',
156 private_library
=True)
158 bld
.SAMBA_LIBRARY('iov_buf',
161 private_library
=True)