lib: Make set_blocking() available independently
[nivanova/samba-autobuild/.git] / lib / util / wscript_build
1 #!/usr/bin/env python
2
3 bld.SAMBA_SUBSYSTEM('time-basic',
4                     source='time_basic.c',
5                     deps='replace',
6                     local_include=False)
7
8 bld.SAMBA_SUBSYSTEM('tini',
9                     source='tini.c',
10                     deps='',
11                     local_include=False)
12
13 bld.SAMBA_SUBSYSTEM('tiniparser',
14                     source='tiniparser.c',
15                     deps='tini',
16                     local_include=False)
17
18 bld.SAMBA_SUBSYSTEM('close-low-fd',
19                     source='close_low_fd.c',
20                     deps='replace',
21                     local_include=False)
22
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)
28
29 bld.SAMBA_LIBRARY('socket-blocking',
30                   source='blocking.c',
31                   local_include=False,
32                   private_library=True)
33
34 bld.SAMBA_LIBRARY('samba-util',
35                   source='''talloc_stack.c smb_threads.c xfile.c data_blob.c
36                     util_file.c time.c rbtree.c rfc1738.c select.c getpass.c
37                     genrand.c fsusage.c become_daemon.c
38                     signal.c system.c params.c util.c util_id.c util_net.c
39                     util_strlist.c util_paths.c idtree.c fault.c base64.c
40                     util_str.c util_str_common.c substitute.c ms_fnmatch.c
41                     server_id.c dprintf.c parmlist.c bitmap.c pidfile.c
42                     tevent_debug.c util_process.c memcache.c''',
43                   deps='DYNCONFIG time-basic close-low-fd samba-debug tini tiniparser socket-blocking',
44                   public_deps='talloc tevent execinfo pthread LIBCRYPTO charset util_setid systemd-daemon',
45                   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',
46                   header_path= [ ('dlinklist.h samba_util.h', '.'), ('*', 'util') ],
47                   local_include=False,
48                   vnum='0.0.1',
49                   pc_files='samba-util.pc'
50                   )
51
52 bld.SAMBA_LIBRARY('samba-modules',
53                   source='modules.c',
54                   deps='errors samba-util',
55                   local_include=False,
56                   private_library=True)
57
58 bld.SAMBA_LIBRARY('asn1util',
59                   source='asn1.c',
60                   deps='talloc samba-util',
61                   private_library=True,
62                   local_include=False)
63
64
65 bld.SAMBA_SUBSYSTEM('UNIX_PRIVS',
66         source='unix_privs.c',
67         autoproto='unix_privs.h',
68         deps='replace talloc',
69         local_include=False,
70         )
71
72
73 bld.SAMBA_LIBRARY('util_tdb',
74         source='util_tdb.c',
75         local_include=False,
76         public_deps='tdb talloc samba-util',
77         private_library=True
78         )
79
80 if not bld.env.disable_ntdb:
81     bld.SAMBA_LIBRARY('util_ntdb',
82                 source='util_ntdb.c',
83                 local_include=False,
84                 public_deps='ntdb talloc samba-util samba-hostconfig',
85                 private_library=True
86                 )
87
88 bld.SAMBA_LIBRARY('tevent-util',
89         source='tevent_unix.c tevent_ntstatus.c tevent_werror.c',
90         local_include=False,
91         public_deps='tevent errors',
92         public_headers='tevent_ntstatus.h tevent_unix.h tevent_werror.h',
93         header_path=[ ('*', 'util') ],
94         pc_files=[],
95         vnum='0.0.1'
96         )
97
98 bld.SAMBA_LIBRARY('util_setid',
99         source='setid.c',
100         local_include=False,
101         private_library=True
102         )
103
104 bld.SAMBA_SUBSYSTEM('util_ldb',
105                     source='util_ldb.c',
106                     local_include=False,
107                     public_deps='ldb',
108                     public_headers='util_ldb.h'
109                     )
110
111
112 bld.SAMBA_SUBSYSTEM('UTIL_RUNCMD',
113         source='util_runcmd.c',
114         local_include=False,
115         public_deps='tevent'
116         )
117
118 bld.SAMBA_SUBSYSTEM('UTIL_PW',
119         source='util_pw.c',
120         local_include=False,
121         public_deps='talloc'
122         )
123