lib: Make DEBUG a subsystem of its own
[obnox/samba/samba-obnox.git] / lib / util / wscript_build
1 #!/usr/bin/env python
2
3 bld.SAMBA_SUBSYSTEM('time-basic',
4                     source='time_basic.c',
5                     deps='replace',
6                     local_include=False)
7
8 bld.SAMBA_SUBSYSTEM('close-low-fd',
9                     source='close_low_fd.c',
10                     deps='replace',
11                     local_include=False)
12
13 bld.SAMBA_SUBSYSTEM('samba-debug',
14                     source='debug.c',
15                     deps='replace time-basic close-low-fd talloc',
16                     local_include=False)
17
18 bld.SAMBA_LIBRARY('samba-util',
19                   source='''talloc_stack.c smb_threads.c xfile.c data_blob.c
20                     util_file.c time.c rbtree.c rfc1738.c select.c getpass.c
21                     genrand.c fsusage.c blocking.c become_daemon.c
22                     signal.c system.c params.c util.c util_id.c util_net.c
23                     util_strlist.c util_paths.c idtree.c fault.c base64.c
24                     util_str.c util_str_common.c substitute.c ms_fnmatch.c
25                     server_id.c dprintf.c parmlist.c bitmap.c pidfile.c
26                     tevent_debug.c util_process.c memcache.c''',
27                   deps='DYNCONFIG time-basic close-low-fd samba-debug',
28                   public_deps='talloc tevent execinfo pthread LIBCRYPTO charset util_setid systemd-daemon',
29                   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',
30                   header_path= [ ('dlinklist.h samba_util.h', '.'), ('*', 'util') ],
31                   local_include=False,
32                   vnum='0.0.1',
33                   pc_files='samba-util.pc'
34                   )
35
36 bld.SAMBA_LIBRARY('samba-modules',
37                   source='modules.c',
38                   deps='errors samba-util',
39                   local_include=False,
40                   private_library=True)
41
42 bld.SAMBA_LIBRARY('asn1util',
43                   source='asn1.c',
44                   deps='talloc samba-util',
45                   private_library=True,
46                   local_include=False)
47
48
49 bld.SAMBA_SUBSYSTEM('UNIX_PRIVS',
50         source='unix_privs.c',
51         autoproto='unix_privs.h',
52         deps='replace talloc',
53         local_include=False,
54         )
55
56
57 bld.SAMBA_LIBRARY('util_tdb',
58         source='util_tdb.c',
59         local_include=False,
60         public_deps='tdb talloc samba-util',
61         private_library=True
62         )
63
64 if not bld.env.disable_ntdb:
65     bld.SAMBA_LIBRARY('util_ntdb',
66                 source='util_ntdb.c',
67                 local_include=False,
68                 public_deps='ntdb talloc samba-util samba-hostconfig',
69                 private_library=True
70                 )
71
72 bld.SAMBA_LIBRARY('tevent-util',
73         source='tevent_unix.c tevent_ntstatus.c tevent_werror.c',
74         local_include=False,
75         public_deps='tevent errors',
76         public_headers='tevent_ntstatus.h tevent_unix.h tevent_werror.h',
77         header_path=[ ('*', 'util') ],
78         pc_files=[],
79         vnum='0.0.1'
80         )
81
82 bld.SAMBA_LIBRARY('util_setid',
83         source='setid.c',
84         local_include=False,
85         private_library=True
86         )
87
88 bld.SAMBA_SUBSYSTEM('util_ldb',
89                     source='util_ldb.c',
90                     local_include=False,
91                     public_deps='ldb',
92                     public_headers='util_ldb.h'
93                     )
94
95
96 bld.SAMBA_SUBSYSTEM('UTIL_RUNCMD',
97         source='util_runcmd.c',
98         local_include=False,
99         public_deps='tevent'
100         )
101
102 bld.SAMBA_SUBSYSTEM('UTIL_PW',
103         source='util_pw.c',
104         local_include=False,
105         public_deps='talloc'
106         )
107