pidl/lib: Add recursion detection logic to prevent looping.
[Samba.git] / source4 / dns_server / wscript_build
blobab0a241b937df486f6d803bff18643babe48faaf
1 #!/usr/bin/env python
3 # dnsserver_common is enabled without the ad-dc to prevent imports from failing
4 # when samba-tool is called where the ad-dc was not built. The server-side dns
5 # code is used in the client when we do direct LDAP modification of DNS records.
6 bld.SAMBA_LIBRARY('dnsserver_common',
7 source='dnsserver_common.c',
8 deps='samba-util samba-errors ldbsamba clidns',
9 private_library=True
12 bld.SAMBA_MODULE('service_dns',
13 source='dns_server.c dns_query.c dns_update.c dns_utils.c dns_crypto.c',
14 subsystem='service',
15 init_function='server_service_dns_init',
16 deps='samba-hostconfig LIBTSOCKET LIBSAMBA_TSOCKET ldbsamba clidns gensec auth samba_server_gensec dnsserver_common',
17 local_include=False,
18 internal_module=False,
19 enabled=bld.AD_DC_BUILD_IS_ENABLED()
22 # a bind9 dlz module giving access to the Samba DNS SAM
23 bld.SAMBA_LIBRARY('dlz_bind9_10',
24 source='dlz_bind9.c',
25 cflags='-DBIND_VERSION_9_10',
26 private_library=True,
27 link_name='modules/bind9/dlz_bind9_10.so',
28 realname='dlz_bind9_10.so',
29 install_path='${MODULESDIR}/bind9',
30 deps='samba-hostconfig samdb-common gensec popt dnsserver_common',
31 enabled=bld.AD_DC_BUILD_IS_ENABLED())
33 bld.SAMBA_LIBRARY('dlz_bind9_11',
34 source='dlz_bind9.c',
35 cflags='-DBIND_VERSION_9_11',
36 private_library=True,
37 link_name='modules/bind9/dlz_bind9_11.so',
38 realname='dlz_bind9_11.so',
39 install_path='${MODULESDIR}/bind9',
40 deps='samba-hostconfig samdb-common gensec popt dnsserver_common',
41 enabled=bld.AD_DC_BUILD_IS_ENABLED())
43 bld.SAMBA_LIBRARY('dlz_bind9_12',
44 source='dlz_bind9.c',
45 cflags='-DBIND_VERSION_9_12',
46 private_library=True,
47 link_name='modules/bind9/dlz_bind9_12.so',
48 realname='dlz_bind9_12.so',
49 install_path='${MODULESDIR}/bind9',
50 deps='samba-hostconfig samdb-common gensec popt dnsserver_common',
51 enabled=bld.AD_DC_BUILD_IS_ENABLED())
53 bld.SAMBA_LIBRARY('dlz_bind9_14',
54 source='dlz_bind9.c',
55 cflags='-DBIND_VERSION_9_14',
56 private_library=True,
57 link_name='modules/bind9/dlz_bind9_14.so',
58 realname='dlz_bind9_14.so',
59 install_path='${MODULESDIR}/bind9',
60 deps='samba-hostconfig samdb-common gensec popt dnsserver_common',
61 enabled=bld.AD_DC_BUILD_IS_ENABLED())
63 bld.SAMBA_LIBRARY('dlz_bind9_16',
64 source='dlz_bind9.c',
65 cflags='-DBIND_VERSION_9_16',
66 private_library=True,
67 link_name='modules/bind9/dlz_bind9_16.so',
68 realname='dlz_bind9_16.so',
69 install_path='${MODULESDIR}/bind9',
70 deps='samba-hostconfig samdb-common gensec popt dnsserver_common',
71 enabled=bld.AD_DC_BUILD_IS_ENABLED())
73 bld.SAMBA_LIBRARY('dlz_bind9_18',
74 source='dlz_bind9.c',
75 cflags='-DBIND_VERSION_9_18',
76 private_library=True,
77 link_name='modules/bind9/dlz_bind9_18.so',
78 realname='dlz_bind9_18.so',
79 install_path='${MODULESDIR}/bind9',
80 deps='samba-hostconfig samdb-common gensec popt dnsserver_common',
81 enabled=bld.AD_DC_BUILD_IS_ENABLED())
83 bld.SAMBA_LIBRARY('dlz_bind9_for_torture',
84 source='dlz_bind9.c',
85 cflags='-DBIND_VERSION_9_16',
86 private_library=True,
87 deps='samba-hostconfig samdb-common gensec popt dnsserver_common',
88 enabled=bld.AD_DC_BUILD_IS_ENABLED())
90 pyldb_util = bld.pyembed_libname('pyldb-util')
91 pyrpc_util = bld.pyembed_libname('pyrpc_util')
92 pytalloc_util = bld.pyembed_libname('pytalloc-util')
94 bld.SAMBA_PYTHON('python_dsdb_dns',
95 source='pydns.c',
96 deps='samdb %s %s dnsserver_common %s' % (
97 pyldb_util, pyrpc_util, pytalloc_util),
98 realname='samba/dsdb_dns.so')