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_LIBRARY('time-basic',
12 bld
.SAMBA_SUBSYSTEM('tini',
17 bld
.SAMBA_SUBSYSTEM('tiniparser',
18 source
='tiniparser.c',
22 bld
.SAMBA_SUBSYSTEM('strv',
27 bld
.SAMBA_SUBSYSTEM('close-low-fd',
28 source
='close_low_fd.c',
32 bld
.SAMBA_LIBRARY('sys_rw',
33 source
='sys_rw.c sys_rw_data.c',
34 deps
='replace iov_buf',
38 samba_debug_add_deps
= ''
39 samba_debug_add_inc
= ''
41 if bld
.CONFIG_SET('HAVE_GPFS'):
42 bld
.SAMBA_SUBSYSTEM('gpfswrap',
46 includes
=bld
.CONFIG_GET('CPPPATH_GPFS'))
47 samba_debug_add_deps
+= ' gpfswrap'
48 samba_debug_add_inc
+= bld
.CONFIG_GET('CPPPATH_GPFS')
50 bld
.SAMBA_LIBRARY('samba-debug',
52 deps
='replace time-basic close-low-fd talloc socket-blocking' + samba_debug_add_deps
,
53 public_deps
='systemd systemd-journal lttng-ust',
55 includes
=samba_debug_add_inc
,
58 bld
.SAMBA_LIBRARY('socket-blocking',
63 bld
.SAMBA_LIBRARY('talloc_report',
64 source
='talloc_report.c',
70 bld
.SAMBA_LIBRARY('talloc_report_printf',
71 source
='talloc_report_printf.c',
77 bld
.SAMBA_SUBSYSTEM('samba-util-core',
78 source
='''data_blob.c util_file.c sys_popen.c time.c
79 signal.c util.c idtree.c fault.c
80 substitute.c util_process.c util_strlist.c
81 strv_util.c bitmap.c select.c pidfile.c
82 become_daemon.c mkdir_p.c''',
83 deps
='''time-basic samba-debug socket-blocking talloc
84 tevent execinfo pthread strv tini''',
85 public_deps
='systemd systemd-daemon sys_rw',
88 bld
.SAMBA_LIBRARY('iov_buf',
94 bld
.SAMBA_LIBRARY('msghdr',
96 deps
='replace iov_buf',
100 if bld
.env
.SAMBA_UTIL_CORE_ONLY
:
102 bld
.SAMBA_LIBRARY('tevent-util',
103 source
='tevent_unix.c',
106 private_library
=True)
110 bld
.env
.public_headers_skip
.append('charset_compat.h')
112 bld
.SAMBA_LIBRARY('genrand',
114 deps
='replace gnutls',
116 private_library
=True)
118 bld
.SAMBA_BINARY('genrandperf',
119 source
='tests/genrandperf.c',
120 deps
='genrand replace',
124 bld
.SAMBA_LIBRARY('samba-util',
153 deps
='samba-util-core DYNCONFIG close-low-fd tiniparser genrand util_str_hex',
154 public_deps
='talloc tevent execinfo pthread LIBCRYPTO charset util_setid',
172 header_path
= [ ('dlinklist.h samba_util.h', '.'), ('*', 'util') ],
175 pc_files
='samba-util.pc'
178 bld
.SAMBA_LIBRARY('samba-modules',
180 deps
='samba-errors samba-util',
182 private_library
=True)
184 bld
.SAMBA_LIBRARY('asn1util',
186 deps
='talloc samba-util',
187 private_library
=True,
191 bld
.SAMBA_SUBSYSTEM('UNIX_PRIVS',
192 source
='unix_privs.c',
193 autoproto
='unix_privs.h',
194 deps
='replace talloc',
199 bld
.SAMBA_LIBRARY('util_tdb',
202 public_deps
='tdb talloc',
206 bld
.SAMBA_LIBRARY('tevent-util',
214 public_deps
='tevent samba-errors',
215 public_headers
='tevent_ntstatus.h tevent_unix.h tevent_werror.h',
216 header_path
=[ ('*', 'util') ],
221 bld
.SAMBA_LIBRARY('util_setid',
227 bld
.SAMBA_SUBSYSTEM('util_ldb',
231 public_headers
='util_ldb.h'
235 bld
.SAMBA_SUBSYSTEM('UTIL_RUNCMD',
236 source
='util_runcmd.c',
241 bld
.SAMBA_SUBSYSTEM('UTIL_PW',
247 bld
.SAMBA_LIBRARY('server_id_db',
248 source
='server_id_db.c',
249 deps
='talloc tdb strv util_tdb tdb-wrap samba-util',
251 private_library
=True)
253 bld
.SAMBA_SUBSYSTEM('access',
255 deps
='interfaces samba-util tirpc nsl',
258 bld
.SAMBA_SUBSYSTEM('util_str_escape',
259 source
='util_str_escape.c',
263 bld
.SAMBA_SUBSYSTEM('util_str_hex',
264 source
='util_str_hex.c',
268 bld
.SAMBA_BINARY('test_rfc1738',
269 source
='tests/rfc1738.c',
270 deps
='cmocka replace samba-util',
274 bld
.SAMBA_BINARY('test_ms_fnmatch',
275 source
='tests/test_ms_fnmatch.c',
276 deps
='cmocka replace samba-util',
280 bld
.SAMBA_BINARY('test_talloc_keep_secret',
281 source
='tests/test_talloc_keep_secret.c',
282 deps
='cmocka replace samba-util',
286 bld
.SAMBA_BINARY('test_byteorder',
287 source
='tests/test_byteorder.c',
288 deps
='cmocka replace samba-util',