s4:gensec/gssapi: make calculation of gensec_gssapi_sig_size() for aes keys more...
[Samba.git] / lib / util / wscript_build
blob92f25455b827f5b7bcf3a61bb06b493928463454
1 #!/usr/bin/env python
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',
7 source='time_basic.c',
8 deps='replace',
9 local_include=False)
11 bld.SAMBA_SUBSYSTEM('tini',
12 source='tini.c',
13 deps='',
14 local_include=False)
16 bld.SAMBA_SUBSYSTEM('tiniparser',
17 source='tiniparser.c',
18 deps='tini',
19 local_include=False)
21 bld.SAMBA_SUBSYSTEM('strv',
22 source='strv.c',
23 deps='talloc',
24 local_include=False)
26 bld.SAMBA_SUBSYSTEM('close-low-fd',
27 source='close_low_fd.c',
28 deps='replace',
29 local_include=False)
31 samba_debug_add_deps = ''
33 if bld.CONFIG_SET('HAVE_GPFS'):
34 bld.SAMBA_SUBSYSTEM('gpfswrap',
35 source='gpfswrap.c',
36 deps='replace',
37 local_include=False,
38 includes=bld.CONFIG_GET('CPPPATH_GPFS'))
39 samba_debug_add_deps += ' gpfswrap'
41 bld.SAMBA_LIBRARY('samba-debug',
42 source='debug.c',
43 deps='replace time-basic close-low-fd talloc socket-blocking' + samba_debug_add_deps,
44 public_deps='systemd systemd-journal lttng-ust',
45 local_include=False,
46 private_library=True)
48 bld.SAMBA_LIBRARY('socket-blocking',
49 source='blocking.c',
50 local_include=False,
51 private_library=True)
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
56 substitute.c''',
57 deps='''time-basic samba-debug socket-blocking talloc
58 tevent execinfo pthread''',
59 local_include=False)
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
68 genrand.c fsusage.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') ],
79 local_include=False,
80 vnum='0.0.1',
81 pc_files='samba-util.pc'
84 bld.SAMBA_LIBRARY('samba-modules',
85 source='modules.c',
86 deps='errors samba-util',
87 local_include=False,
88 private_library=True)
90 bld.SAMBA_LIBRARY('asn1util',
91 source='asn1.c',
92 deps='talloc samba-util',
93 private_library=True,
94 local_include=False)
97 bld.SAMBA_SUBSYSTEM('UNIX_PRIVS',
98 source='unix_privs.c',
99 autoproto='unix_privs.h',
100 deps='replace talloc',
101 local_include=False,
105 bld.SAMBA_LIBRARY('util_tdb',
106 source='util_tdb.c',
107 local_include=False,
108 public_deps='tdb talloc',
109 private_library=True
112 bld.SAMBA_LIBRARY('talloc_report',
113 source='talloc_report.c',
114 local_include=False,
115 public_deps='talloc',
116 private_library=True
119 bld.SAMBA_LIBRARY('tevent-util',
120 source='tevent_unix.c tevent_ntstatus.c tevent_werror.c',
121 local_include=False,
122 public_deps='tevent errors',
123 public_headers='tevent_ntstatus.h tevent_unix.h tevent_werror.h',
124 header_path=[ ('*', 'util') ],
125 pc_files=[],
126 vnum='0.0.1'
129 bld.SAMBA_LIBRARY('util_setid',
130 source='setid.c',
131 local_include=False,
132 private_library=True
135 bld.SAMBA_SUBSYSTEM('util_ldb',
136 source='util_ldb.c',
137 local_include=False,
138 public_deps='ldb',
139 public_headers='util_ldb.h'
143 bld.SAMBA_SUBSYSTEM('UTIL_RUNCMD',
144 source='util_runcmd.c',
145 local_include=False,
146 public_deps='tevent'
149 bld.SAMBA_SUBSYSTEM('UTIL_PW',
150 source='util_pw.c',
151 local_include=False,
152 public_deps='talloc'
155 bld.SAMBA_LIBRARY('server_id_db',
156 source='server_id_db.c',
157 deps='talloc tdb strv util_tdb tdb-wrap samba-util',
158 local_include=False,
159 private_library=True)
161 bld.SAMBA_LIBRARY('iov_buf',
162 source='iov_buf.c',
163 local_include=False,
164 private_library=True)