af0defdb284359a4f9e1f60a34706fd6bd0033e7
[kai/samba-autobuild/.git] / source4 / dsdb / wscript_build
1 #!/usr/bin/env python
2
3 bld.RECURSE('samdb/ldb_modules')
4
5 bld.SAMBA_LIBRARY('samdb',
6         source='samdb/samdb.c samdb/samdb_privilege.c samdb/cracknames.c repl/replicated_objects.c',
7         pc_files='samdb.pc',
8         autoproto='samdb/samdb_proto.h',
9         public_deps='krb5',
10         public_headers='',
11         vnum='0.0.1',
12         deps='ndr NDR_DRSUAPI NDR_DRSBLOBS auth_system_session LIBCLI_AUTH ndr SAMDB_SCHEMA ldbsamba samdb-common LIBCLI_DRSUAPI cli-ldap-common samba-util com_err authkrb5 samba-credentials ldbwrap errors krb5samba',
13         )
14
15
16 bld.SAMBA_LIBRARY('samdb-common',
17         source='common/util.c common/util_groups.c common/util_samr.c common/dsdb_dn.c common/dsdb_access.c',
18         autoproto='common/proto.h',
19         private_library=True,
20         deps='ldb NDR_DRSBLOBS util_ldb LIBCLI_AUTH samba-hostconfig samba_socket cli-ldap-common flag_mapping'
21         )
22
23
24 bld.SAMBA_SUBSYSTEM('SAMDB_SCHEMA',
25         source='schema/schema_init.c schema/schema_set.c schema/schema_query.c schema/schema_syntax.c schema/schema_description.c schema/schema_convert_to_ol.c schema/schema_inferiors.c schema/schema_prefixmap.c schema/schema_info_attr.c schema/schema_filtered.c schema/dsdb_dn.c',
26         autoproto='schema/proto.h',
27         deps='samdb-common NDR_DRSUAPI NDR_DRSBLOBS ldbsamba tevent'
28         )
29
30
31 bld.SAMBA_MODULE('service_drepl',
32         source='repl/drepl_service.c repl/drepl_periodic.c repl/drepl_partitions.c repl/drepl_out_pull.c repl/drepl_out_helpers.c repl/drepl_notify.c repl/drepl_ridalloc.c repl/drepl_extended.c repl/drepl_fsmo.c repl/drepl_secret.c repl/drepl_replica.c',
33         autoproto='repl/drepl_service_proto.h',
34         subsystem='service',
35         init_function='server_service_drepl_init',
36         deps='samdb process_model RPC_NDR_DRSUAPI',
37         internal_module=False,
38         )
39
40
41 bld.SAMBA_MODULE('service_kcc',
42         source='kcc/kcc_service.c kcc/kcc_connection.c kcc/kcc_topology.c kcc/kcc_deleted.c kcc/kcc_periodic.c kcc/kcc_drs_replica_info.c',
43         autoproto='kcc/kcc_service_proto.h',
44         subsystem='service',
45         init_function='server_service_kcc_init',
46         deps='samdb process_model RPC_NDR_IRPC RPC_NDR_DRSUAPI UTIL_RUNCMD',
47         internal_module=False,
48         )
49
50
51 bld.SAMBA_MODULE('service_dns_update',
52         source='dns/dns_update.c',
53         subsystem='service',
54         init_function='server_service_dnsupdate_init',
55         deps='samdb UTIL_RUNCMD samba-util ldb samdb-common errors talloc auth_system_session samba-hostconfig',
56         internal_module=False
57         )
58
59 bld.SAMBA_PYTHON('python_dsdb',
60         source='pydsdb.c',
61         # the dependency on dcerpc here is because gensec
62         # depends on dcerpc but the waf circular dependency finder
63         # removes it so we end up with unresolved symbols.
64         deps='samdb pyldb-util dcerpc com_err pyrpc_util',
65         realname='samba/dsdb.so'
66         )