e1030c88e9c88579f96ae40e5af43e2ae37c8058
[kai/samba.git] / lib / util / wscript_build
1 #!/usr/bin/env python
2
3 bld.SAMBA_LIBRARY('LIBSAMBA-UTIL',
4         source='xfile.c debug.c fault.c signal.c system.c time.c genrand.c dprintf.c util_str.c rfc1738.c substitute.c util_strlist.c util_file.c data_blob.c util.c blocking.c util_net.c fsusage.c ms_fnmatch.c mutex.c idtree.c become_daemon.c rbtree.c talloc_stack.c smb_threads.c params.c parmlist.c util_id.c select.c',
5         public_deps='talloc LIBCRYPTO CHARSET execinfo UID_WRAPPER',
6         public_headers='attr.h byteorder.h data_blob.h debug.h memory.h mutex.h safe_string.h time.h talloc_stack.h xfile.h dlinklist.h util.h',
7         header_path= [ ('dlinklist.h util.h', '.'), ('*', 'util') ],
8         local_include=False,
9         vnum='0.0.1',
10         pc_files='samba-util.pc'
11         )
12
13
14 bld.SAMBA_SUBSYSTEM('ASN1_UTIL',
15                     source='asn1.c',
16                     deps='talloc',
17                     local_include=False)
18
19
20 bld.SAMBA_SUBSYSTEM('UNIX_PRIVS',
21         source='unix_privs.c',
22         autoproto='unix_privs.h',
23         deps='UID_WRAPPER',
24         local_include=False,
25         )
26
27
28 bld.SAMBA_LIBRARY('WRAP_XATTR',
29                   source='wrap_xattr.c',
30                   public_deps='attr',
31                   deps='talloc',
32                   local_include=False,
33                   private_library=True
34                   )
35
36
37 bld.SAMBA_SUBSYSTEM('UTIL_TDB',
38         source='util_tdb.c',
39         local_include=False,
40         public_deps='tdb talloc'
41         )
42
43 bld.SAMBA_SUBSYSTEM('UTIL_TEVENT',
44         source='tevent_unix.c tevent_ntstatus.c tevent_werror.c',
45         local_include=False,
46         public_deps='tevent',
47         public_headers='tevent_ntstatus.h tevent_unix.h tevent_werror.h',
48         header_path=[ ('*', 'util') ],
49         )
50
51
52 bld.SAMBA_SUBSYSTEM('UTIL_LDB',
53         source='util_ldb.c',
54         local_include=False,
55         public_deps='ldb',
56         public_headers='util_ldb.h'
57         )
58
59
60 bld.SAMBA_SUBSYSTEM('UTIL_RUNCMD',
61         source='util_runcmd.c',
62         local_include=False,
63         public_deps='tevent'
64         )
65