06508fb38d577924d877b8076ab1698c8f9a8dc1
[nivanova/samba-autobuild/.git] / source4 / lib / registry / wscript_build
1 #!/usr/bin/env python
2
3 bld.SAMBA_PIDL('PIDL_REG',
4                source='regf.idl',
5                options='--header --tdr-parser')
6
7 bld.SAMBA_SUBSYSTEM('TDR_REGF',
8         source='tdr_regf.c',
9         public_deps='TDR'
10         )
11
12
13 bld.SAMBA_LIBRARY('registry',
14         source='interface.c util.c samba.c patchfile_dotreg.c patchfile_preg.c patchfile.c regf.c hive.c local.c ldb.c rpc.c',
15         public_deps='dcerpc samba-util TDR_REGF ldb RPC_NDR_WINREG ldbsamba util_reg',
16         private_headers='registry.h',
17         private_library=True
18         )
19
20
21 bld.SAMBA_SUBSYSTEM('registry_common',
22         source='tools/common.c',
23         autoproto='tools/common.h',
24         public_deps='registry'
25         )
26
27
28 bld.SAMBA_BINARY('regdiff',
29         source='tools/regdiff.c',
30         manpages='man/regdiff.1',
31         deps='samba-hostconfig registry popt POPT_SAMBA POPT_CREDENTIALS'
32         )
33
34
35 bld.SAMBA_BINARY('regpatch',
36         source='tools/regpatch.c',
37         manpages='man/regpatch.1',
38         deps='samba-hostconfig registry popt POPT_SAMBA POPT_CREDENTIALS registry_common'
39         )
40
41
42 bld.SAMBA_BINARY('regshell',
43         source='tools/regshell.c',
44         manpages='man/regshell.1',
45         deps='samba-hostconfig popt registry POPT_SAMBA POPT_CREDENTIALS SMBREADLINE registry_common'
46         )
47
48
49 bld.SAMBA_BINARY('regtree',
50         source='tools/regtree.c',
51         manpages='man/regtree.1',
52         deps='samba-hostconfig popt registry POPT_SAMBA POPT_CREDENTIALS registry_common'
53         )
54
55
56 bld.SAMBA_SUBSYSTEM('torture_registry',
57         source='tests/generic.c tests/hive.c tests/diff.c tests/registry.c',
58         autoproto='tests/proto.h',
59         deps='torture registry'
60         )
61
62 for env in bld.gen_python_environments():
63         pytalloc_util = bld.pyembed_libname('pytalloc-util')
64         pyparam_util = bld.pyembed_libname('pyparam_util')
65
66         bld.SAMBA_PYTHON('py_registry',
67                 source='pyregistry.c',
68                 public_deps='registry %s %s' % (pytalloc_util, pyparam_util),
69                 realname='samba/registry.so'
70                 )