build: much nicer pidl rules
[Samba.git] / source4 / lib / registry / wscript_build
blob72478b0d7f3c479b1e9ad5e19db2ca176f1894c6
1 bld.SAMBA_PIDL('PIDL_REG',
2                source='regf.idl',
3                options='--header --tdr-parser')
5 bld.SAMBA_SUBSYSTEM('TDR_REGF',
6         source='tdr_regf.c',
7         public_deps='TDR'
8         )
11 bld.SAMBA_LIBRARY('registry',
12         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',
13         # PC_FILES='registry.pc',
14         public_deps='LIBSAMBA-UTIL CHARSET TDR_REGF ldb RPC_NDR_WINREG LDB_WRAP',
15         public_headers='registry.h',
16         vnum='0.0.1'
17         )
20 bld.SAMBA_SUBSYSTEM('registry_common',
21         source='tools/common.c',
22         autoproto='tools/common.h',
23         public_deps='registry'
24         )
27 bld.SAMBA_BINARY('regdiff',
28         source='tools/regdiff.c',
29         manpages='man/regdiff.1',
30         installdir='BINDIR',
31         deps='LIBSAMBA-HOSTCONFIG registry LIBPOPT POPT_SAMBA POPT_CREDENTIALS'
32         )
35 bld.SAMBA_BINARY('regpatch',
36         source='tools/regpatch.c',
37         manpages='man/regpatch.1',
38         installdir='BINDIR',
39         deps='LIBSAMBA-HOSTCONFIG registry LIBPOPT POPT_SAMBA POPT_CREDENTIALS registry_common'
40         )
43 bld.SAMBA_BINARY('regshell',
44         source='tools/regshell.c',
45         manpages='man/regshell.1',
46         installdir='BINDIR',
47         deps='LIBSAMBA-HOSTCONFIG LIBPOPT registry POPT_SAMBA POPT_CREDENTIALS SMBREADLINE registry_common'
48         )
51 bld.SAMBA_BINARY('regtree',
52         source='tools/regtree.c',
53         manpages='man/regtree.1',
54         installdir='BINDIR',
55         deps='LIBSAMBA-HOSTCONFIG LIBPOPT registry POPT_SAMBA POPT_CREDENTIALS registry_common'
56         )
59 bld.SAMBA_SUBSYSTEM('torture_registry',
60         source='tests/generic.c hive.c tests/diff.c tests/registry.c',
61         autoproto='tests/proto.h',
62         deps='torture registry'
63         )
66 bld.SAMBA_PYTHON('py_registry',
67         source='pyregistry.c',
68         public_deps='registry PYTALLOC pycredentials pyparam_util',
69         realname='samba/registry.so'
70         )