docs: use popt.autohelp in smbtree manpage.
[Samba.git] / source3 / modules / wscript_build
blob32e541fdce84dba61f03df23890eaf65459bbe24
1 #!/usr/bin/env python
3 bld.SAMBA3_SUBSYSTEM('NFS4_ACLS',
4 source='nfs4_acls.c',
5 deps='samba-util tdb')
7 bld.SAMBA3_LIBRARY('non_posix_acls',
8 source='non_posix_acls.c',
9 deps='samba-util vfs',
10 private_library=True)
12 bld.SAMBA3_SUBSYSTEM('VFS_AIXACL_UTIL',
13 source='vfs_aixacl_util.c',
14 enabled=(bld.SAMBA3_IS_ENABLED_MODULE('vfs_aixacl') or bld.SAMBA3_IS_ENABLED_MODULE('vfs_aixacl2')))
16 bld.SAMBA3_SUBSYSTEM('vfs',
17 source='',
18 deps='smbd_base')
20 bld.SAMBA3_MODULE('vfs_default',
21 subsystem='vfs',
22 source='vfs_default.c',
23 deps='samba-util NDR_DFSBLOBS',
24 init_function='',
25 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_default'),
26 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_default'))
28 bld.SAMBA3_MODULE('vfs_audit',
29 subsystem='vfs',
30 source='vfs_audit.c',
31 deps='samba-util',
32 init_function='',
33 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_audit'),
34 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_audit'))
36 bld.SAMBA3_MODULE('vfs_extd_audit',
37 subsystem='vfs',
38 source='vfs_extd_audit.c',
39 deps='samba-util',
40 init_function='',
41 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_extd_audit'),
42 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_extd_audit'))
44 bld.SAMBA3_MODULE('vfs_full_audit',
45 subsystem='vfs',
46 source='vfs_full_audit.c',
47 deps='samba-util',
48 init_function='',
49 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_full_audit'),
50 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_full_audit'))
52 bld.SAMBA3_MODULE('vfs_fake_perms',
53 subsystem='vfs',
54 source='vfs_fake_perms.c',
55 deps='samba-util',
56 init_function='',
57 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_fake_perms'),
58 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_fake_perms'))
60 bld.SAMBA3_MODULE('vfs_fake_acls',
61 subsystem='vfs',
62 source='vfs_fake_acls.c',
63 deps='samba-util',
64 init_function='',
65 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_fake_acls'),
66 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_fake_acls'))
68 bld.SAMBA3_MODULE('vfs_recycle',
69 subsystem='vfs',
70 source='vfs_recycle.c',
71 deps='samba-util',
72 init_function='',
73 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_recycle'),
74 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_recycle'))
76 bld.SAMBA3_MODULE('vfs_netatalk',
77 subsystem='vfs',
78 source='vfs_netatalk.c',
79 deps='samba-util',
80 init_function='',
81 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_netatalk'),
82 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_netatalk'))
84 bld.SAMBA3_MODULE('vfs_default_quota',
85 subsystem='vfs',
86 source='vfs_default_quota.c',
87 deps='samba-util',
88 init_function='',
89 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_default_quota'),
90 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_default_quota'))
92 bld.SAMBA3_MODULE('vfs_readonly',
93 subsystem='vfs',
94 source='vfs_readonly.c getdate.c',
95 deps='samba-util',
96 init_function='',
97 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_readonly'),
98 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_readonly'))
100 bld.SAMBA3_MODULE('vfs_cap',
101 subsystem='vfs',
102 source='vfs_cap.c',
103 deps='samba-util',
104 init_function='',
105 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_cap'),
106 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_cap'))
108 bld.SAMBA3_MODULE('vfs_expand_msdfs',
109 subsystem='vfs',
110 source='vfs_expand_msdfs.c',
111 deps='samba-util',
112 init_function='',
113 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_expand_msdfs'),
114 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_expand_msdfs'))
116 bld.SAMBA3_MODULE('vfs_shadow_copy',
117 subsystem='vfs',
118 source='vfs_shadow_copy.c',
119 deps='samba-util',
120 init_function='',
121 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_shadow_copy'),
122 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_shadow_copy'))
124 bld.SAMBA3_MODULE('vfs_shadow_copy2',
125 subsystem='vfs',
126 source='vfs_shadow_copy2.c',
127 deps='samba-util tdb',
128 init_function='',
129 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_shadow_copy2'),
130 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_shadow_copy2'))
132 bld.SAMBA3_MODULE('vfs_afsacl',
133 subsystem='vfs',
134 source='vfs_afsacl.c',
135 deps='samba-util',
136 init_function='',
137 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_afsacl'),
138 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_afsacl'))
140 bld.SAMBA3_MODULE('vfs_xattr_tdb',
141 subsystem='vfs',
142 source='vfs_xattr_tdb.c',
143 deps='dbwrap xattr_tdb',
144 init_function='',
145 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_xattr_tdb'),
146 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_xattr_tdb'))
148 bld.SAMBA3_MODULE('vfs_posix_eadb',
149 subsystem='vfs',
150 source='vfs_posix_eadb.c',
151 deps='tdb-wrap posix_eadb',
152 init_function='',
153 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_posix_eadb') and bld.AD_DC_BUILD_IS_ENABLED(),
154 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_posix_eadb') and bld.AD_DC_BUILD_IS_ENABLED())
156 bld.SAMBA3_MODULE('vfs_posixacl',
157 subsystem='vfs',
158 source='vfs_posixacl.c',
159 deps='acl attr',
160 init_function='',
161 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_posixacl'),
162 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_posixacl'))
164 bld.SAMBA3_MODULE('vfs_aixacl',
165 subsystem='vfs',
166 source='vfs_aixacl.c',
167 deps='VFS_AIXACL_UTIL',
168 init_function='',
169 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_aixacl'),
170 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_aixacl'))
172 bld.SAMBA3_MODULE('vfs_aixacl2',
173 subsystem='vfs',
174 source='vfs_aixacl2.c',
175 deps='NFS4_ACLS VFS_AIXACL_UTIL',
176 init_function='',
177 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_aixacl2'),
178 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_aixacl2'))
180 bld.SAMBA3_MODULE('vfs_solarisacl',
181 subsystem='vfs',
182 source='vfs_solarisacl.c',
183 init_function='',
184 deps='sec',
185 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_solarisacl'),
186 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_solarisacl'))
188 bld.SAMBA3_MODULE('vfs_zfsacl',
189 subsystem='vfs',
190 source='vfs_zfsacl.c',
191 deps='NFS4_ACLS sunacl',
192 init_function='',
193 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_zfsacl'),
194 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_zfsacl'))
196 bld.SAMBA3_MODULE('vfs_nfs4acl_xattr',
197 subsystem='vfs',
198 source='vfs_nfs4acl_xattr.c',
199 deps='NFS4_ACLS sunacl NDR_NFS4ACL',
200 init_function='',
201 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_nfs4acl_xattr'),
202 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_nfs4acl_xattr'))
204 bld.SAMBA3_MODULE('vfs_hpuxacl',
205 subsystem='vfs',
206 source='vfs_hpuxacl.c',
207 init_function='',
208 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_hpuxacl'),
209 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_hpuxacl'))
211 bld.SAMBA3_MODULE('vfs_tru64acl',
212 subsystem='vfs',
213 source='vfs_tru64acl.c',
214 init_function='',
215 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_true64acl'),
216 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_true64acl'))
218 bld.SAMBA3_MODULE('vfs_catia',
219 subsystem='vfs',
220 source='vfs_catia.c',
221 deps='samba-util',
222 init_function='',
223 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_catia'),
224 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_catia'))
226 bld.SAMBA3_MODULE('vfs_streams_xattr',
227 subsystem='vfs',
228 source='vfs_streams_xattr.c',
229 deps='samba-util',
230 init_function='',
231 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_streams_xattr'),
232 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_streams_xattr'))
234 bld.SAMBA3_MODULE('vfs_streams_depot',
235 subsystem='vfs',
236 source='vfs_streams_depot.c',
237 deps='samba-util',
238 init_function='',
239 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_streams_depot'),
240 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_streams_depot'))
242 bld.SAMBA3_MODULE('vfs_cacheprime',
243 subsystem='vfs',
244 source='vfs_cacheprime.c',
245 deps='samba-util',
246 init_function='',
247 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_cacheprime'),
248 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_cacheprime'))
250 bld.SAMBA3_MODULE('vfs_prealloc',
251 subsystem='vfs',
252 source='vfs_prealloc.c',
253 deps='samba-util',
254 init_function='',
255 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_prealloc'),
256 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_prealloc'))
258 bld.SAMBA3_MODULE('vfs_commit',
259 subsystem='vfs',
260 source='vfs_commit.c',
261 deps='samba-util',
262 init_function='',
263 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_commit'),
264 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_commit'))
266 bld.SAMBA3_MODULE('vfs_gpfs',
267 subsystem='vfs',
268 source='vfs_gpfs.c gpfs.c',
269 deps='NFS4_ACLS non_posix_acls',
270 init_function='',
271 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_gpfs'),
272 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_gpfs'))
274 vfs_notify_fam_deps='samba-util '
275 if bld.CONFIG_SET('SAMBA_FAM_LIBS'):
276 vfs_notify_fam_deps += bld.CONFIG_GET('SAMBA_FAM_LIBS')
277 bld.SAMBA3_MODULE('vfs_notify_fam',
278 subsystem='vfs',
279 source='vfs_notify_fam.c',
280 deps=vfs_notify_fam_deps,
281 init_function='',
282 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_notify_fam'),
283 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_notify_fam'))
285 bld.SAMBA3_MODULE('vfs_readahead',
286 subsystem='vfs',
287 source='vfs_readahead.c',
288 deps='samba-util',
289 init_function='',
290 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_readahead'),
291 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_readahead'))
293 bld.SAMBA3_MODULE('vfs_tsmsm',
294 subsystem='vfs',
295 source='vfs_tsmsm.c',
296 deps='samba-util',
297 init_function='',
298 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_tsmsm'),
299 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_tsmsm'))
301 bld.SAMBA3_MODULE('vfs_fileid',
302 subsystem='vfs',
303 source='vfs_fileid.c',
304 deps='samba-util',
305 init_function='',
306 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_fileid'),
307 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_fileid'))
309 bld.SAMBA3_MODULE('vfs_aio_fork',
310 subsystem='vfs',
311 source='vfs_aio_fork.c',
312 deps='samba-util tevent',
313 init_function='',
314 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_aio_fork'),
315 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_aio_fork'),
316 allow_undefined_symbols=True)
318 bld.SAMBA3_MODULE('vfs_aio_pthread',
319 subsystem='vfs',
320 source='vfs_aio_pthread.c',
321 deps='samba-util tevent',
322 init_function='',
323 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_aio_pthread'),
324 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_aio_pthread'),
325 allow_undefined_symbols=True)
327 bld.SAMBA3_MODULE('vfs_aio_posix',
328 subsystem='vfs',
329 source='vfs_aio_posix.c',
330 deps='samba-util tevent',
331 init_function='',
332 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_aio_posix'),
333 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_aio_posix'),
334 allow_undefined_symbols=True)
336 bld.SAMBA3_MODULE('vfs_aio_linux',
337 subsystem='vfs',
338 source='vfs_aio_linux.c',
339 deps='samba-util aio',
340 init_function='',
341 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_aio_linux'),
342 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_aio_linux'),
343 allow_undefined_symbols=True)
345 bld.SAMBA3_MODULE('vfs_preopen',
346 subsystem='vfs',
347 source='vfs_preopen.c',
348 deps='samba-util',
349 init_function='',
350 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_preopen'),
351 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_preopen'))
353 bld.SAMBA3_MODULE('vfs_syncops',
354 subsystem='vfs',
355 source='vfs_syncops.c',
356 deps='samba-util',
357 init_function='',
358 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_syncops'),
359 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_syncops'))
361 bld.SAMBA3_MODULE('vfs_acl_xattr',
362 subsystem='vfs',
363 source='vfs_acl_xattr.c',
364 deps='samba-util',
365 init_function='',
366 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_acl_xattr'),
367 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_acl_xattr'))
369 bld.SAMBA3_MODULE('vfs_acl_tdb',
370 subsystem='vfs',
371 source='vfs_acl_tdb.c',
372 deps='NDR_XATTR tdb',
373 init_function='',
374 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_acl_tdb'),
375 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_acl_tdb'))
377 bld.SAMBA3_MODULE('vfs_smb_traffic_analyzer',
378 subsystem='vfs',
379 source='vfs_smb_traffic_analyzer.c',
380 deps='samba-util',
381 init_function='',
382 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_smb_traffic_analyzer'),
383 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_smb_traffic_analyzer'))
385 bld.SAMBA3_MODULE('vfs_dirsort',
386 subsystem='vfs',
387 source='vfs_dirsort.c',
388 deps='samba-util',
389 init_function='',
390 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_dirsort'),
391 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_dirsort'))
393 bld.SAMBA3_MODULE('vfs_scannedonly',
394 subsystem='vfs',
395 source='vfs_scannedonly.c',
396 deps='samba-util',
397 init_function='',
398 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_scannedonly'),
399 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_scannedonly'))
401 bld.SAMBA3_MODULE('vfs_crossrename',
402 subsystem='vfs',
403 source='vfs_crossrename.c',
404 deps='samba-util',
405 init_function='',
406 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_crossrename'),
407 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_crossrename'))
409 bld.SAMBA3_MODULE('vfs_linux_xfs_sgid',
410 subsystem='vfs',
411 source='vfs_linux_xfs_sgid.c',
412 deps='samba-util',
413 init_function='',
414 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_linux_xfs_sgid'),
415 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_linux_xfs_sgid'))
417 bld.SAMBA3_MODULE('vfs_time_audit',
418 subsystem='vfs',
419 source='vfs_time_audit.c',
420 deps='samba-util',
421 init_function='',
422 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_time_audit'),
423 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_time_audit'))
425 bld.SAMBA3_MODULE('vfs_media_harmony',
426 subsystem='vfs',
427 source='vfs_media_harmony.c',
428 deps='samba-util',
429 init_function='',
430 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_media_harmony'),
431 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_media_harmony'))
433 bld.SAMBA3_MODULE('vfs_dfs_samba4',
434 subsystem='vfs',
435 source='vfs_dfs_samba4.c',
436 deps='samba-util dfs_server_ad samdb tevent',
437 init_function='',
438 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_dfs_samba4') and bld.AD_DC_BUILD_IS_ENABLED(),
439 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_dfs_samba4') and bld.AD_DC_BUILD_IS_ENABLED())
441 bld.SAMBA3_MODULE('vfs_btrfs',
442 subsystem='vfs',
443 source='vfs_btrfs.c',
444 deps='samba-util',
445 init_function='',
446 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_btrfs'),
447 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_btrfs'))
449 bld.SAMBA3_SUBSYSTEM('perfcount',
450 source='',
451 deps='smbd_base')
453 bld.SAMBA3_MODULE('perfcount_test',
454 subsystem='perfcount',
455 source='perfcount_test.c',
456 init_function='',
457 internal_module=bld.SAMBA3_IS_STATIC_MODULE('perfcount_test'),
458 enabled=bld.SAMBA3_IS_ENABLED_MODULE('perfcount_test'))
460 bld.SAMBA3_MODULE('vfs_ceph',
461 subsystem='vfs',
462 source='vfs_ceph.c',
463 deps='samba-util cephfs',
464 init_function='',
465 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_ceph'),
466 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_ceph'),
467 cflags=bld.CONFIG_GET('CCFLAGS_CEPHFS'))
469 bld.SAMBA3_MODULE('vfs_glusterfs',
470 subsystem='vfs',
471 source='vfs_glusterfs.c',
472 deps='samba-util gfapi',
473 init_function='',
474 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_glusterfs'),
475 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_glusterfs'),
476 allow_undefined_symbols=False)