s4-waf: cleanup use of LIBPOPT vs popt dependency
[samba.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 dir.c rpc.c',
15         pc_files='registry.pc',
16         public_deps='LIBSAMBA-UTIL CHARSET TDR_REGF ldb RPC_NDR_WINREG LDB_WRAP',
17         public_headers='registry.h',
18         vnum='0.0.1'
19         )
20
21
22 bld.SAMBA_SUBSYSTEM('registry_common',
23         source='tools/common.c',
24         autoproto='tools/common.h',
25         public_deps='registry'
26         )
27
28
29 bld.SAMBA_BINARY('regdiff',
30         source='tools/regdiff.c',
31         manpages='man/regdiff.1',
32         installdir='BINDIR',
33         deps='LIBSAMBA-HOSTCONFIG registry popt POPT_SAMBA POPT_CREDENTIALS'
34         )
35
36
37 bld.SAMBA_BINARY('regpatch',
38         source='tools/regpatch.c',
39         manpages='man/regpatch.1',
40         installdir='BINDIR',
41         deps='LIBSAMBA-HOSTCONFIG registry popt POPT_SAMBA POPT_CREDENTIALS registry_common'
42         )
43
44
45 bld.SAMBA_BINARY('regshell',
46         source='tools/regshell.c',
47         manpages='man/regshell.1',
48         installdir='BINDIR',
49         deps='LIBSAMBA-HOSTCONFIG popt registry POPT_SAMBA POPT_CREDENTIALS SMBREADLINE registry_common'
50         )
51
52
53 bld.SAMBA_BINARY('regtree',
54         source='tools/regtree.c',
55         manpages='man/regtree.1',
56         installdir='BINDIR',
57         deps='LIBSAMBA-HOSTCONFIG popt registry POPT_SAMBA POPT_CREDENTIALS registry_common'
58         )
59
60
61 bld.SAMBA_SUBSYSTEM('torture_registry',
62         source='tests/generic.c tests/hive.c tests/diff.c tests/registry.c',
63         autoproto='tests/proto.h',
64         deps='torture registry'
65         )
66
67
68 bld.SAMBA_PYTHON('py_registry',
69         source='pyregistry.c',
70         public_deps='registry PYTALLOC pycredentials pyparam_util',
71         realname='samba/registry.so'
72         )
73