eac2dfc68e486f0ff4e23926ee1831a60867667a
[samba.git] / source4 / ntvfs / posix / wscript_build
1 #!/usr/bin/env python
2
3 if bld.CONFIG_SET('WITH_NTVFS_FILESERVER'):
4     bld.SAMBA_SUBSYSTEM('pvfs_acl',
5                         source='pvfs_acl.c',
6                         autoproto='vfs_acl_proto.h',
7                         deps='events samba-modules',
8     )
9
10
11     bld.SAMBA_MODULE('pvfs_acl_xattr',
12                      source='pvfs_acl_xattr.c',
13                      subsystem='pvfs_acl',
14                      init_function='pvfs_acl_xattr_init',
15                     deps='NDR_XATTR events'
16     )
17
18
19     bld.SAMBA_MODULE('pvfs_acl_nfs4',
20                      source='pvfs_acl_nfs4.c',
21                      subsystem='pvfs_acl',
22                      init_function='pvfs_acl_nfs4_init',
23                     deps='NDR_NFS4ACL samdb events'
24     )
25
26
27     bld.SAMBA_SUBSYSTEM('pvfs_aio',
28                         source='pvfs_aio.c',
29                         deps='tevent',
30                     enabled=False
31     )
32
33
34     bld.SAMBA_MODULE('ntvfs_posix',
35                      source='vfs_posix.c pvfs_util.c pvfs_search.c pvfs_dirlist.c pvfs_fileinfo.c pvfs_unlink.c pvfs_mkdir.c pvfs_open.c pvfs_read.c pvfs_flush.c pvfs_write.c pvfs_fsinfo.c pvfs_qfileinfo.c pvfs_setfileinfo.c pvfs_rename.c pvfs_resolve.c pvfs_shortname.c pvfs_lock.c pvfs_oplock.c pvfs_wait.c pvfs_seek.c pvfs_ioctl.c pvfs_xattr.c pvfs_streams.c pvfs_notify.c pvfs_sys.c xattr_system.c',
36                      autoproto='vfs_posix_proto.h',
37                      subsystem='ntvfs',
38                     init_function='ntvfs_posix_init',
39                      deps='NDR_XATTR attr ntvfs_common MESSAGING LIBWBCLIENT_OLD pvfs_acl pvfs_aio posix_eadb',
40                      internal_module=True
41     )
42
43
44 bld.SAMBA_LIBRARY('posix_eadb',
45                   source='posix_eadb.c',
46                   deps='tdb tdb-wrap samba-util',
47                   autoproto='posix_eadb_proto.h',
48                   private_library=True)
49
50 for env in bld.gen_python_environments():
51     pyparam_util = bld.pyembed_libname('pyparam_util')
52
53     bld.SAMBA_PYTHON('python_xattr_native',
54         source='python/pyxattr_native.c',
55         deps='ndr ldb samdb samba-credentials %s attr' % pyparam_util,
56         realname='samba/xattr_native.so'
57         )
58
59     bld.SAMBA_PYTHON('python_posix_eadb',
60         source='python/pyposix_eadb.c',
61         deps='%s posix_eadb tdb' % pyparam_util,
62         realname='samba/posix_eadb.so'
63         )
64
65     bld.SAMBA_PYTHON('python_xattr_tdb',
66         source='python/pyxattr_tdb.c',
67         deps='%s xattr_tdb' % pyparam_util,
68         realname='samba/xattr_tdb.so'
69         )