smbd: initialize delete_on_close in smbd_smb2_setinfo_lease_break_fsp_check()
[Samba.git] / source3 / modules / wscript_build
blobce16d8c876c93f1b6502590e99f71659929d48b1
1 #!/usr/bin/env python
3 bld.SAMBA3_SUBSYSTEM('NFS4_ACLS',
4 source='nfs4_acls.c',
5 deps='samba-util tdb')
7 bld.SAMBA3_BINARY('test_nfs4_acls',
8 source='test_nfs4_acls.c',
9 deps='smbd_base cmocka',
10 for_selftest=True)
12 bld.SAMBA3_SUBSYSTEM('vfs_acl_common',
13 source='vfs_acl_common.c',
14 deps='gnutls')
16 bld.SAMBA3_SUBSYSTEM('POSIXACL_XATTR',
17 source='posixacl_xattr.c',
18 enabled=(bld.SAMBA3_IS_ENABLED_MODULE('vfs_ceph') or bld.SAMBA3_IS_ENABLED_MODULE('vfs_glusterfs')),
19 deps='acl attr')
21 bld.SAMBA3_SUBSYSTEM('non_posix_acls',
22 source='non_posix_acls.c',
23 deps='samba-util vfs')
25 bld.SAMBA3_SUBSYSTEM('VFS_VIRUSFILTER_UTILS',
26 source='vfs_virusfilter_utils.c',
27 deps='strv',
28 enabled=(bld.SAMBA3_IS_ENABLED_MODULE('vfs_virusfilter')))
30 bld.SAMBA3_SUBSYSTEM('VFS_AIXACL_UTIL',
31 source='vfs_aixacl_util.c',
32 enabled=(bld.SAMBA3_IS_ENABLED_MODULE('vfs_aixacl') or bld.SAMBA3_IS_ENABLED_MODULE('vfs_aixacl2')))
34 bld.SAMBA3_SUBSYSTEM('vfs',
35 source='',
36 deps='smbd_base')
38 bld.SAMBA3_SUBSYSTEM('OFFLOAD_TOKEN',
39 source='offload_token.c',
40 deps='samba-util')
42 bld.SAMBA3_SUBSYSTEM('UTIL_REPARSE',
43 source='util_reparse.c',
44 deps='samba-util')
46 bld.SAMBA3_SUBSYSTEM('HASH_INODE',
47 source='hash_inode.c',
48 deps='gnutls')
51 # This is always be static, see
52 # source3/wscript: required_static_modules
54 bld.SAMBA3_MODULE('vfs_default',
55 subsystem='vfs',
56 source='vfs_default.c',
57 deps='samba-util NDR_DFSBLOBS OFFLOAD_TOKEN UTIL_REPARSE',
58 init_function='',
59 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_default'),
60 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_default'))
63 # This is always be static, see
64 # source3/wscript: required_static_modules
66 bld.SAMBA3_MODULE('vfs_not_implemented',
67 subsystem='vfs',
68 source='vfs_not_implemented.c',
69 deps='samba-util',
70 init_function='',
71 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_not_implemented'),
72 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_not_implemented'))
74 bld.SAMBA3_MODULE('vfs_audit',
75 subsystem='vfs',
76 source='vfs_audit.c',
77 deps='samba-util',
78 init_function='',
79 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_audit'),
80 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_audit'))
82 bld.SAMBA3_MODULE('vfs_extd_audit',
83 subsystem='vfs',
84 source='vfs_extd_audit.c',
85 deps='samba-util',
86 init_function='',
87 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_extd_audit'),
88 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_extd_audit'))
90 bld.SAMBA3_MODULE('vfs_full_audit',
91 subsystem='vfs',
92 source='vfs_full_audit.c',
93 deps='samba-util',
94 init_function='',
95 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_full_audit'),
96 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_full_audit'))
98 bld.SAMBA3_BINARY('test_vfs_full_audit',
99 source='test_vfs_full_audit.c',
100 deps='smbd_base cmocka',
101 for_selftest=True)
103 bld.SAMBA3_MODULE('vfs_fake_perms',
104 subsystem='vfs',
105 source='vfs_fake_perms.c',
106 deps='samba-util',
107 init_function='',
108 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_fake_perms'),
109 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_fake_perms'))
111 bld.SAMBA3_MODULE('vfs_fake_acls',
112 subsystem='vfs',
113 source='vfs_fake_acls.c',
114 deps='samba-util',
115 init_function='',
116 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_fake_acls'),
117 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_fake_acls'),
118 install=False)
120 bld.SAMBA3_MODULE('vfs_recycle',
121 subsystem='vfs',
122 source='vfs_recycle.c',
123 deps='samba-util',
124 init_function='',
125 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_recycle'),
126 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_recycle'))
128 bld.SAMBA3_MODULE('vfs_fruit',
129 subsystem='vfs',
130 source='vfs_fruit.c',
131 deps='samba-util OFFLOAD_TOKEN STRING_REPLACE HASH_INODE ADOUBLE',
132 init_function='',
133 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_fruit'),
134 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_fruit'))
136 bld.SAMBA3_MODULE('vfs_default_quota',
137 subsystem='vfs',
138 source='vfs_default_quota.c',
139 deps='samba-util',
140 init_function='',
141 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_default_quota'),
142 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_default_quota'))
144 module_cflags=''
145 if bld.CONFIG_SET('HAVE_WNO_STRICT_OVERFLOW'):
146 module_cflags += ' -Wno-strict-overflow'
148 if bld.CONFIG_SET('HAVE_WNO_UNUSED_BUT_SET_VARIABLE'):
149 module_cflags += ' -Wno-unused-but-set-variable'
151 bld.SAMBA3_MODULE('vfs_readonly',
152 subsystem='vfs',
153 source='vfs_readonly.c getdate.c',
154 deps='samba-util',
155 cflags_end=module_cflags,
156 init_function='',
157 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_readonly'),
158 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_readonly'))
160 bld.SAMBA3_MODULE('vfs_cap',
161 subsystem='vfs',
162 source='vfs_cap.c',
163 deps='samba-util',
164 init_function='',
165 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_cap'),
166 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_cap'))
168 bld.SAMBA3_MODULE('vfs_expand_msdfs',
169 subsystem='vfs',
170 source='vfs_expand_msdfs.c',
171 deps='samba-util',
172 init_function='',
173 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_expand_msdfs'),
174 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_expand_msdfs'))
176 bld.SAMBA3_MODULE('vfs_shadow_copy',
177 subsystem='vfs',
178 source='vfs_shadow_copy.c',
179 deps='samba-util',
180 init_function='',
181 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_shadow_copy'),
182 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_shadow_copy'))
184 bld.SAMBA3_MODULE('vfs_shadow_copy2',
185 subsystem='vfs',
186 source='vfs_shadow_copy2.c',
187 allow_warnings=True,
188 deps='samba-util tdb',
189 init_function='',
190 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_shadow_copy2'),
191 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_shadow_copy2'))
193 bld.SAMBA3_MODULE('vfs_afsacl',
194 subsystem='vfs',
195 source='vfs_afsacl.c',
196 deps='samba-util',
197 init_function='',
198 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_afsacl'),
199 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_afsacl'))
201 bld.SAMBA3_MODULE('vfs_xattr_tdb',
202 subsystem='vfs',
203 source='vfs_xattr_tdb.c',
204 deps='dbwrap xattr_tdb',
205 init_function='',
206 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_xattr_tdb'),
207 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_xattr_tdb'))
209 bld.SAMBA3_MODULE('vfs_posix_eadb',
210 subsystem='vfs',
211 source='vfs_posix_eadb.c',
212 deps='tdb-wrap posix_eadb',
213 init_function='',
214 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_posix_eadb') and bld.AD_DC_BUILD_IS_ENABLED(),
215 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_posix_eadb') and bld.AD_DC_BUILD_IS_ENABLED())
217 bld.SAMBA3_MODULE('vfs_posixacl',
218 subsystem='vfs',
219 source='vfs_posixacl.c',
220 deps='acl attr',
221 init_function='',
222 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_posixacl'),
223 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_posixacl'))
225 bld.SAMBA3_BINARY('test_vfs_posixacl',
226 source='test_vfs_posixacl.c',
227 deps='smbd_base cmocka',
228 for_selftest=True)
230 bld.SAMBA3_MODULE('vfs_aixacl',
231 subsystem='vfs',
232 source='vfs_aixacl.c',
233 deps='VFS_AIXACL_UTIL',
234 init_function='',
235 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_aixacl'),
236 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_aixacl'))
238 bld.SAMBA3_MODULE('vfs_aixacl2',
239 subsystem='vfs',
240 source='vfs_aixacl2.c',
241 deps='NFS4_ACLS VFS_AIXACL_UTIL',
242 init_function='',
243 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_aixacl2'),
244 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_aixacl2'))
246 bld.SAMBA3_MODULE('vfs_solarisacl',
247 subsystem='vfs',
248 source='vfs_solarisacl.c',
249 init_function='',
250 deps='sec',
251 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_solarisacl'),
252 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_solarisacl'))
254 bld.SAMBA3_MODULE('vfs_zfsacl',
255 subsystem='vfs',
256 source='vfs_zfsacl.c',
257 deps='NFS4_ACLS sunacl',
258 init_function='',
259 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_zfsacl'),
260 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_zfsacl'))
262 if bld.SAMBA3_IS_ENABLED_MODULE('vfs_nfs4acl_xattr'):
263 bld.SAMBA_GENERATOR('nfs41acl-h',
264 source='nfs41acl.x',
265 target='nfs41acl.h',
266 rule='rpcgen -h ${SRC} > ${TGT}')
268 if bld.CONFIG_SET("HAVE_RPC_XDR_H"):
269 xdr_buf_hack = r'sed -e "s@^\([ \t]*register int32_t \*buf\);@\\1 = buf;@"'
271 # By default rpcgen assumes that the input file, generated header and
272 # source file are located in the same directory, which is extracted from
273 # the provided path to the input file.
274 # However if the build directory is not under the source tree, ${SRC} will
275 # be a long relative path through a common parent directory, resulting
276 # in an invalid path used in #include for the header.
277 # In order to fix that, the input file is first copied to the output build
278 # directory and then rpcgen is called with the proper path.
279 bld.SAMBA_GENERATOR('nfs41acl-xdr-c',
280 source='nfs41acl.x',
281 target='nfs41acl_xdr.c',
282 rule='cp -f ${SRC} ${TGT[0].parent} && rpcgen -c ' \
283 '${TGT[0].path_from(tsk.get_cwd())[:-len(tsk.outputs[0].name)] + tsk.inputs[0].name} | ' + \
284 xdr_buf_hack + ' > ${TGT}')
286 bld.SAMBA_SUBSYSTEM('VFS_NFS4_XDR',
287 source='nfs41acl_xdr.c',
288 deps='NFS4_ACLS NDR_NFS4ACL tirpc')
289 else:
290 bld.SET_TARGET_TYPE('VFS_NFS4_XDR', 'EMPTY')
292 bld.SAMBA3_MODULE('vfs_nfs4acl_xattr',
293 subsystem='vfs',
294 source = '''
295 vfs_nfs4acl_xattr.c
296 nfs4acl_xattr_ndr.c
297 nfs4acl_xattr_xdr.c
298 nfs4acl_xattr_nfs.c
299 nfs4acl_xattr_util.c
300 ''',
301 deps='NFS4_ACLS sunacl NDR_NFS4ACL VFS_NFS4_XDR',
302 init_function='',
303 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_nfs4acl_xattr'))
305 bld.SAMBA3_MODULE('vfs_hpuxacl',
306 subsystem='vfs',
307 source='vfs_hpuxacl.c',
308 init_function='',
309 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_hpuxacl'),
310 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_hpuxacl'))
312 bld.SAMBA3_MODULE('vfs_catia',
313 subsystem='vfs',
314 source='vfs_catia.c',
315 deps='samba-util STRING_REPLACE',
316 init_function='',
317 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_catia'),
318 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_catia'))
320 bld.SAMBA3_MODULE('vfs_streams_xattr',
321 subsystem='vfs',
322 source='vfs_streams_xattr.c',
323 deps='samba-util HASH_INODE',
324 init_function='',
325 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_streams_xattr'),
326 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_streams_xattr'))
328 bld.SAMBA3_MODULE('vfs_streams_depot',
329 subsystem='vfs',
330 source='vfs_streams_depot.c',
331 deps='samba-util',
332 init_function='',
333 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_streams_depot'),
334 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_streams_depot'))
336 bld.SAMBA3_MODULE('vfs_cacheprime',
337 subsystem='vfs',
338 source='vfs_cacheprime.c',
339 deps='samba-util',
340 init_function='',
341 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_cacheprime'),
342 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_cacheprime'))
344 bld.SAMBA3_MODULE('vfs_prealloc',
345 subsystem='vfs',
346 source='vfs_prealloc.c',
347 deps='samba-util',
348 init_function='',
349 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_prealloc'),
350 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_prealloc'))
352 bld.SAMBA3_MODULE('vfs_commit',
353 subsystem='vfs',
354 source='vfs_commit.c',
355 deps='samba-util',
356 init_function='',
357 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_commit'),
358 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_commit'))
360 bld.SAMBA3_MODULE('vfs_gpfs',
361 subsystem='vfs',
362 source='vfs_gpfs.c',
363 deps='NFS4_ACLS non_posix_acls gpfswrap',
364 init_function='',
365 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_gpfs'),
366 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_gpfs'),
367 includes=bld.CONFIG_GET('CPPPATH_GPFS'))
369 bld.SAMBA3_BINARY('test_vfs_gpfs',
370 source='test_vfs_gpfs.c',
371 deps='NFS4_ACLS non_posix_acls gpfswrap cmocka',
372 for_selftest=True,
373 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_gpfs'),
374 includes=bld.CONFIG_GET('CPPPATH_GPFS'))
376 bld.SAMBA3_MODULE('vfs_readahead',
377 subsystem='vfs',
378 source='vfs_readahead.c',
379 deps='samba-util',
380 init_function='',
381 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_readahead'),
382 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_readahead'))
384 bld.SAMBA3_MODULE('vfs_tsmsm',
385 subsystem='vfs',
386 source='vfs_tsmsm.c',
387 deps='samba-util',
388 init_function='',
389 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_tsmsm'),
390 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_tsmsm'))
392 bld.SAMBA3_MODULE('vfs_fileid',
393 subsystem='vfs',
394 source='vfs_fileid.c',
395 deps='samba-util',
396 init_function='',
397 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_fileid'),
398 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_fileid'))
400 bld.SAMBA3_MODULE('vfs_aio_fork',
401 subsystem='vfs',
402 source='vfs_aio_fork.c',
403 deps='samba-util tevent',
404 init_function='',
405 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_aio_fork'),
406 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_aio_fork'))
408 bld.SAMBA3_MODULE('vfs_aio_pthread',
409 subsystem='vfs',
410 source='vfs_aio_pthread.c',
411 deps='samba-util tevent',
412 init_function='',
413 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_aio_pthread'),
414 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_aio_pthread'))
416 bld.SAMBA3_MODULE('vfs_io_uring',
417 subsystem='vfs',
418 source='vfs_io_uring.c',
419 deps='samba-util tevent uring',
420 init_function='',
421 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_io_uring'),
422 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_io_uring'))
424 bld.SAMBA3_MODULE('vfs_preopen',
425 subsystem='vfs',
426 source='vfs_preopen.c',
427 deps='samba-util',
428 init_function='',
429 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_preopen'),
430 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_preopen'))
432 bld.SAMBA3_MODULE('vfs_syncops',
433 subsystem='vfs',
434 source='vfs_syncops.c',
435 deps='samba-util',
436 init_function='',
437 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_syncops'),
438 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_syncops'))
440 bld.SAMBA3_MODULE('vfs_acl_xattr',
441 subsystem='vfs',
442 source='vfs_acl_xattr.c',
443 deps='samba-util vfs_acl_common',
444 init_function='',
445 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_acl_xattr'),
446 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_acl_xattr'))
448 bld.SAMBA3_MODULE('vfs_acl_tdb',
449 subsystem='vfs',
450 source='vfs_acl_tdb.c',
451 deps='samba-util vfs_acl_common',
452 init_function='',
453 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_acl_tdb'),
454 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_acl_tdb'))
456 bld.SAMBA3_MODULE('vfs_dirsort',
457 subsystem='vfs',
458 source='vfs_dirsort.c',
459 deps='samba-util',
460 init_function='',
461 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_dirsort'),
462 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_dirsort'))
464 bld.SAMBA3_MODULE('vfs_crossrename',
465 subsystem='vfs',
466 source='vfs_crossrename.c',
467 deps='samba-util',
468 init_function='',
469 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_crossrename'),
470 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_crossrename'))
472 bld.SAMBA3_MODULE('vfs_linux_xfs_sgid',
473 subsystem='vfs',
474 source='vfs_linux_xfs_sgid.c',
475 deps='samba-util',
476 init_function='',
477 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_linux_xfs_sgid'),
478 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_linux_xfs_sgid'))
480 bld.SAMBA3_MODULE('vfs_time_audit',
481 subsystem='vfs',
482 source='vfs_time_audit.c',
483 deps='samba-util',
484 init_function='',
485 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_time_audit'),
486 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_time_audit'))
488 bld.SAMBA3_MODULE('vfs_media_harmony',
489 subsystem='vfs',
490 source='vfs_media_harmony.c',
491 deps='samba-util',
492 init_function='',
493 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_media_harmony'),
494 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_media_harmony'))
496 bld.SAMBA3_MODULE('vfs_unityed_media',
497 subsystem='vfs',
498 source='vfs_unityed_media.c',
499 deps='samba-util',
500 init_function='',
501 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_unityed_media'),
502 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_unityed_media'))
504 bld.SAMBA3_MODULE('vfs_dfs_samba4',
505 subsystem='vfs',
506 source='vfs_dfs_samba4.c',
507 deps='samba-util dfs_server_ad samdb tevent',
508 init_function='',
509 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_dfs_samba4') and bld.AD_DC_BUILD_IS_ENABLED(),
510 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_dfs_samba4') and bld.AD_DC_BUILD_IS_ENABLED())
512 bld.SAMBA3_MODULE('vfs_btrfs',
513 subsystem='vfs',
514 source='vfs_btrfs.c',
515 deps='samba-util OFFLOAD_TOKEN',
516 init_function='',
517 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_btrfs'),
518 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_btrfs'))
520 bld.SAMBA3_MODULE('vfs_shell_snap',
521 subsystem='vfs',
522 source='vfs_shell_snap.c',
523 deps='samba-util',
524 init_function='',
525 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_shell_snap'),
526 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_shell_snap'))
528 bld.SAMBA3_SUBSYSTEM('perfcount',
529 source='',
530 deps='smbd_base')
532 bld.SAMBA3_MODULE('vfs_ceph',
533 subsystem='vfs',
534 source='vfs_ceph.c',
535 deps='POSIXACL_XATTR samba-util cephfs',
536 init_function='',
537 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_ceph'),
538 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_ceph'),
539 cflags=bld.CONFIG_GET('CFLAGS_CEPHFS'),
540 includes=bld.CONFIG_GET('CPPPATH_CEPHFS'))
542 bld.SAMBA3_MODULE('vfs_ceph_new',
543 subsystem='vfs',
544 source='vfs_ceph_new.c',
545 deps='POSIXACL_XATTR samba-util',
546 init_function='',
547 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_ceph_new'),
548 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_ceph_new'),
549 cflags=bld.CONFIG_GET('CFLAGS_CEPHFS'),
550 includes=bld.CONFIG_GET('CPPPATH_CEPHFS'))
552 bld.SAMBA3_MODULE('vfs_ceph_snapshots',
553 subsystem='vfs',
554 source='vfs_ceph_snapshots.c',
555 deps='samba-util',
556 init_function='',
557 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_ceph_snapshots'),
558 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_ceph_snapshots'))
560 bld.SAMBA3_MODULE('vfs_glusterfs',
561 subsystem='vfs',
562 source='vfs_glusterfs.c',
563 deps='POSIXACL_XATTR samba-util gfapi',
564 init_function='',
565 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_glusterfs'),
566 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_glusterfs'))
568 bld.SAMBA3_MODULE('vfs_glusterfs_fuse',
569 subsystem='vfs',
570 source='vfs_glusterfs_fuse.c',
571 deps='',
572 init_function='',
573 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_glusterfs_fuse'),
574 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_glusterfs_fuse'))
576 bld.SAMBA3_MODULE('vfs_worm',
577 subsystem='vfs',
578 source='vfs_worm.c',
579 deps='samba-util',
580 init_function='',
581 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_worm'),
582 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_worm'))
584 bld.SAMBA3_MODULE('vfs_snapper',
585 subsystem='vfs',
586 source='vfs_snapper.c',
587 deps='samba-util dbus-1',
588 init_function='',
589 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_snapper'),
590 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_snapper'))
592 bld.SAMBA3_MODULE('vfs_virusfilter',
593 subsystem='vfs',
594 source='''
595 vfs_virusfilter.c
596 vfs_virusfilter_sophos.c
597 vfs_virusfilter_fsav.c
598 vfs_virusfilter_clamav.c
599 vfs_virusfilter_dummy.c
600 ''',
601 deps='samba-util VFS_VIRUSFILTER_UTILS',
602 init_function='',
603 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_virusfilter'),
604 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_virusfilter'))
606 bld.SAMBA3_MODULE('vfs_vxfs',
607 subsystem='vfs',
608 source='lib_vxfs.c vfs_vxfs.c',
609 init_function='',
610 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_vxfs'),
611 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_vxfs'))
613 bld.SAMBA3_MODULE('vfs_offline',
614 subsystem='vfs',
615 source='vfs_offline.c',
616 init_function='',
617 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_offline'),
618 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_offline'))
620 bld.SAMBA3_MODULE('vfs_fake_dfq',
621 subsystem='vfs',
622 source='vfs_fake_dfq.c',
623 init_function='',
624 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_fake_dfq'),
625 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_fake_dfq'),
626 install=False)
628 bld.SAMBA3_MODULE('vfs_error_inject',
629 subsystem='vfs',
630 source='vfs_error_inject.c',
631 init_function='',
632 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_error_inject'),
633 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_error_inject'),
634 install=False)
636 bld.SAMBA3_MODULE('vfs_delay_inject',
637 subsystem='vfs',
638 source='vfs_delay_inject.c',
639 init_function='',
640 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_delay_inject'),
641 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_delay_inject'),
642 install=False)
644 bld.SAMBA3_MODULE('vfs_widelinks',
645 subsystem='vfs',
646 source='vfs_widelinks.c',
647 init_function='',
648 internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_widelinks'),
649 enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_widelinks'))