build: provide tevent-util as a public library
[kai/samba-autobuild/.git] / lib / util / wscript_build
1 #!/usr/bin/env python
2
3 bld.SAMBA_LIBRARY('samba-util',
4                   source='''talloc_stack.c smb_threads.c xfile.c data_blob.c
5                     util_file.c time.c rbtree.c rfc1738.c select.c
6                     genrand.c fsusage.c blocking.c become_daemon.c
7                     signal.c system.c params.c util.c util_id.c util_net.c
8                     util_strlist.c util_paths.c idtree.c debug.c fault.c base64.c
9                     util_str.c util_str_common.c substitute.c ms_fnmatch.c
10                     server_id.c dprintf.c parmlist.c bitmap.c''',
11                   deps='DYNCONFIG',
12                   public_deps='talloc execinfo uid_wrapper pthread LIBCRYPTO charset',
13                   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 util.h string_wrappers.h',
14                   header_path= [ ('dlinklist.h util.h', '.'), ('*', 'util') ],
15                   local_include=False,
16                   vnum='0.0.1',
17                   pc_files='samba-util.pc'
18                   )
19
20 bld.SAMBA_LIBRARY('asn1util',
21                   source='asn1.c',
22                   deps='talloc samba-util',
23                   private_library=True,
24                   local_include=False)
25
26
27 bld.SAMBA_SUBSYSTEM('UNIX_PRIVS',
28         source='unix_privs.c',
29         autoproto='unix_privs.h',
30         deps='replace talloc',
31         local_include=False,
32         )
33
34
35 bld.SAMBA_LIBRARY('wrap_xattr',
36         source='wrap_xattr.c',
37         public_deps='attr',
38         deps='talloc',
39         local_include=False,
40         private_library=True
41         )
42
43
44 bld.SAMBA_LIBRARY('UTIL_TDB',
45         source='util_tdb.c',
46         local_include=False,
47         public_deps='tdb_compat talloc',
48                   private_library=True
49         )
50
51 bld.SAMBA_LIBRARY('tevent-util',
52         source='tevent_unix.c tevent_ntstatus.c tevent_werror.c',
53         local_include=False,
54         public_deps='tevent',
55         public_headers='tevent_ntstatus.h tevent_unix.h tevent_werror.h',
56         header_path=[ ('*', 'util') ],
57                   vnum='0.0.1'
58         )
59
60
61 if bld.env._SAMBA_BUILD_ == 4:
62         bld.SAMBA_SUBSYSTEM('util_ldb',
63                 source='util_ldb.c',
64                 local_include=False,
65                 public_deps='ldb',
66                 public_headers='util_ldb.h'
67                 )
68
69
70 bld.SAMBA_SUBSYSTEM('UTIL_RUNCMD',
71         source='util_runcmd.c',
72         local_include=False,
73         public_deps='tevent'
74         )
75
76 bld.SAMBA_SUBSYSTEM('UTIL_PW',
77         source='util_pw.c',
78         local_include=False,
79         public_deps='talloc'
80         )
81
82
83 bld.SAMBA_LIBRARY('tdb-wrap',
84                   source='tdb_wrap.c',
85                   deps='tdb_compat talloc samba-util',
86                   private_library=True,
87                   local_include=False
88                  )