2011-02-03 05:08:37 +03:00
#!/usr/bin/env python
# top level waf build script for samba4
import os
srcdir = "."
import samba_version
2011-02-21 03:18:21 +03:00
bld.env.suffix3 = "3"
2012-05-30 15:01:18 +04:00
bld.env.suffix4 = "4"
2011-02-21 03:18:21 +03:00
2011-02-03 05:08:37 +03:00
# create separate build groups for building the asn1 and et compiler, then
# building the C from ASN1 and IDL, and finally the main build process
bld.SETUP_BUILD_GROUPS()
bld.AUTOCLEANUP_STALE_FILES()
2011-02-28 07:48:25 +03:00
# enable building of public headers in the build tree
bld.env.build_public_headers = 'include/public'
2011-03-03 08:34:57 +03:00
# these are includes which appear in public headers, but with #ifdef conditional
# compilation, so they are safe
2012-06-15 06:34:28 +04:00
bld.env.public_headers_skip = ['lib/param/param_proto.h']
2011-03-03 08:34:57 +03:00
2011-06-17 09:21:39 +04:00
samba_version.load_version(bld.env, is_install=bld.is_install)
2011-02-03 05:08:37 +03:00
bld.SAMBA_MKVERSION('version.h')
# bld.ENABLE_MAGIC_ORDERING()
bld.RECURSE('lib/replace')
2011-05-02 07:02:17 +04:00
bld.RECURSE('lib/socket')
2011-02-03 05:08:37 +03:00
bld.RECURSE('lib/talloc')
bld.RECURSE('lib/tevent')
2011-09-01 06:45:38 +04:00
bld.RECURSE('lib/addns')
2011-06-20 11:24:15 +04:00
bld.RECURSE('lib/ccan')
2011-06-20 11:28:15 +04:00
bld.RECURSE('lib/tdb_compat')
2012-06-21 18:44:55 +04:00
if not bld.env.disable_ntdb:
bld.RECURSE('lib/ntdb')
2011-07-05 04:01:32 +04:00
bld.RECURSE('lib/ldb')
2011-07-08 03:19:43 +04:00
bld.RECURSE('lib/param')
2011-06-21 06:48:22 +04:00
bld.RECURSE('dynconfig')
2011-02-03 05:08:37 +03:00
bld.RECURSE('lib/util/charset')
bld.RECURSE('source4/scripting/python')
bld.RECURSE('source4/param')
bld.RECURSE('source4/librpc')
bld.RECURSE('source4/dsdb')
bld.RECURSE('source4/smbd')
bld.RECURSE('source4/cluster')
bld.RECURSE('source4/smbd')
bld.RECURSE('source4/libnet')
bld.RECURSE('source4/auth')
2011-02-09 08:05:54 +03:00
bld.RECURSE('auth')
2011-04-16 09:41:50 +04:00
bld.RECURSE('auth/kerberos')
2011-02-03 05:08:37 +03:00
bld.RECURSE('nsswitch')
bld.RECURSE('nsswitch/libwbclient')
bld.RECURSE('source4/lib/samba3')
bld.RECURSE('source4/lib/socket')
2011-07-05 04:01:32 +04:00
bld.RECURSE('lib/ldb-samba')
2011-02-03 05:08:37 +03:00
bld.RECURSE('source4/lib/tls')
bld.RECURSE('source4/lib/registry')
bld.RECURSE('source4/lib/messaging')
bld.RECURSE('source4/lib/events')
bld.RECURSE('source4/lib/cmdline')
bld.RECURSE('lib/socket_wrapper')
bld.RECURSE('lib/nss_wrapper')
bld.RECURSE('lib/uid_wrapper')
bld.RECURSE('lib/popt')
2012-05-09 17:33:04 +04:00
bld.RECURSE('lib/iniparser/src')
2011-02-03 05:08:37 +03:00
bld.RECURSE('source4/lib/stream')
bld.RECURSE('lib/util')
2012-03-11 00:33:11 +04:00
bld.RECURSE('lib/tdb_wrap')
2011-02-03 05:08:37 +03:00
bld.RECURSE('lib/tdr')
bld.RECURSE('lib/tsocket')
bld.RECURSE('lib/crypto')
bld.RECURSE('lib/torture')
bld.RECURSE('lib/zlib')
bld.RECURSE('source4/lib/com')
bld.RECURSE('source4/dns_server')
bld.RECURSE('source4/echo_server')
bld.RECURSE('source4/smb_server')
bld.RECURSE('source4/rpc_server')
bld.RECURSE('source4/ldap_server')
bld.RECURSE('source4/web_server')
bld.RECURSE('source4/winbind')
bld.RECURSE('source4/nbt_server')
bld.RECURSE('source4/wrepl_server')
bld.RECURSE('source4/cldap_server')
bld.RECURSE('source4/ntp_signd')
bld.RECURSE('source4/utils')
bld.RECURSE('source4/ntvfs')
bld.RECURSE('source4/ntptr')
bld.RECURSE('source4/torture')
bld.RECURSE('librpc')
2011-09-15 14:52:49 +04:00
bld.RECURSE('source4')
2011-02-03 05:08:37 +03:00
bld.RECURSE('source4/libcli')
bld.RECURSE('libcli/smb')
2011-04-29 10:57:41 +04:00
bld.RECURSE('libcli/util')
2011-02-03 05:08:37 +03:00
bld.RECURSE('libcli/cldap')
bld.RECURSE('lib/subunit/c')
bld.RECURSE('lib/smbconf')
bld.RECURSE('lib/async_req')
2012-05-12 00:11:42 +04:00
bld.RECURSE('lib/dbwrap')
2011-02-03 05:08:37 +03:00
bld.RECURSE('libcli/security')
bld.RECURSE('libcli/ldap')
bld.RECURSE('libcli/nbt')
bld.RECURSE('libcli/netlogon')
bld.RECURSE('libcli/auth')
2011-12-07 09:03:04 +04:00
bld.RECURSE('libcli/lsarpc')
2011-02-03 05:08:37 +03:00
bld.RECURSE('libcli/drsuapi')
bld.RECURSE('libcli/echo')
2012-03-11 13:13:51 +04:00
bld.RECURSE('libcli/dns')
2011-02-03 05:08:37 +03:00
bld.RECURSE('libcli/samsync')
2011-02-24 05:01:27 +03:00
bld.RECURSE('libcli/registry')
2011-02-03 05:08:37 +03:00
bld.RECURSE('source4/lib/policy')
bld.RECURSE('libcli/named_pipe_auth')
2012-04-13 18:53:04 +04:00
2012-04-20 13:53:11 +04:00
if bld.CONFIG_GET('KRB5_VENDOR') in (None, 'heimdal'):
if bld.CONFIG_GET("HEIMDAL_KRB5_CONFIG") and bld.CONFIG_GET("USING_SYSTEM_KRB5"):
# When both HEIMDAL_KRB5_CONFIG and KRB5_CONFIG are set and not equal,
# it means one is Heimdal-specific (krb5-config.heimdal, for example)
# and there is system heimdal
bld.PROCESS_SEPARATE_RULE('system_heimdal')
2012-04-13 18:53:04 +04:00
else:
2012-04-20 13:53:11 +04:00
bld.PROCESS_SEPARATE_RULE('embedded_heimdal')
2012-04-13 18:53:04 +04:00
else:
2012-04-20 13:53:11 +04:00
bld.PROCESS_SEPARATE_RULE('system_mitkrb5')
2012-04-13 18:53:04 +04:00
2011-02-03 05:08:37 +03:00
bld.RECURSE('libcli/smbreadline')
bld.RECURSE('codepages')
2012-05-21 13:45:12 +04:00
if bld.AD_DC_BUILD_IS_ENABLED():
bld.RECURSE('source4/setup')
2011-02-03 05:08:37 +03:00
bld.RECURSE('source4/scripting')
bld.RECURSE('pidl')
bld.RECURSE('lib')
2011-02-24 03:23:53 +03:00
bld.RECURSE('libds/common')
2011-05-09 13:00:18 +04:00
bld.RECURSE('source3')
2011-10-04 15:08:50 +04:00
bld.RECURSE('dfs_server')
2011-05-03 03:35:07 +04:00
bld.RECURSE('file_server')
2012-03-26 22:47:42 +04:00
bld.RECURSE('utils')
2012-04-22 01:26:18 +04:00
bld.RECURSE('lib/krb5_wrap')
2011-02-03 05:08:37 +03:00
2011-02-28 10:57:25 +03:00
bld.RECURSE('testsuite/headers')
2011-02-03 05:08:37 +03:00
bld.SYMBOL_CHECK()
2011-09-08 13:07:47 +04:00
bld.DUP_SYMBOL_CHECK()
2012-09-06 14:14:46 +04:00
2012-09-17 14:07:26 +04:00
bld.env.ABS_TOP_SRCDIR = bld.srcnode.abspath() + '/docs-xml'
bld.env.ABS_TOP_BUILDDIR = bld.srcnode.abspath() + '/bin/default/docs-xml'
2012-09-06 14:14:46 +04:00
bld.CONFIGURE_FILE('docs-xml/build/catalog.xml',
2012-09-17 14:07:26 +04:00
ABS_TOP_BUILDDIR = bld.env.ABS_TOP_BUILDDIR,
ABS_TOP_SRCDIR=bld.env.ABS_TOP_SRCDIR)
2012-09-06 18:10:08 +04:00
bld.RECURSE('docs-xml')