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 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',
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',
118 source='''talloc_stack.c smb_threads.c
119 rbtree.c rfc1738.c system.c getpass.c
120 genrand_util.c fsusage.c
121 params.c util_id.c util_net.c
122 util_strlist_v3.c util_paths.c
123 idtree_random.c base64.c
124 util_str.c util_str_common.c ms_fnmatch.c
125 server_id.c dprintf.c
126 tevent_debug.c memcache.c unix_match.c tfork.c''',
127 deps='samba-util-core DYNCONFIG close-low-fd tiniparser genrand util_str_hex',
128 public_deps='talloc tevent execinfo pthread LIBCRYPTO charset util_setid',
129 public_headers='debug.h attr.h byteorder.h data_blob.h memory.h safe_string.h time.h talloc_stack.h string_wrappers.h idtree.h idtree_random.h blocking.h signal.h substitute.h fault.h genrand.h tfork.h',
130 header_path= [ ('dlinklist.h samba_util.h', '.'), ('*', 'util') ],
133 pc_files='samba-util.pc'
136 bld.SAMBA_LIBRARY('samba-modules',
138 deps='samba-errors samba-util',
140 private_library=True)
142 bld.SAMBA_LIBRARY('asn1util',
144 deps='talloc samba-util',
145 private_library=True,
149 bld.SAMBA_SUBSYSTEM('UNIX_PRIVS',
150 source='unix_privs.c',
151 autoproto='unix_privs.h',
152 deps='replace talloc',
157 bld.SAMBA_LIBRARY('util_tdb',
160 public_deps='tdb talloc',
164 bld.SAMBA_LIBRARY('tevent-util',
171 public_deps='tevent samba-errors',
172 public_headers='tevent_ntstatus.h tevent_unix.h tevent_werror.h',
173 header_path=[ ('*', 'util') ],
178 bld.SAMBA_LIBRARY('util_setid',
184 bld.SAMBA_SUBSYSTEM('util_ldb',
188 public_headers='util_ldb.h'
192 bld.SAMBA_SUBSYSTEM('UTIL_RUNCMD',
193 source='util_runcmd.c',
198 bld.SAMBA_SUBSYSTEM('UTIL_PW',
204 bld.SAMBA_LIBRARY('server_id_db',
205 source='server_id_db.c',
206 deps='talloc tdb strv util_tdb tdb-wrap samba-util',
208 private_library=True)
210 bld.SAMBA_SUBSYSTEM('access',
212 deps='interfaces samba-util tirpc nsl',
215 bld.SAMBA_SUBSYSTEM('util_str_escape',
216 source='util_str_escape.c',
220 bld.SAMBA_SUBSYSTEM('util_str_hex',
221 source='util_str_hex.c',
225 bld.SAMBA_BINARY('test_rfc1738',
226 source='tests/rfc1738.c',
227 deps='cmocka replace samba-util',
231 bld.SAMBA_BINARY('test_ms_fnmatch',
232 source='tests/test_ms_fnmatch.c',
233 deps='cmocka replace samba-util',