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_SUBSYSTEM('samba-util-core',
71 source='''data_blob.c util_file.c sys_popen.c time.c
72 signal.c util.c idtree.c fault.c
73 substitute.c util_process.c util_strlist.c
74 strv_util.c bitmap.c select.c pidfile.c
75 become_daemon.c mkdir_p.c''',
76 deps='''time-basic samba-debug socket-blocking talloc
77 tevent execinfo pthread strv tini''',
78 public_deps='systemd systemd-daemon sys_rw',
81 bld.SAMBA_LIBRARY('iov_buf',
87 bld.SAMBA_LIBRARY('msghdr',
89 deps='replace iov_buf',
93 if bld.env.SAMBA_UTIL_CORE_ONLY:
95 bld.SAMBA_LIBRARY('tevent-util',
96 source='tevent_unix.c',
103 bld.env.public_headers_skip.append('charset_compat.h')
105 bld.SAMBA_LIBRARY('genrand',
107 deps='replace socket-blocking sys_rw',
109 private_library=True)
111 bld.SAMBA_BINARY('genrandperf',
112 source='tests/genrandperf.c',
113 deps='genrand replace',
117 bld.SAMBA_LIBRARY('samba-util',
146 deps='samba-util-core DYNCONFIG close-low-fd tiniparser genrand util_str_hex',
147 public_deps='talloc tevent execinfo pthread LIBCRYPTO charset util_setid',
165 header_path= [ ('dlinklist.h samba_util.h', '.'), ('*', 'util') ],
168 pc_files='samba-util.pc'
171 bld.SAMBA_LIBRARY('samba-modules',
173 deps='samba-errors samba-util',
175 private_library=True)
177 bld.SAMBA_LIBRARY('asn1util',
179 deps='talloc samba-util',
180 private_library=True,
184 bld.SAMBA_SUBSYSTEM('UNIX_PRIVS',
185 source='unix_privs.c',
186 autoproto='unix_privs.h',
187 deps='replace talloc',
192 bld.SAMBA_LIBRARY('util_tdb',
195 public_deps='tdb talloc',
199 bld.SAMBA_LIBRARY('tevent-util',
207 public_deps='tevent samba-errors',
208 public_headers='tevent_ntstatus.h tevent_unix.h tevent_werror.h',
209 header_path=[ ('*', 'util') ],
214 bld.SAMBA_LIBRARY('util_setid',
220 bld.SAMBA_SUBSYSTEM('util_ldb',
224 public_headers='util_ldb.h'
228 bld.SAMBA_SUBSYSTEM('UTIL_RUNCMD',
229 source='util_runcmd.c',
234 bld.SAMBA_SUBSYSTEM('UTIL_PW',
240 bld.SAMBA_LIBRARY('server_id_db',
241 source='server_id_db.c',
242 deps='talloc tdb strv util_tdb tdb-wrap samba-util',
244 private_library=True)
246 bld.SAMBA_SUBSYSTEM('access',
248 deps='interfaces samba-util tirpc nsl',
251 bld.SAMBA_SUBSYSTEM('util_str_escape',
252 source='util_str_escape.c',
256 bld.SAMBA_SUBSYSTEM('util_str_hex',
257 source='util_str_hex.c',
261 bld.SAMBA_BINARY('test_rfc1738',
262 source='tests/rfc1738.c',
263 deps='cmocka replace samba-util',
267 bld.SAMBA_BINARY('test_ms_fnmatch',
268 source='tests/test_ms_fnmatch.c',
269 deps='cmocka replace samba-util',
273 bld.SAMBA_BINARY('test_talloc_keep_secret',
274 source='tests/test_talloc_keep_secret.c',
275 deps='cmocka replace samba-util',