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