lib/util: Add back control of mmap and hash size in tdb for top level build
[samba.git] / lib / util / wscript_build
1 #!/usr/bin/env python
2
3 bld.SAMBA_LIBRARY('samba-util',
4                   source='''talloc_stack.c smb_threads.c xfile.c data_blob.c
5                     util_file.c time.c rbtree.c rfc1738.c select.c
6                     genrand.c fsusage.c blocking.c become_daemon.c
7                     signal.c system.c params.c util.c util_id.c util_net.c
8                     util_strlist.c util_paths.c idtree.c debug.c fault.c base64.c
9                     util_str.c util_str_common.c substitute.c ms_fnmatch.c
10                     server_id.c dprintf.c parmlist.c bitmap.c''',
11                   deps='DYNCONFIG',
12                   public_deps='talloc execinfo uid_wrapper pthread LIBCRYPTO charset',
13                   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',
14                   header_path= [ ('dlinklist.h samba_util.h', '.'), ('*', 'util') ],
15                   local_include=False,
16                   vnum='0.0.1',
17                   pc_files='samba-util.pc'
18                   )
19
20 bld.SAMBA_LIBRARY('samba-modules',
21                   source='modules.c',
22                   deps='errors samba-util',
23                   local_include=False,
24                   private_library=True)
25
26 bld.SAMBA_LIBRARY('asn1util',
27                   source='asn1.c',
28                   deps='talloc samba-util',
29                   private_library=True,
30                   local_include=False)
31
32
33 bld.SAMBA_SUBSYSTEM('UNIX_PRIVS',
34         source='unix_privs.c',
35         autoproto='unix_privs.h',
36         deps='replace talloc',
37         local_include=False,
38         )
39
40
41 bld.SAMBA_LIBRARY('wrap_xattr',
42         source='wrap_xattr.c',
43         public_deps='attr',
44         deps='talloc',
45         local_include=False,
46         private_library=True
47         )
48
49
50 bld.SAMBA_LIBRARY('UTIL_TDB',
51         source='util_tdb.c',
52         local_include=False,
53         public_deps='tdb_compat talloc',
54                   private_library=True
55         )
56
57 bld.SAMBA_LIBRARY('tevent-util',
58         source='tevent_unix.c tevent_ntstatus.c tevent_werror.c',
59         local_include=False,
60         public_deps='tevent',
61         public_headers='tevent_ntstatus.h tevent_unix.h tevent_werror.h',
62         header_path=[ ('*', 'util') ],
63         pc_files=[],
64         vnum='0.0.1'
65         )
66
67
68 bld.SAMBA_SUBSYSTEM('util_ldb',
69                     source='util_ldb.c',
70                     local_include=False,
71                     public_deps='ldb',
72                     public_headers='util_ldb.h'
73                     )
74
75
76 bld.SAMBA_SUBSYSTEM('UTIL_RUNCMD',
77         source='util_runcmd.c',
78         local_include=False,
79         public_deps='tevent'
80         )
81
82 bld.SAMBA_SUBSYSTEM('UTIL_PW',
83         source='util_pw.c',
84         local_include=False,
85         public_deps='talloc'
86         )
87
88
89 bld.SAMBA_LIBRARY('tdb-wrap',
90                   source='tdb_wrap.c',
91                   deps='tdb_compat talloc samba-util samba-hostconfig',
92                   private_library=True,
93                   local_include=False
94                  )