Add missing dependencies for com_err.
[samba.git] / source4 / dsdb / wscript_build
1 #!/usr/bin/env python
2
3 bld.RECURSE('samdb/ldb_modules')
4
5 bld.SAMBA_SUBSYSTEM('SAMDB',
6         source='samdb/samdb.c samdb/samdb_privilege.c samdb/cracknames.c repl/replicated_objects.c',
7         autoproto='samdb/samdb_proto.h',
8         public_deps='krb5',
9         deps='LIBNDR NDR_DRSUAPI NDR_DRSBLOBS NSS_WRAPPER auth_system_session LIBCLI_AUTH LIBNDR SAMDB_SCHEMA LDBSAMBA SAMDB_COMMON LIBCLI_DRSUAPI LIBCLI_LDAP_NDR LIBSAMBA-UTIL com_err'
10         )
11
12
13 bld.SAMBA_SUBSYSTEM('SAMDB_COMMON',
14         source='common/util.c common/util_samr.c common/dsdb_dn.c common/dsdb_access.c ../../libds/common/flag_mapping.c',
15         autoproto='common/proto.h',
16         deps='ldb NDR_DRSBLOBS LIBCLI_LDAP_NDR UTIL_LDB LIBCLI_AUTH DSDB_MODULE_HELPERS'
17         )
18
19
20 bld.SAMBA_SUBSYSTEM('SAMDB_SCHEMA',
21         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',
22         autoproto='schema/proto.h',
23         deps='SAMDB_COMMON NDR_DRSUAPI NDR_DRSBLOBS LDBSAMBA tevent'
24         )
25
26
27 bld.SAMBA_MODULE('DREPL_SRV',
28         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',
29         autoproto='repl/drepl_service_proto.h',
30         subsystem='service',
31         init_function='server_service_drepl_init',
32         deps='SAMDB process_model RPC_NDR_DRSUAPI'
33         )
34
35
36 bld.SAMBA_MODULE('KCC_SRV',
37         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',
38         autoproto='kcc/kcc_service_proto.h',
39         subsystem='service',
40         init_function='server_service_kcc_init',
41         deps='SAMDB process_model RPC_NDR_IRPC RPC_NDR_DRSUAPI'
42         )
43
44
45 bld.SAMBA_MODULE('DNS_UPDATE_SRV',
46         source='dns/dns_update.c',
47         subsystem='service',
48         init_function='server_service_dnsupdate_init',
49         deps='SAMDB process_model UTIL_RUNCMD'
50         )
51
52 bld.SAMBA_PYTHON('python_dsdb',
53                  source='pydsdb.c',
54                                  # the dependency on dcerpc here is because gensec
55                                  # depends on dcerpc but the waf circular dependency finder
56                                  # removes it so we end up with unresolved symbols.
57                  deps='SAMDB pyldb_util dcerpc com_err',
58                  realname='samba/dsdb.so'
59                  )