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_SUBSYSTEM('time-basic',
11 bld
.SAMBA_SUBSYSTEM('tini',
16 bld
.SAMBA_SUBSYSTEM('tiniparser',
17 source
='tiniparser.c',
21 bld
.SAMBA_SUBSYSTEM('strv',
26 bld
.SAMBA_SUBSYSTEM('close-low-fd',
27 source
='close_low_fd.c',
31 samba_debug_add_deps
= ''
33 if bld
.CONFIG_SET('HAVE_GPFS'):
34 bld
.SAMBA_SUBSYSTEM('gpfswrap',
38 includes
=bld
.CONFIG_GET('CPPPATH_GPFS'))
39 samba_debug_add_deps
+= ' gpfswrap'
41 bld
.SAMBA_LIBRARY('samba-debug',
43 deps
='replace time-basic close-low-fd talloc socket-blocking' + samba_debug_add_deps
,
44 public_deps
='systemd systemd-journal lttng-ust',
48 bld
.SAMBA_LIBRARY('socket-blocking',
53 bld
.SAMBA_SUBSYSTEM('samba-util-core',
54 source
='''xfile.c data_blob.c util_file.c time.c
55 signal.c util.c idtree.c fault.c
57 deps
='''time-basic samba-debug socket-blocking talloc
58 tevent execinfo pthread''',
61 if not bld
.env
.SAMBA_UTIL_CORE_ONLY
:
63 bld
.env
.public_headers_skip
.append('charset_compat.h')
65 bld
.SAMBA_LIBRARY('samba-util',
66 source
='''talloc_stack.c smb_threads.c
67 rbtree.c rfc1738.c become_daemon.c system.c select.c getpass.c
69 params.c util_id.c util_net.c
70 util_strlist.c util_paths.c idtree_random.c base64.c
71 util_str.c util_str_common.c ms_fnmatch.c
72 server_id.c dprintf.c parmlist.c bitmap.c pidfile.c
73 tevent_debug.c util_process.c memcache.c''',
74 deps
='samba-util-core DYNCONFIG close-low-fd tini tiniparser',
76 public_deps
='talloc tevent execinfo pthread LIBCRYPTO charset util_setid systemd systemd-daemon',
77 public_headers
='debug.h attr.h byteorder.h data_blob.h memory.h safe_string.h time.h talloc_stack.h xfile.h dlinklist.h samba_util.h string_wrappers.h idtree.h idtree_random.h blocking.h signal.h substitute.h fault.h',
78 header_path
= [ ('dlinklist.h samba_util.h', '.'), ('*', 'util') ],
81 pc_files
='samba-util.pc'
84 bld
.SAMBA_LIBRARY('samba-modules',
86 deps
='errors samba-util',
90 bld
.SAMBA_LIBRARY('asn1util',
92 deps
='talloc samba-util',
97 bld
.SAMBA_SUBSYSTEM('UNIX_PRIVS',
98 source
='unix_privs.c',
99 autoproto
='unix_privs.h',
100 deps
='replace talloc',
105 bld
.SAMBA_LIBRARY('util_tdb',
108 public_deps
='tdb talloc',
112 bld
.SAMBA_LIBRARY('talloc_report',
113 source
='talloc_report.c',
115 public_deps
='talloc',
119 bld
.SAMBA_LIBRARY('tevent-util',
120 source
='tevent_unix.c tevent_ntstatus.c tevent_werror.c',
122 public_deps
='tevent errors',
123 public_headers
='tevent_ntstatus.h tevent_unix.h tevent_werror.h',
124 header_path
=[ ('*', 'util') ],
129 bld
.SAMBA_LIBRARY('util_setid',
135 bld
.SAMBA_SUBSYSTEM('util_ldb',
139 public_headers
='util_ldb.h'
143 bld
.SAMBA_SUBSYSTEM('UTIL_RUNCMD',
144 source
='util_runcmd.c',
149 bld
.SAMBA_SUBSYSTEM('UTIL_PW',
155 bld
.SAMBA_LIBRARY('server_id_db',
156 source
='server_id_db.c',
157 deps
='talloc tdb strv util_tdb tdb-wrap samba-util',
159 private_library
=True)
161 bld
.SAMBA_LIBRARY('iov_buf',
164 private_library
=True)