rwrap: Handle trailing dot in dns names.
[Samba.git] / lib / util / wscript_build
blobcd23231f3cc23688507b89bbe463766f49fc5ad8
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('close-low-fd',
19 source='close_low_fd.c',
20 deps='replace',
21 local_include=False)
23 bld.SAMBA_LIBRARY('samba-debug',
24 source='debug.c',
25 deps='replace time-basic close-low-fd talloc',
26 local_include=False,
27 private_library=True)
29 bld.SAMBA_LIBRARY('socket-blocking',
30 source='blocking.c',
31 local_include=False,
32 private_library=True)
34 bld.SAMBA_SUBSYSTEM('samba-util-core',
35 source='''xfile.c data_blob.c util_file.c time.c
36 signal.c util.c idtree.c fault.c
37 substitute.c''',
38 deps='''time-basic samba-debug socket-blocking talloc
39 tevent execinfo pthread''',
40 local_include=False)
42 if not bld.env.SAMBA_UTIL_CORE_ONLY:
44 bld.env.public_headers_skip.append('charset_compat.h')
46 bld.SAMBA_LIBRARY('samba-util',
47 source='''talloc_stack.c smb_threads.c
48 rbtree.c rfc1738.c become_daemon.c system.c select.c getpass.c
49 genrand.c fsusage.c
50 params.c util_id.c util_net.c
51 util_strlist.c util_paths.c idtree_random.c base64.c
52 util_str.c util_str_common.c ms_fnmatch.c
53 server_id.c dprintf.c parmlist.c bitmap.c pidfile.c
54 tevent_debug.c util_process.c memcache.c''',
55 deps='samba-util-core DYNCONFIG close-low-fd tini tiniparser',
57 public_deps='talloc tevent execinfo pthread LIBCRYPTO charset util_setid systemd-daemon',
58 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',
59 header_path= [ ('dlinklist.h samba_util.h', '.'), ('*', 'util') ],
60 local_include=False,
61 vnum='0.0.1',
62 pc_files='samba-util.pc'
65 bld.SAMBA_LIBRARY('samba-modules',
66 source='modules.c',
67 deps='errors samba-util',
68 local_include=False,
69 private_library=True)
71 bld.SAMBA_LIBRARY('asn1util',
72 source='asn1.c',
73 deps='talloc samba-util',
74 private_library=True,
75 local_include=False)
78 bld.SAMBA_SUBSYSTEM('UNIX_PRIVS',
79 source='unix_privs.c',
80 autoproto='unix_privs.h',
81 deps='replace talloc',
82 local_include=False,
86 bld.SAMBA_LIBRARY('util_tdb',
87 source='util_tdb.c',
88 local_include=False,
89 public_deps='tdb talloc',
90 private_library=True
93 if not bld.env.disable_ntdb:
94 bld.SAMBA_LIBRARY('util_ntdb',
95 source='util_ntdb.c',
96 local_include=False,
97 public_deps='ntdb talloc samba-util samba-hostconfig',
98 private_library=True
101 bld.SAMBA_LIBRARY('tevent-util',
102 source='tevent_unix.c tevent_ntstatus.c tevent_werror.c',
103 local_include=False,
104 public_deps='tevent errors',
105 public_headers='tevent_ntstatus.h tevent_unix.h tevent_werror.h',
106 header_path=[ ('*', 'util') ],
107 pc_files=[],
108 vnum='0.0.1'
111 bld.SAMBA_LIBRARY('util_setid',
112 source='setid.c',
113 local_include=False,
114 private_library=True
117 bld.SAMBA_SUBSYSTEM('util_ldb',
118 source='util_ldb.c',
119 local_include=False,
120 public_deps='ldb',
121 public_headers='util_ldb.h'
125 bld.SAMBA_SUBSYSTEM('UTIL_RUNCMD',
126 source='util_runcmd.c',
127 local_include=False,
128 public_deps='tevent'
131 bld.SAMBA_SUBSYSTEM('UTIL_PW',
132 source='util_pw.c',
133 local_include=False,
134 public_deps='talloc'