build: Remove bld.gen_python_environments()
[metze/samba/wip.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         install=bld.AD_DC_BUILD_IS_ENABLED()
8         )
9
10 bld.SAMBA_MODULE('service_dns',
11         source='dns_server.c dns_query.c dns_update.c dns_utils.c dns_crypto.c',
12         subsystem='service',
13         init_function='server_service_dns_init',
14         deps='samba-hostconfig LIBTSOCKET LIBSAMBA_TSOCKET ldbsamba clidns gensec auth samba_server_gensec dnsserver_common',
15         local_include=False,
16         internal_module=False,
17         enabled=bld.AD_DC_BUILD_IS_ENABLED()
18         )
19
20 # a bind9 dlz module giving access to the Samba DNS SAM
21 bld.SAMBA_LIBRARY('dlz_bind9',
22                   source='dlz_bind9.c',
23                   cflags='-DBIND_VERSION_9_8',
24                   private_library=True,
25                   link_name='modules/bind9/dlz_bind9.so',
26                   realname='dlz_bind9.so',
27                   install_path='${MODULESDIR}/bind9',
28                   deps='samba-hostconfig samdb-common gensec popt dnsserver_common',
29                   enabled=bld.AD_DC_BUILD_IS_ENABLED())
30
31 bld.SAMBA_LIBRARY('dlz_bind9_9',
32                   source='dlz_bind9.c',
33                   cflags='-DBIND_VERSION_9_9',
34                   private_library=True,
35                   link_name='modules/bind9/dlz_bind9_9.so',
36                   realname='dlz_bind9_9.so',
37                   install_path='${MODULESDIR}/bind9',
38                   deps='samba-hostconfig samdb-common gensec popt dnsserver_common',
39                   enabled=bld.AD_DC_BUILD_IS_ENABLED())
40
41 bld.SAMBA_LIBRARY('dlz_bind9_10',
42                   source='dlz_bind9.c',
43                   cflags='-DBIND_VERSION_9_10',
44                   private_library=True,
45                   link_name='modules/bind9/dlz_bind9_10.so',
46                   realname='dlz_bind9_10.so',
47                   install_path='${MODULESDIR}/bind9',
48                   deps='samba-hostconfig samdb-common gensec popt dnsserver_common',
49                   enabled=bld.AD_DC_BUILD_IS_ENABLED())
50
51 bld.SAMBA_LIBRARY('dlz_bind9_11',
52                   source='dlz_bind9.c',
53                   cflags='-DBIND_VERSION_9_11',
54                   private_library=True,
55                   link_name='modules/bind9/dlz_bind9_11.so',
56                   realname='dlz_bind9_11.so',
57                   install_path='${MODULESDIR}/bind9',
58                   deps='samba-hostconfig samdb-common gensec popt dnsserver_common',
59                   enabled=bld.AD_DC_BUILD_IS_ENABLED())
60
61 bld.SAMBA_LIBRARY('dlz_bind9_12',
62                   source='dlz_bind9.c',
63                   cflags='-DBIND_VERSION_9_12',
64                   private_library=True,
65                   link_name='modules/bind9/dlz_bind9_12.so',
66                   realname='dlz_bind9_12.so',
67                   install_path='${MODULESDIR}/bind9',
68                   deps='samba-hostconfig samdb-common gensec popt dnsserver_common',
69                   enabled=bld.AD_DC_BUILD_IS_ENABLED())
70
71 bld.SAMBA_LIBRARY('dlz_bind9_for_torture',
72                   source='dlz_bind9.c',
73                   cflags='-DBIND_VERSION_9_8',
74                   private_library=True,
75                   deps='samba-hostconfig samdb-common gensec popt dnsserver_common',
76                   enabled=bld.AD_DC_BUILD_IS_ENABLED())
77
78 pyldb_util = bld.pyembed_libname('pyldb-util')
79 pyrpc_util = bld.pyembed_libname('pyrpc_util')
80 pytalloc_util = bld.pyembed_libname('pytalloc-util')
81
82 bld.SAMBA_PYTHON('python_dsdb_dns',
83                  source='pydns.c',
84                  deps='samdb %s %s dnsserver_common %s' % (
85                      pyldb_util, pyrpc_util, pytalloc_util),
86                  realname='samba/dsdb_dns.so',
87                  enabled=bld.AD_DC_BUILD_IS_ENABLED())