Rename 'errors' to 'samba-errors' and make it public.
[obnox/samba/samba-obnox.git] / source4 / dns_server / wscript_build
1 #!/usr/bin/env python
2
3 bld.SAMBA_LIBRARY('dnsserver_common',
4         source='dnsserver_common.c',
5         deps='samba-util samba-errors ldbsamba clidns',
6         private_library=True,
7         enabled=bld.AD_DC_BUILD_IS_ENABLED())
8
9 bld.SAMBA_MODULE('service_dns',
10         source='dns_server.c dns_query.c dns_update.c dns_utils.c dns_crypto.c',
11         subsystem='service',
12         init_function='server_service_dns_init',
13         deps='samba-hostconfig LIBTSOCKET LIBSAMBA_TSOCKET ldbsamba clidns gensec auth samba_server_gensec dnsserver_common',
14         local_include=False,
15         internal_module=False,
16         enabled=bld.AD_DC_BUILD_IS_ENABLED()
17         )
18
19 # a bind9 dlz module giving access to the Samba DNS SAM
20 bld.SAMBA_LIBRARY('dlz_bind9',
21                   source='dlz_bind9.c',
22                   cflags='-DBIND_VERSION_9_8',
23                   private_library=True,
24                   link_name='modules/bind9/dlz_bind9.so',
25                   realname='dlz_bind9.so',
26                   install_path='${MODULESDIR}/bind9',
27                   deps='samba-hostconfig samdb-common gensec popt dnsserver_common',
28                   enabled=bld.AD_DC_BUILD_IS_ENABLED())
29
30 bld.SAMBA_LIBRARY('dlz_bind9_9',
31                   source='dlz_bind9.c',
32                   cflags='-DBIND_VERSION_9_9',
33                   private_library=True,
34                   link_name='modules/bind9/dlz_bind9_9.so',
35                   realname='dlz_bind9_9.so',
36                   install_path='${MODULESDIR}/bind9',
37                   deps='samba-hostconfig samdb-common gensec popt dnsserver_common',
38                   enabled=bld.AD_DC_BUILD_IS_ENABLED())
39
40 bld.SAMBA_LIBRARY('dlz_bind9_10',
41                   source='dlz_bind9.c',
42                   cflags='-DBIND_VERSION_9_10',
43                   private_library=True,
44                   link_name='modules/bind9/dlz_bind9_10.so',
45                   realname='dlz_bind9_10.so',
46                   install_path='${MODULESDIR}/bind9',
47                   deps='samba-hostconfig samdb-common gensec popt dnsserver_common',
48                   enabled=bld.AD_DC_BUILD_IS_ENABLED())
49
50 bld.SAMBA_LIBRARY('dlz_bind9_for_torture',
51                   source='dlz_bind9.c',
52                   cflags='-DBIND_VERSION_9_8',
53                   private_library=True,
54                   deps='samba-hostconfig samdb-common gensec popt dnsserver_common',
55                   enabled=bld.AD_DC_BUILD_IS_ENABLED())
56
57
58 bld.SAMBA_PYTHON('python_dsdb_dns',
59                  source='pydns.c',
60                  deps='samdb pyldb-util pyrpc_util dnsserver_common',
61                  realname='samba/dsdb_dns.so')