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''',
80 bld
.SAMBA_LIBRARY('iov_buf',
86 bld
.SAMBA_LIBRARY('msghdr',
88 deps
='replace iov_buf',
92 if bld
.env
.SAMBA_UTIL_CORE_ONLY
:
94 bld
.SAMBA_LIBRARY('tevent-util',
95 source
='tevent_unix.c',
102 bld
.env
.public_headers_skip
.append('charset_compat.h')
104 bld
.SAMBA_LIBRARY('genrand',
106 deps
='replace socket-blocking sys_rw',
108 private_library
=True)
110 bld
.SAMBA_BINARY('genrandperf',
111 source
='tests/genrandperf.c',
112 deps
='genrand replace',
116 bld
.SAMBA_LIBRARY('samba-util',
117 source
='''talloc_stack.c smb_threads.c
118 rbtree.c rfc1738.c system.c getpass.c
119 genrand_util.c fsusage.c
120 params.c util_id.c util_net.c
121 util_strlist_v3.c util_paths.c
122 idtree_random.c base64.c
123 util_str.c util_str_common.c ms_fnmatch.c
124 server_id.c dprintf.c
125 tevent_debug.c memcache.c unix_match.c tfork.c''',
126 deps
='samba-util-core DYNCONFIG close-low-fd tini tiniparser genrand util_str_hex',
127 public_deps
='talloc tevent execinfo pthread LIBCRYPTO charset util_setid systemd systemd-daemon',
128 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',
129 header_path
= [ ('dlinklist.h samba_util.h', '.'), ('*', 'util') ],
132 pc_files
='samba-util.pc'
135 bld
.SAMBA_LIBRARY('samba-modules',
137 deps
='samba-errors samba-util',
139 private_library
=True)
141 bld
.SAMBA_LIBRARY('asn1util',
143 deps
='talloc samba-util',
144 private_library
=True,
148 bld
.SAMBA_SUBSYSTEM('UNIX_PRIVS',
149 source
='unix_privs.c',
150 autoproto
='unix_privs.h',
151 deps
='replace talloc',
156 bld
.SAMBA_LIBRARY('util_tdb',
159 public_deps
='tdb talloc',
163 bld
.SAMBA_LIBRARY('tevent-util',
164 source
='tevent_unix.c tevent_ntstatus.c tevent_werror.c',
166 public_deps
='tevent samba-errors',
167 public_headers
='tevent_ntstatus.h tevent_unix.h tevent_werror.h',
168 header_path
=[ ('*', 'util') ],
173 bld
.SAMBA_LIBRARY('util_setid',
179 bld
.SAMBA_SUBSYSTEM('util_ldb',
183 public_headers
='util_ldb.h'
187 bld
.SAMBA_SUBSYSTEM('UTIL_RUNCMD',
188 source
='util_runcmd.c',
193 bld
.SAMBA_SUBSYSTEM('UTIL_PW',
199 bld
.SAMBA_LIBRARY('server_id_db',
200 source
='server_id_db.c',
201 deps
='talloc tdb strv util_tdb tdb-wrap samba-util',
203 private_library
=True)
205 bld
.SAMBA_SUBSYSTEM('access',
207 deps
='interfaces samba-util tirpc nsl',
210 bld
.SAMBA_SUBSYSTEM('util_str_escape',
211 source
='util_str_escape.c',
215 bld
.SAMBA_SUBSYSTEM('util_str_hex',
216 source
='util_str_hex.c',
220 bld
.SAMBA_BINARY('test_rfc1738',
221 source
='tests/rfc1738.c',
222 deps
='cmocka replace samba-util',