lib/util Split samba-modules library into public and private parts
[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-module',
21                   source='samba_module.c',
22                   deps='errors samba-util samba-internal-module',
23                   local_include=False,
24                   public_headers='samba_module.h',
25                   vnum='0.0.1',
26                   pc_files='samba-module.pc')
27
28 bld.SAMBA_LIBRARY('samba-internal-module',
29                   source='internal_module.c',
30                   deps='errors samba-util',
31                   local_include=False,
32                   private_library=True)
33
34 bld.SAMBA_LIBRARY('asn1util',
35                   source='asn1.c',
36                   deps='talloc samba-util',
37                   private_library=True,
38                   local_include=False)
39
40
41 bld.SAMBA_SUBSYSTEM('UNIX_PRIVS',
42         source='unix_privs.c',
43         autoproto='unix_privs.h',
44         deps='replace talloc',
45         local_include=False,
46         )
47
48
49 bld.SAMBA_LIBRARY('wrap_xattr',
50         source='wrap_xattr.c',
51         public_deps='attr',
52         deps='talloc',
53         local_include=False,
54         private_library=True
55         )
56
57
58 bld.SAMBA_LIBRARY('UTIL_TDB',
59         source='util_tdb.c',
60         local_include=False,
61         public_deps='tdb_compat talloc',
62                   private_library=True
63         )
64
65 bld.SAMBA_LIBRARY('tevent-util',
66         source='tevent_unix.c tevent_ntstatus.c tevent_werror.c',
67         local_include=False,
68         public_deps='tevent',
69         public_headers='tevent_ntstatus.h tevent_unix.h tevent_werror.h',
70         header_path=[ ('*', 'util') ],
71         pc_files=[],
72         vnum='0.0.1'
73         )
74
75
76 bld.SAMBA_SUBSYSTEM('util_ldb',
77                     source='util_ldb.c',
78                     local_include=False,
79                     public_deps='ldb',
80                     public_headers='util_ldb.h'
81                     )
82
83
84 bld.SAMBA_SUBSYSTEM('UTIL_RUNCMD',
85         source='util_runcmd.c',
86         local_include=False,
87         public_deps='tevent'
88         )
89
90 bld.SAMBA_SUBSYSTEM('UTIL_PW',
91         source='util_pw.c',
92         local_include=False,
93         public_deps='talloc'
94         )
95
96
97 bld.SAMBA_LIBRARY('tdb-wrap',
98                   source='tdb_wrap.c',
99                   deps='tdb_compat talloc samba-util samba-hostconfig',
100                   private_library=True,
101                   local_include=False
102                  )