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 samba_debug_add_deps
= ''
33 samba_debug_add_inc
= ''
35 if bld
.CONFIG_SET('HAVE_GPFS'):
36 bld
.SAMBA_SUBSYSTEM('gpfswrap',
40 includes
=bld
.CONFIG_GET('CPPPATH_GPFS'))
41 samba_debug_add_deps
+= ' gpfswrap'
42 samba_debug_add_inc
+= bld
.CONFIG_GET('CPPPATH_GPFS')
44 bld
.SAMBA_LIBRARY('samba-debug',
46 deps
='replace time-basic close-low-fd talloc socket-blocking' + samba_debug_add_deps
,
47 public_deps
='systemd systemd-journal lttng-ust',
49 includes
=samba_debug_add_inc
,
52 bld
.SAMBA_LIBRARY('socket-blocking',
57 bld
.SAMBA_LIBRARY('talloc_report',
58 source
='talloc_report.c',
64 bld
.SAMBA_SUBSYSTEM('samba-util-core',
65 source
='''xfile.c data_blob.c util_file.c time.c
66 signal.c util.c idtree.c fault.c
67 substitute.c util_process.c util_strlist.c
69 deps
='''time-basic samba-debug socket-blocking talloc
70 tevent execinfo pthread strv''',
73 bld
.SAMBA_LIBRARY('tevent-unix-util',
74 source
='tevent_unix.c',
77 public_headers
='tevent_unix.h',
78 header_path
=[ ('*', 'util') ],
82 if not bld
.env
.SAMBA_UTIL_CORE_ONLY
:
84 bld
.env
.public_headers_skip
.append('charset_compat.h')
86 bld
.SAMBA_LIBRARY('genrand',
88 deps
='replace socket-blocking sys_rw',
92 bld
.SAMBA_BINARY('genrandperf',
93 source
='tests/genrandperf.c',
94 deps
='genrand replace',
98 bld
.SAMBA_LIBRARY('samba-util',
99 source
='''talloc_stack.c smb_threads.c
100 rbtree.c rfc1738.c become_daemon.c system.c select.c getpass.c
101 genrand_util.c fsusage.c
102 params.c util_id.c util_net.c
103 util_strlist_v3.c util_paths.c
104 idtree_random.c base64.c
105 util_str.c util_str_common.c ms_fnmatch.c
106 server_id.c dprintf.c bitmap.c pidfile.c
107 tevent_debug.c memcache.c''',
108 deps
='samba-util-core DYNCONFIG close-low-fd tini tiniparser genrand',
109 public_deps
='talloc tevent execinfo pthread LIBCRYPTO charset util_setid systemd systemd-daemon',
110 public_headers
='debug.h attr.h byteorder.h data_blob.h memory.h safe_string.h time.h talloc_stack.h xfile.h string_wrappers.h idtree.h idtree_random.h blocking.h signal.h substitute.h fault.h genrand.h',
111 header_path
= [ ('dlinklist.h samba_util.h', '.'), ('*', 'util') ],
114 pc_files
='samba-util.pc'
117 bld
.SAMBA_LIBRARY('samba-modules',
119 deps
='samba-errors samba-util',
121 private_library
=True)
123 bld
.SAMBA_LIBRARY('asn1util',
125 deps
='talloc samba-util',
126 private_library
=True,
130 bld
.SAMBA_SUBSYSTEM('UNIX_PRIVS',
131 source
='unix_privs.c',
132 autoproto
='unix_privs.h',
133 deps
='replace talloc',
138 bld
.SAMBA_LIBRARY('util_tdb',
141 public_deps
='tdb talloc',
145 bld
.SAMBA_LIBRARY('tevent-util',
146 source
='tevent_ntstatus.c tevent_werror.c',
148 public_deps
='tevent samba-errors tevent-unix-util',
149 public_headers
='tevent_ntstatus.h tevent_werror.h',
150 header_path
=[ ('*', 'util') ],
155 bld
.SAMBA_LIBRARY('util_setid',
161 bld
.SAMBA_SUBSYSTEM('util_ldb',
165 public_headers
='util_ldb.h'
169 bld
.SAMBA_SUBSYSTEM('UTIL_RUNCMD',
170 source
='util_runcmd.c',
175 bld
.SAMBA_SUBSYSTEM('UTIL_PW',
181 bld
.SAMBA_LIBRARY('server_id_db',
182 source
='server_id_db.c',
183 deps
='talloc tdb strv util_tdb tdb-wrap samba-util',
185 private_library
=True)
187 bld
.SAMBA_LIBRARY('iov_buf',
190 private_library
=True)
192 bld
.SAMBA3_LIBRARY('sys_rw',
193 source
='sys_rw.c sys_rw_data.c',
194 deps
='replace iov_buf',
196 private_library
=True)