source: trunk/server/lib/util/wscript_build

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

Samba Server: apply latest security patches to trunk

File size: 3.2 KB
Line 
1#!/usr/bin/env python
2
3# as we move files into common between samba-util and samba-util3, move them here.
4# Both samba-util and samba-util3 depend on this private library
5bld.SAMBA_LIBRARY('samba-util-common',
6 source='''talloc_stack.c smb_threads.c xfile.c
7 util_file.c time.c rbtree.c rfc1738.c select.c
8 genrand.c fsusage.c blocking.c become_daemon.c
9 signal.c system.c params.c util.c util_id.c util_net.c
10 util_strlist.c idtree.c debug.c''',
11 public_deps='talloc pthread LIBCRYPTO',
12 # until we get all the dependencies in this library in common
13 # we need to allow this library to be built with unresolved symbols
14 allow_undefined_symbols=True,
15 local_include=False,
16 public_headers='debug.h',
17 header_path= [('*', 'util') ],
18 private_library=True
19 )
20
21if bld.env._SAMBA_BUILD_ == 4:
22 bld.SAMBA_LIBRARY('samba-util',
23 source='''dprintf.c fault.c data_blob.c
24 ms_fnmatch.c parmlist.c substitute.c util_str.c
25 ''',
26 deps='samba-util-common',
27 public_deps='talloc CHARSET execinfo uid_wrapper',
28 public_headers='attr.h byteorder.h data_blob.h memory.h safe_string.h time.h talloc_stack.h xfile.h dlinklist.h util.h',
29 header_path= [ ('dlinklist.h util.h', '.'), ('*', 'util') ],
30 local_include=False,
31 vnum='0.0.1',
32 pc_files='samba-util.pc'
33 )
34
35
36bld.SAMBA_SUBSYSTEM('ASN1_UTIL',
37 source='asn1.c',
38 deps='talloc',
39 local_include=False)
40
41
42bld.SAMBA_SUBSYSTEM('UNIX_PRIVS',
43 source='unix_privs.c',
44 autoproto='unix_privs.h',
45 deps='replace talloc',
46 local_include=False,
47 )
48
49
50bld.SAMBA_LIBRARY('wrap_xattr',
51 source='wrap_xattr.c',
52 public_deps='attr',
53 deps='talloc',
54 local_include=False,
55 private_library=True
56 )
57
58
59bld.SAMBA_SUBSYSTEM('UTIL_TDB',
60 source='util_tdb.c',
61 local_include=False,
62 public_deps='tdb talloc'
63 )
64
65bld.SAMBA_SUBSYSTEM('UTIL_TEVENT',
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 )
72
73
74if bld.env._SAMBA_BUILD_ == 4:
75 bld.SAMBA_SUBSYSTEM('UTIL_LDB',
76 source='util_ldb.c',
77 local_include=False,
78 public_deps='ldb',
79 public_headers='util_ldb.h'
80 )
81
82
83bld.SAMBA_SUBSYSTEM('UTIL_RUNCMD',
84 source='util_runcmd.c',
85 local_include=False,
86 public_deps='tevent'
87 )
88
89bld.SAMBA_SUBSYSTEM('UTIL_PW',
90 source='util_pw.c',
91 local_include=False,
92 public_deps='talloc'
93 )
94
95
96bld.SAMBA_LIBRARY('tdb-wrap',
97 source='tdb_wrap.c',
98 deps='tdb talloc samba-util',
99 public_headers='tdb_wrap.h',
100 private_library=True,
101 local_include=False
102 )
103
104bld.SAMBA_LIBRARY('bitmap',
105 source='bitmap.c',
106 deps='talloc samba-util',
107 local_include=False,
108 private_library=True)
109
Note: See TracBrowser for help on using the repository browser.