dbwrap: Remove dbwrap_ntdb
[Samba.git] / lib / util / wscript_build
blobb1cdfd59330270e70e0282a05e30bb47d63817e9
1 #!/usr/bin/env python
3 # Please add any new SAMBA_SUBSYSTEM/SAMBA_LIBRARY to the bottom of the file
4 # unless they are also required to build standalone ctdb.
6 bld.SAMBA_SUBSYSTEM('time-basic',
7 source='time_basic.c',
8 deps='replace',
9 local_include=False)
11 bld.SAMBA_SUBSYSTEM('tini',
12 source='tini.c',
13 deps='',
14 local_include=False)
16 bld.SAMBA_SUBSYSTEM('tiniparser',
17 source='tiniparser.c',
18 deps='tini',
19 local_include=False)
21 bld.SAMBA_SUBSYSTEM('strv',
22 source='strv.c',
23 deps='talloc',
24 local_include=False)
26 bld.SAMBA_SUBSYSTEM('close-low-fd',
27 source='close_low_fd.c',
28 deps='replace',
29 local_include=False)
31 bld.SAMBA_LIBRARY('samba-debug',
32 source='debug.c',
33 deps='replace time-basic close-low-fd talloc socket-blocking',
34 local_include=False,
35 private_library=True)
37 bld.SAMBA_LIBRARY('socket-blocking',
38 source='blocking.c',
39 local_include=False,
40 private_library=True)
42 bld.SAMBA_SUBSYSTEM('samba-util-core',
43 source='''xfile.c data_blob.c util_file.c time.c
44 signal.c util.c idtree.c fault.c
45 substitute.c''',
46 deps='''time-basic samba-debug socket-blocking talloc
47 tevent execinfo pthread''',
48 local_include=False)
50 if not bld.env.SAMBA_UTIL_CORE_ONLY:
52 bld.env.public_headers_skip.append('charset_compat.h')
54 bld.SAMBA_LIBRARY('samba-util',
55 source='''talloc_stack.c smb_threads.c
56 rbtree.c rfc1738.c become_daemon.c system.c select.c getpass.c
57 genrand.c fsusage.c
58 params.c util_id.c util_net.c
59 util_strlist.c util_paths.c idtree_random.c base64.c
60 util_str.c util_str_common.c ms_fnmatch.c
61 server_id.c dprintf.c parmlist.c bitmap.c pidfile.c
62 tevent_debug.c util_process.c memcache.c''',
63 deps='samba-util-core DYNCONFIG close-low-fd tini tiniparser',
65 public_deps='talloc tevent execinfo pthread LIBCRYPTO charset util_setid systemd-daemon',
66 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 idtree.h idtree_random.h blocking.h signal.h substitute.h fault.h',
67 header_path= [ ('dlinklist.h samba_util.h', '.'), ('*', 'util') ],
68 local_include=False,
69 vnum='0.0.1',
70 pc_files='samba-util.pc'
73 bld.SAMBA_LIBRARY('samba-modules',
74 source='modules.c',
75 deps='errors samba-util',
76 local_include=False,
77 private_library=True)
79 bld.SAMBA_LIBRARY('asn1util',
80 source='asn1.c',
81 deps='talloc samba-util',
82 private_library=True,
83 local_include=False)
86 bld.SAMBA_SUBSYSTEM('UNIX_PRIVS',
87 source='unix_privs.c',
88 autoproto='unix_privs.h',
89 deps='replace talloc',
90 local_include=False,
94 bld.SAMBA_LIBRARY('util_tdb',
95 source='util_tdb.c',
96 local_include=False,
97 public_deps='tdb talloc',
98 private_library=True
101 bld.SAMBA_LIBRARY('talloc_report',
102 source='talloc_report.c',
103 local_include=False,
104 public_deps='talloc',
105 private_library=True
108 if not bld.env.disable_ntdb:
109 bld.SAMBA_LIBRARY('util_ntdb',
110 source='util_ntdb.c',
111 local_include=False,
112 public_deps='ntdb talloc samba-util samba-hostconfig',
113 private_library=True
116 bld.SAMBA_LIBRARY('tevent-util',
117 source='tevent_unix.c tevent_ntstatus.c tevent_werror.c',
118 local_include=False,
119 public_deps='tevent errors',
120 public_headers='tevent_ntstatus.h tevent_unix.h tevent_werror.h',
121 header_path=[ ('*', 'util') ],
122 pc_files=[],
123 vnum='0.0.1'
126 bld.SAMBA_LIBRARY('util_setid',
127 source='setid.c',
128 local_include=False,
129 private_library=True
132 bld.SAMBA_SUBSYSTEM('util_ldb',
133 source='util_ldb.c',
134 local_include=False,
135 public_deps='ldb',
136 public_headers='util_ldb.h'
140 bld.SAMBA_SUBSYSTEM('UTIL_RUNCMD',
141 source='util_runcmd.c',
142 local_include=False,
143 public_deps='tevent'
146 bld.SAMBA_SUBSYSTEM('UTIL_PW',
147 source='util_pw.c',
148 local_include=False,
149 public_deps='talloc'
152 bld.SAMBA_LIBRARY('server_id_db',
153 source='server_id_db.c',
154 deps='talloc tdb strv util_tdb tdb-wrap samba-util',
155 local_include=False,
156 private_library=True)
158 bld.SAMBA_LIBRARY('iov_buf',
159 source='iov_buf.c',
160 local_include=False,
161 private_library=True)