source: vendor/current/lib/util/wscript_build

Last change on this file was 989, checked in by Silvan Scherrer, 9 years ago

Samba Server: update vendor to version 4.4.7

File size: 7.1 KB
Line 
1#!/usr/bin/env python
2
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.
5
6bld.SAMBA_LIBRARY('time-basic',
7 source='time_basic.c',
8 deps='replace',
9 private_library=True,
10 local_include=False)
11
12bld.SAMBA_SUBSYSTEM('tini',
13 source='tini.c',
14 deps='',
15 local_include=False)
16
17bld.SAMBA_SUBSYSTEM('tiniparser',
18 source='tiniparser.c',
19 deps='tini',
20 local_include=False)
21
22bld.SAMBA_SUBSYSTEM('strv',
23 source='strv.c',
24 deps='talloc',
25 local_include=False)
26
27bld.SAMBA_SUBSYSTEM('close-low-fd',
28 source='close_low_fd.c',
29 deps='replace',
30 local_include=False)
31
32samba_debug_add_deps = ''
33samba_debug_add_inc = ''
34
35if bld.CONFIG_SET('HAVE_GPFS'):
36 bld.SAMBA_SUBSYSTEM('gpfswrap',
37 source='gpfswrap.c',
38 deps='replace',
39 local_include=False,
40 includes=bld.CONFIG_GET('CPPPATH_GPFS'))
41 samba_debug_add_deps += ' gpfswrap'
42 samba_debug_add_inc += bld.CONFIG_GET('CPPPATH_GPFS')
43
44bld.SAMBA_LIBRARY('samba-debug',
45 source='debug.c',
46 deps='replace time-basic close-low-fd talloc socket-blocking' + samba_debug_add_deps,
47 public_deps='systemd systemd-journal lttng-ust',
48 local_include=False,
49 includes=samba_debug_add_inc,
50 private_library=True)
51
52bld.SAMBA_LIBRARY('socket-blocking',
53 source='blocking.c',
54 local_include=False,
55 private_library=True)
56
57bld.SAMBA_LIBRARY('talloc_report',
58 source='talloc_report.c',
59 local_include=False,
60 public_deps='talloc',
61 private_library=True
62 )
63
64bld.SAMBA_SUBSYSTEM('samba-util-core',
65 source='''xfile.c data_blob.c util_file.c time.c
66 signal.c util.c idtree.c fault.c
67 substitute.c util_process.c''',
68 deps='''time-basic samba-debug socket-blocking talloc
69 tevent execinfo pthread''',
70 local_include=False)
71
72if bld.env.SAMBA_UTIL_CORE_ONLY:
73
74 bld.SAMBA_LIBRARY('tevent-util',
75 source='tevent_unix.c',
76 local_include=False,
77 deps='tevent',
78 private_library=True)
79
80else:
81
82 bld.env.public_headers_skip.append('charset_compat.h')
83
84 bld.SAMBA_LIBRARY('genrand',
85 source='genrand.c',
86 deps='replace socket-blocking sys_rw',
87 local_include=False,
88 private_library=True)
89
90 bld.SAMBA_BINARY('genrandperf',
91 source='tests/genrandperf.c',
92 deps='genrand replace',
93 local_include=False,
94 install=False)
95
96 bld.SAMBA_LIBRARY('samba-util',
97 source='''talloc_stack.c smb_threads.c
98 rbtree.c rfc1738.c become_daemon.c system.c select.c getpass.c
99 genrand_util.c fsusage.c
100 params.c util_id.c util_net.c
101 util_strlist.c util_paths.c idtree_random.c base64.c
102 util_str.c util_str_common.c ms_fnmatch.c
103 server_id.c dprintf.c bitmap.c pidfile.c
104 tevent_debug.c memcache.c''',
105 deps='samba-util-core DYNCONFIG close-low-fd tini tiniparser genrand',
106 public_deps='talloc tevent execinfo pthread LIBCRYPTO charset util_setid systemd systemd-daemon',
107 public_headers='debug.h attr.h byteorder.h data_blob.h memory.h safe_string.h time.h talloc_stack.h xfile.h string_wrappers.h idtree.h idtree_random.h blocking.h signal.h substitute.h fault.h genrand.h',
108 header_path= [ ('dlinklist.h samba_util.h', '.'), ('*', 'util') ],
109 local_include=False,
110 vnum='0.0.1',
111 pc_files='samba-util.pc'
112 )
113
114 bld.SAMBA_LIBRARY('samba-modules',
115 source='modules.c',
116 deps='samba-errors samba-util',
117 local_include=False,
118 private_library=True)
119
120 bld.SAMBA_LIBRARY('asn1util',
121 source='asn1.c',
122 deps='talloc samba-util',
123 private_library=True,
124 local_include=False)
125
126
127 bld.SAMBA_SUBSYSTEM('UNIX_PRIVS',
128 source='unix_privs.c',
129 autoproto='unix_privs.h',
130 deps='replace talloc',
131 local_include=False,
132 )
133
134
135 bld.SAMBA_LIBRARY('util_tdb',
136 source='util_tdb.c',
137 local_include=False,
138 public_deps='tdb talloc',
139 private_library=True
140 )
141
142 bld.SAMBA_LIBRARY('tevent-util',
143 source='tevent_unix.c tevent_ntstatus.c tevent_werror.c',
144 local_include=False,
145 public_deps='tevent samba-errors',
146 public_headers='tevent_ntstatus.h tevent_unix.h tevent_werror.h',
147 header_path=[ ('*', 'util') ],
148 pc_files=[],
149 vnum='0.0.1'
150 )
151
152 bld.SAMBA_LIBRARY('util_setid',
153 source='setid.c',
154 local_include=False,
155 private_library=True
156 )
157
158 bld.SAMBA_SUBSYSTEM('util_ldb',
159 source='util_ldb.c',
160 local_include=False,
161 public_deps='ldb',
162 public_headers='util_ldb.h'
163 )
164
165
166 bld.SAMBA_SUBSYSTEM('UTIL_RUNCMD',
167 source='util_runcmd.c',
168 local_include=False,
169 public_deps='tevent'
170 )
171
172 bld.SAMBA_SUBSYSTEM('UTIL_PW',
173 source='util_pw.c',
174 local_include=False,
175 public_deps='talloc'
176 )
177
178 bld.SAMBA_LIBRARY('server_id_db',
179 source='server_id_db.c',
180 deps='talloc tdb strv util_tdb tdb-wrap samba-util',
181 local_include=False,
182 private_library=True)
183
184 bld.SAMBA_LIBRARY('iov_buf',
185 source='iov_buf.c',
186 local_include=False,
187 private_library=True)
188
189 bld.SAMBA3_LIBRARY('sys_rw',
190 source='sys_rw.c sys_rw_data.c',
191 deps='replace iov_buf',
192 local_include=False,
193 private_library=True)
Note: See TracBrowser for help on using the repository browser.