s4-dsdb/objectclass: remove duplicated declaration for objectclass_do_add
[Samba.git] / lib / util / wscript_build
blobc0d07e70f8f4b4d3d2a4c1c9b7f1d5d628d0d77b
1 #!/usr/bin/env python
3 bld.SAMBA_SUBSYSTEM('time-basic',
4 source='time_basic.c',
5 deps='replace',
6 local_include=False)
8 bld.SAMBA_SUBSYSTEM('tini',
9 source='tini.c',
10 deps='',
11 local_include=False)
13 bld.SAMBA_SUBSYSTEM('tiniparser',
14 source='tiniparser.c',
15 deps='tini',
16 local_include=False)
18 bld.SAMBA_SUBSYSTEM('strv',
19 source='strv.c',
20 deps='talloc',
21 local_include=False)
23 bld.SAMBA_SUBSYSTEM('close-low-fd',
24 source='close_low_fd.c',
25 deps='replace',
26 local_include=False)
28 bld.SAMBA_LIBRARY('samba-debug',
29 source='debug.c',
30 deps='replace time-basic close-low-fd talloc',
31 local_include=False,
32 private_library=True)
34 bld.SAMBA_LIBRARY('socket-blocking',
35 source='blocking.c',
36 local_include=False,
37 private_library=True)
39 bld.SAMBA_SUBSYSTEM('samba-util-core',
40 source='''xfile.c data_blob.c util_file.c time.c
41 signal.c util.c idtree.c fault.c
42 substitute.c''',
43 deps='''time-basic samba-debug socket-blocking talloc
44 tevent execinfo pthread''',
45 local_include=False)
47 if not bld.env.SAMBA_UTIL_CORE_ONLY:
49 bld.env.public_headers_skip.append('charset_compat.h')
51 bld.SAMBA_LIBRARY('samba-util',
52 source='''talloc_stack.c smb_threads.c
53 rbtree.c rfc1738.c become_daemon.c system.c select.c getpass.c
54 genrand.c fsusage.c
55 params.c util_id.c util_net.c
56 util_strlist.c util_paths.c idtree_random.c base64.c
57 util_str.c util_str_common.c ms_fnmatch.c
58 server_id.c dprintf.c parmlist.c bitmap.c pidfile.c
59 tevent_debug.c util_process.c memcache.c''',
60 deps='samba-util-core DYNCONFIG close-low-fd tini tiniparser',
62 public_deps='talloc tevent execinfo pthread LIBCRYPTO charset util_setid systemd-daemon',
63 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',
64 header_path= [ ('dlinklist.h samba_util.h', '.'), ('*', 'util') ],
65 local_include=False,
66 vnum='0.0.1',
67 pc_files='samba-util.pc'
70 bld.SAMBA_LIBRARY('samba-modules',
71 source='modules.c',
72 deps='errors samba-util',
73 local_include=False,
74 private_library=True)
76 bld.SAMBA_LIBRARY('asn1util',
77 source='asn1.c',
78 deps='talloc samba-util',
79 private_library=True,
80 local_include=False)
83 bld.SAMBA_SUBSYSTEM('UNIX_PRIVS',
84 source='unix_privs.c',
85 autoproto='unix_privs.h',
86 deps='replace talloc',
87 local_include=False,
91 bld.SAMBA_LIBRARY('util_tdb',
92 source='util_tdb.c',
93 local_include=False,
94 public_deps='tdb talloc',
95 private_library=True
98 if not bld.env.disable_ntdb:
99 bld.SAMBA_LIBRARY('util_ntdb',
100 source='util_ntdb.c',
101 local_include=False,
102 public_deps='ntdb talloc samba-util samba-hostconfig',
103 private_library=True
106 bld.SAMBA_LIBRARY('tevent-util',
107 source='tevent_unix.c tevent_ntstatus.c tevent_werror.c',
108 local_include=False,
109 public_deps='tevent errors',
110 public_headers='tevent_ntstatus.h tevent_unix.h tevent_werror.h',
111 header_path=[ ('*', 'util') ],
112 pc_files=[],
113 vnum='0.0.1'
116 bld.SAMBA_LIBRARY('util_setid',
117 source='setid.c',
118 local_include=False,
119 private_library=True
122 bld.SAMBA_SUBSYSTEM('util_ldb',
123 source='util_ldb.c',
124 local_include=False,
125 public_deps='ldb',
126 public_headers='util_ldb.h'
130 bld.SAMBA_SUBSYSTEM('UTIL_RUNCMD',
131 source='util_runcmd.c',
132 local_include=False,
133 public_deps='tevent'
136 bld.SAMBA_SUBSYSTEM('UTIL_PW',
137 source='util_pw.c',
138 local_include=False,
139 public_deps='talloc'
142 bld.SAMBA_LIBRARY('server_id_db',
143 source='server_id_db.c',
144 deps='talloc tdb strv util_tdb tdb-wrap samba-util',
145 local_include=False,
146 private_library=True)