talloc: release 2.4.2
[Samba.git] / wscript_build
blobdfdffb34c1f52d8b734874376d42cc3e95e26468
1 #!/usr/bin/env python
3 # top level waf build script for samba4
5 srcdir = "."
7 import samba_version
9 bld.env.suffix3 = "3"
10 bld.env.suffix4 = "4"
12 # create separate build groups for building the asn1 and et compiler, then
13 # building the C from ASN1 and IDL, and finally the main build process
14 bld.SETUP_BUILD_GROUPS()
15 bld.AUTOCLEANUP_STALE_FILES()
17 # enable building of public headers in the build tree
18 bld.env.build_public_headers = 'include/public'
20 # these are includes which appear in public headers, but with #ifdef conditional
21 # compilation, so they are safe
22 bld.env.public_headers_skip = ['lib/param/param_proto.h', 'lib/param/param_functions.h']
24 version=samba_version.load_version(bld.env, is_install=bld.is_install)
25 bld.SAMBA_MKVERSION('version.h')
27 # bld.ENABLE_MAGIC_ORDERING()
29 bld.env.ABS_TOP_SRCDIR = bld.srcnode.abspath() + '/docs-xml'
30 bld.env.ABS_TOP_BUILDDIR = bld.bldnode.abspath() + '/docs-xml'
31 bld.CONFIGURE_FILE('docs-xml/build/catalog.xml',
32 ABS_TOP_BUILDDIR = bld.env.ABS_TOP_BUILDDIR,
33 ABS_TOP_SRCDIR=bld.env.ABS_TOP_SRCDIR)
34 bld.env.DOC_VERSION=version.STRING
35 bld.CONFIGURE_FILE('docs-xml/build/DTD/samba.build.version',
36 DOC_VERSION=bld.env.DOC_VERSION)
37 bld.RECURSE('docs-xml')
39 # This needs to be earlier than anything containing IDL
40 # That in turn allows the build rules for fuzz_ndr_X to be
41 # near the code
42 bld.RECURSE('lib/fuzzing')
44 bld.RECURSE('lib/replace')
45 bld.RECURSE('lib/socket')
46 bld.RECURSE('lib/talloc')
47 bld.RECURSE('lib/tevent')
48 bld.RECURSE('lib/texpect')
49 bld.RECURSE('lib/addns')
50 bld.RECURSE('lib/ldb')
51 bld.RECURSE('lib/param')
52 bld.RECURSE('lib/printer_driver')
53 bld.RECURSE('lib/audit_logging')
54 bld.RECURSE('lib/messaging')
55 bld.RECURSE('dynconfig')
56 bld.RECURSE('lib/util/charset')
57 bld.RECURSE('python')
58 bld.RECURSE('source4/param')
59 bld.RECURSE('source4/librpc')
60 bld.RECURSE('source4/dsdb')
61 bld.RECURSE('source4/samba')
62 bld.RECURSE('source4/cluster')
63 bld.RECURSE('source4/libnet')
64 bld.RECURSE('source4/auth')
65 bld.RECURSE('auth')
66 bld.RECURSE('auth/kerberos')
67 bld.RECURSE('nsswitch')
68 bld.RECURSE('nsswitch/libwbclient')
69 bld.RECURSE('source4/lib/samba3')
70 bld.RECURSE('source4/lib/socket')
71 bld.RECURSE('lib/ldb-samba')
72 bld.RECURSE('source4/lib/tls')
73 bld.RECURSE('source4/lib/registry')
74 bld.RECURSE('source4/lib/messaging')
75 bld.RECURSE('source4/lib/events')
76 if bld.CHECK_FOR_THIRD_PARTY():
77 bld.RECURSE('third_party')
78 bld.RECURSE('source4/lib/stream')
79 bld.RECURSE('lib/afs')
80 bld.RECURSE('lib/util')
81 bld.RECURSE('lib/tdb_wrap')
82 bld.RECURSE('lib/tdr')
83 bld.RECURSE('lib/tsocket')
84 bld.RECURSE('lib/crypto')
85 bld.RECURSE('lib/torture')
86 bld.RECURSE('libgpo')
87 bld.RECURSE('source4/dns_server')
88 bld.RECURSE('source4/echo_server')
89 bld.RECURSE('source4/smb_server')
90 bld.RECURSE('source4/rpc_server')
91 bld.RECURSE('source4/ldap_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/oLschema2ldif')
98 bld.RECURSE('source4/ntvfs')
99 bld.RECURSE('source4/torture')
100 bld.RECURSE('librpc')
101 bld.RECURSE('source4')
102 bld.RECURSE('source4/libcli')
103 bld.RECURSE('libcli/smb')
104 bld.RECURSE('libcli/util')
105 bld.RECURSE('libcli/cldap')
106 bld.RECURSE('libcli/wsp')
107 bld.RECURSE('lib/smbconf')
108 bld.RECURSE('lib/async_req')
109 bld.RECURSE('lib/dbwrap')
110 bld.RECURSE('libcli/security')
111 bld.RECURSE('libcli/ldap')
112 bld.RECURSE('libcli/nbt')
113 bld.RECURSE('libcli/netlogon')
114 bld.RECURSE('libcli/auth')
115 bld.RECURSE('libcli/lsarpc')
116 bld.RECURSE('libcli/drsuapi')
117 bld.RECURSE('libcli/echo')
118 bld.RECURSE('libcli/dns')
119 bld.RECURSE('libcli/samsync')
120 bld.RECURSE('libcli/registry')
121 bld.RECURSE('libcli/http')
122 bld.RECURSE('lib/mscat')
123 bld.RECURSE('lib/cmdline')
124 bld.RECURSE('source4/lib/policy')
125 bld.RECURSE('libcli/named_pipe_auth')
126 if bld.CONFIG_GET('ENABLE_SELFTEST'):
127 bld.RECURSE('testsuite/unittests')
128 bld.RECURSE('libcli/tstream_binding_handle')
130 if bld.CONFIG_GET('KRB5_VENDOR') in (None, 'heimdal'):
131 if bld.CONFIG_GET("HEIMDAL_KRB5_CONFIG") and bld.CONFIG_GET("USING_SYSTEM_KRB5"):
132 # When both HEIMDAL_KRB5_CONFIG and KRB5_CONFIG are set and not equal,
133 # it means one is Heimdal-specific (krb5-config.heimdal, for example)
134 # and there is system heimdal
135 bld.PROCESS_SEPARATE_RULE('system_heimdal')
136 else:
137 bld.PROCESS_SEPARATE_RULE('embedded_heimdal')
138 else:
139 bld.PROCESS_SEPARATE_RULE('system_mitkrb5')
141 bld.RECURSE('libcli/smbreadline')
142 if bld.AD_DC_BUILD_IS_ENABLED():
143 bld.RECURSE('source4/setup')
144 bld.RECURSE('source4/kdc')
145 if bld.env.with_ctdb:
146 bld.RECURSE('ctdb')
147 bld.RECURSE('source4/scripting')
148 bld.RECURSE('pidl')
149 bld.RECURSE('lib')
150 bld.RECURSE('libds/common')
151 bld.RECURSE('lib/pthreadpool')
152 bld.RECURSE('source3')
153 bld.RECURSE('dfs_server')
154 bld.RECURSE('file_server')
155 bld.RECURSE('lib/krb5_wrap')
156 bld.RECURSE('packaging')
158 bld.RECURSE('testsuite/headers')
160 bld.SYMBOL_CHECK()
161 bld.DUP_SYMBOL_CHECK()