s4-winbind: Use winbindd in the AD DC for fl2003dc and plugin_s4_dc
[Samba.git] / wscript_build
blob59ba354d48c981d3dc0a2fac8b8fb95dc6ccf097
1 #!/usr/bin/env python
3 # top level waf build script for samba4
5 import os
6 srcdir = "."
8 import samba_version
10 bld.env.suffix3 = "3"
11 bld.env.suffix4 = "4"
13 # create separate build groups for building the asn1 and et compiler, then
14 # building the C from ASN1 and IDL, and finally the main build process
15 bld.SETUP_BUILD_GROUPS()
16 bld.AUTOCLEANUP_STALE_FILES()
18 # enable building of public headers in the build tree
19 bld.env.build_public_headers = 'include/public'
21 # these are includes which appear in public headers, but with #ifdef conditional
22 # compilation, so they are safe
23 bld.env.public_headers_skip = ['lib/param/param_proto.h', 'lib/param/param_functions.h']
25 samba_version.load_version(bld.env, is_install=bld.is_install)
26 bld.SAMBA_MKVERSION('version.h')
28 # bld.ENABLE_MAGIC_ORDERING()
30 bld.env.ABS_TOP_SRCDIR = bld.srcnode.abspath() + '/docs-xml'
31 bld.env.ABS_TOP_BUILDDIR = bld.srcnode.abspath() + '/bin/default/docs-xml'
32 bld.CONFIGURE_FILE('docs-xml/build/catalog.xml',
33 ABS_TOP_BUILDDIR = bld.env.ABS_TOP_BUILDDIR,
34 ABS_TOP_SRCDIR=bld.env.ABS_TOP_SRCDIR)
35 bld.RECURSE('docs-xml')
37 bld.RECURSE('lib/replace')
38 bld.RECURSE('lib/socket')
39 bld.RECURSE('lib/talloc')
40 bld.RECURSE('lib/tevent')
41 bld.RECURSE('lib/addns')
42 bld.RECURSE('lib/ccan')
43 bld.RECURSE('lib/tdb_compat')
44 if not bld.env.disable_ntdb:
45 bld.RECURSE('lib/ntdb')
46 bld.RECURSE('lib/ldb')
47 bld.RECURSE('lib/param')
48 bld.RECURSE('dynconfig')
49 bld.RECURSE('lib/util/charset')
50 bld.RECURSE('python')
51 bld.RECURSE('source4/param')
52 bld.RECURSE('source4/librpc')
53 bld.RECURSE('source4/dsdb')
54 bld.RECURSE('source4/smbd')
55 bld.RECURSE('source4/cluster')
56 bld.RECURSE('source4/smbd')
57 bld.RECURSE('source4/libnet')
58 bld.RECURSE('source4/auth')
59 bld.RECURSE('auth')
60 bld.RECURSE('auth/kerberos')
61 bld.RECURSE('nsswitch')
62 bld.RECURSE('nsswitch/libwbclient')
63 bld.RECURSE('source4/lib/samba3')
64 bld.RECURSE('source4/lib/socket')
65 bld.RECURSE('lib/ldb-samba')
66 bld.RECURSE('source4/lib/tls')
67 bld.RECURSE('source4/lib/registry')
68 bld.RECURSE('source4/lib/messaging')
69 bld.RECURSE('source4/lib/events')
70 bld.RECURSE('source4/lib/cmdline')
71 bld.RECURSE('lib/socket_wrapper')
72 bld.RECURSE('lib/nss_wrapper')
73 bld.RECURSE('lib/uid_wrapper')
74 bld.RECURSE('lib/popt')
75 bld.RECURSE('lib/iniparser/src')
76 bld.RECURSE('source4/lib/stream')
77 bld.RECURSE('lib/afs')
78 bld.RECURSE('lib/util')
79 bld.RECURSE('lib/tdb_wrap')
80 bld.RECURSE('lib/tdr')
81 bld.RECURSE('lib/tsocket')
82 bld.RECURSE('lib/crypto')
83 bld.RECURSE('lib/torture')
84 bld.RECURSE('lib/zlib')
85 bld.RECURSE('source4/lib/com')
86 bld.RECURSE('source4/dns_server')
87 bld.RECURSE('source4/echo_server')
88 bld.RECURSE('source4/smb_server')
89 bld.RECURSE('source4/rpc_server')
90 bld.RECURSE('source4/ldap_server')
91 bld.RECURSE('source4/web_server')
92 bld.RECURSE('source4/winbind')
93 bld.RECURSE('source4/nbt_server')
94 bld.RECURSE('source4/wrepl_server')
95 bld.RECURSE('source4/cldap_server')
96 bld.RECURSE('source4/ntp_signd')
97 bld.RECURSE('source4/utils')
98 bld.RECURSE('source4/ntvfs')
99 bld.RECURSE('source4/ntptr')
100 bld.RECURSE('source4/torture')
101 bld.RECURSE('librpc')
102 bld.RECURSE('source4')
103 bld.RECURSE('source4/libcli')
104 bld.RECURSE('libcli/smb')
105 bld.RECURSE('libcli/util')
106 bld.RECURSE('libcli/cldap')
107 bld.RECURSE('lib/subunit/c')
108 bld.RECURSE('lib/smbconf')
109 bld.RECURSE('lib/async_req')
110 bld.RECURSE('lib/dbwrap')
111 bld.RECURSE('libcli/security')
112 bld.RECURSE('libcli/ldap')
113 bld.RECURSE('libcli/nbt')
114 bld.RECURSE('libcli/netlogon')
115 bld.RECURSE('libcli/auth')
116 bld.RECURSE('libcli/lsarpc')
117 bld.RECURSE('libcli/drsuapi')
118 bld.RECURSE('libcli/echo')
119 bld.RECURSE('libcli/dns')
120 bld.RECURSE('libcli/samsync')
121 bld.RECURSE('libcli/registry')
122 bld.RECURSE('source4/lib/policy')
123 bld.RECURSE('libcli/named_pipe_auth')
125 if bld.CONFIG_GET('KRB5_VENDOR') in (None, 'heimdal'):
126 if bld.CONFIG_GET("HEIMDAL_KRB5_CONFIG") and bld.CONFIG_GET("USING_SYSTEM_KRB5"):
127 # When both HEIMDAL_KRB5_CONFIG and KRB5_CONFIG are set and not equal,
128 # it means one is Heimdal-specific (krb5-config.heimdal, for example)
129 # and there is system heimdal
130 bld.PROCESS_SEPARATE_RULE('system_heimdal')
131 else:
132 bld.PROCESS_SEPARATE_RULE('embedded_heimdal')
133 else:
134 bld.PROCESS_SEPARATE_RULE('system_mitkrb5')
136 bld.RECURSE('libcli/smbreadline')
137 bld.RECURSE('codepages')
138 if bld.AD_DC_BUILD_IS_ENABLED():
139 bld.RECURSE('source4/setup')
140 bld.RECURSE('source4/scripting')
141 bld.RECURSE('pidl')
142 bld.RECURSE('lib')
143 bld.RECURSE('libds/common')
144 bld.RECURSE('source3')
145 bld.RECURSE('dfs_server')
146 bld.RECURSE('file_server')
147 bld.RECURSE('lib/krb5_wrap')
149 bld.RECURSE('testsuite/headers')
151 bld.SYMBOL_CHECK()
152 bld.DUP_SYMBOL_CHECK()