nfs4acls: Introduce a helper variable
[Samba.git] / lib / util / wscript_build
blob9663bb0fd98e679ac5f291ab9eecb14d00e7f40b
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_LIBRARY('time-basic',
7 source='time_basic.c',
8 deps='replace',
9 private_library=True,
10 local_include=False)
12 bld.SAMBA_SUBSYSTEM('tini',
13 source='tini.c',
14 deps='',
15 local_include=False)
17 bld.SAMBA_SUBSYSTEM('tiniparser',
18 source='tiniparser.c',
19 deps='tini',
20 local_include=False)
22 bld.SAMBA_SUBSYSTEM('strv',
23 source='strv.c',
24 deps='talloc',
25 local_include=False)
27 bld.SAMBA_SUBSYSTEM('close-low-fd',
28 source='close_low_fd.c',
29 deps='replace',
30 local_include=False)
32 samba_debug_add_deps = ''
33 samba_debug_add_inc = ''
35 if bld.CONFIG_SET('HAVE_GPFS'):
36 bld.SAMBA_SUBSYSTEM('gpfswrap',
37 source='gpfswrap.c',
38 deps='replace',
39 local_include=False,
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',
45 source='debug.c',
46 deps='replace time-basic close-low-fd talloc socket-blocking' + samba_debug_add_deps,
47 public_deps='systemd systemd-journal lttng-ust',
48 local_include=False,
49 includes=samba_debug_add_inc,
50 private_library=True)
52 bld.SAMBA_LIBRARY('socket-blocking',
53 source='blocking.c',
54 local_include=False,
55 private_library=True)
57 bld.SAMBA_SUBSYSTEM('samba-util-core',
58 source='''xfile.c data_blob.c util_file.c time.c
59 signal.c util.c idtree.c fault.c
60 substitute.c''',
61 deps='''time-basic samba-debug socket-blocking talloc
62 tevent execinfo pthread''',
63 local_include=False)
65 if not bld.env.SAMBA_UTIL_CORE_ONLY:
67 bld.env.public_headers_skip.append('charset_compat.h')
69 bld.SAMBA_LIBRARY('genrand',
70 source='genrand.c',
71 deps='time-basic socket-blocking LIBCRYPTO',
72 local_include=False,
73 private_library=True)
75 bld.SAMBA_LIBRARY('samba-util',
76 source='''talloc_stack.c smb_threads.c
77 rbtree.c rfc1738.c become_daemon.c system.c select.c getpass.c
78 genrand_util.c fsusage.c
79 params.c util_id.c util_net.c
80 util_strlist.c util_paths.c idtree_random.c base64.c
81 util_str.c util_str_common.c ms_fnmatch.c
82 server_id.c dprintf.c parmlist.c bitmap.c pidfile.c
83 tevent_debug.c util_process.c memcache.c''',
84 deps='samba-util-core DYNCONFIG close-low-fd tini tiniparser genrand',
86 public_deps='talloc tevent execinfo pthread LIBCRYPTO charset util_setid systemd systemd-daemon',
87 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 genrand.h',
88 header_path= [ ('dlinklist.h samba_util.h', '.'), ('*', 'util') ],
89 local_include=False,
90 vnum='0.0.1',
91 pc_files='samba-util.pc'
94 bld.SAMBA_LIBRARY('samba-modules',
95 source='modules.c',
96 deps='errors samba-util',
97 local_include=False,
98 private_library=True)
100 bld.SAMBA_LIBRARY('asn1util',
101 source='asn1.c',
102 deps='talloc samba-util',
103 private_library=True,
104 local_include=False)
107 bld.SAMBA_SUBSYSTEM('UNIX_PRIVS',
108 source='unix_privs.c',
109 autoproto='unix_privs.h',
110 deps='replace talloc',
111 local_include=False,
115 bld.SAMBA_LIBRARY('util_tdb',
116 source='util_tdb.c',
117 local_include=False,
118 public_deps='tdb talloc',
119 private_library=True
122 bld.SAMBA_LIBRARY('talloc_report',
123 source='talloc_report.c',
124 local_include=False,
125 public_deps='talloc',
126 private_library=True
129 bld.SAMBA_LIBRARY('tevent-util',
130 source='tevent_unix.c tevent_ntstatus.c tevent_werror.c',
131 local_include=False,
132 public_deps='tevent errors',
133 public_headers='tevent_ntstatus.h tevent_unix.h tevent_werror.h',
134 header_path=[ ('*', 'util') ],
135 pc_files=[],
136 vnum='0.0.1'
139 bld.SAMBA_LIBRARY('util_setid',
140 source='setid.c',
141 local_include=False,
142 private_library=True
145 bld.SAMBA_SUBSYSTEM('util_ldb',
146 source='util_ldb.c',
147 local_include=False,
148 public_deps='ldb',
149 public_headers='util_ldb.h'
153 bld.SAMBA_SUBSYSTEM('UTIL_RUNCMD',
154 source='util_runcmd.c',
155 local_include=False,
156 public_deps='tevent'
159 bld.SAMBA_SUBSYSTEM('UTIL_PW',
160 source='util_pw.c',
161 local_include=False,
162 public_deps='talloc'
165 bld.SAMBA_LIBRARY('server_id_db',
166 source='server_id_db.c',
167 deps='talloc tdb strv util_tdb tdb-wrap samba-util',
168 local_include=False,
169 private_library=True)
171 bld.SAMBA_LIBRARY('iov_buf',
172 source='iov_buf.c',
173 local_include=False,
174 private_library=True)