| 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 CMDLINE_S4' |
| 32 |
) |
| 33 |
|
| 34 |
|
| 35 |
bld.SAMBA_BINARY('regpatch', |
| 36 |
source='tools/regpatch.c', |
| 37 |
manpages='man/regpatch.1', |
| 38 |
deps='samba-hostconfig registry popt CMDLINE_S4 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 CMDLINE_S4 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 CMDLINE_S4 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 |
pytalloc_util = bld.pyembed_libname('pytalloc-util') |
| 63 |
pyparam_util = bld.pyembed_libname('pyparam_util') |
| 64 |
|
| 65 |
bld.SAMBA_PYTHON('py_registry', |
| 66 |
source='pyregistry.c', |
| 67 |
public_deps='registry %s %s' % (pytalloc_util, pyparam_util), |
| 68 |
realname='samba/registry.so' |
| 69 |
) |