| 1 |
#!/usr/bin/env python |
| 2 |
|
| 3 |
# top level waf build script for samba4 |
| 4 |
|
| 5 |
srcdir = "." |
| 6 |
|
| 7 |
import samba_version |
| 8 |
|
| 9 |
bld.env.suffix3 = "3" |
| 10 |
bld.env.suffix4 = "4" |
| 11 |
|
| 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() |
| 16 |
|
| 17 |
# enable building of public headers in the build tree |
| 18 |
bld.env.build_public_headers = 'include/public' |
| 19 |
|
| 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'] |
| 23 |
|
| 24 |
version=samba_version.load_version(bld.env, is_install=bld.is_install) |
| 25 |
bld.SAMBA_MKVERSION('version.h') |
| 26 |
|
| 27 |
# bld.ENABLE_MAGIC_ORDERING() |
| 28 |
|
| 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') |
| 38 |
|
| 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') |
| 43 |
|
| 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/tdb') |
| 51 |
bld.RECURSE('lib/ldb') |
| 52 |
bld.RECURSE('lib/param') |
| 53 |
bld.RECURSE('lib/printer_driver') |
| 54 |
bld.RECURSE('lib/audit_logging') |
| 55 |
bld.RECURSE('lib/messaging') |
| 56 |
bld.RECURSE('dynconfig') |
| 57 |
bld.RECURSE('lib/util/charset') |
| 58 |
bld.RECURSE('python') |
| 59 |
bld.RECURSE('source4/param') |
| 60 |
bld.RECURSE('source4/librpc') |
| 61 |
bld.RECURSE('source4/dsdb') |
| 62 |
bld.RECURSE('source4/samba') |
| 63 |
bld.RECURSE('source4/cluster') |
| 64 |
bld.RECURSE('source4/libnet') |
| 65 |
bld.RECURSE('source4/auth') |
| 66 |
bld.RECURSE('auth') |
| 67 |
bld.RECURSE('auth/kerberos') |
| 68 |
bld.RECURSE('nsswitch') |
| 69 |
bld.RECURSE('nsswitch/libwbclient') |
| 70 |
bld.RECURSE('source4/lib/samba3') |
| 71 |
bld.RECURSE('source4/lib/socket') |
| 72 |
bld.RECURSE('lib/ldb-samba') |
| 73 |
bld.RECURSE('source4/lib/tls') |
| 74 |
bld.RECURSE('source4/lib/registry') |
| 75 |
bld.RECURSE('source4/lib/messaging') |
| 76 |
bld.RECURSE('source4/lib/events') |
| 77 |
if bld.CHECK_FOR_THIRD_PARTY(): |
| 78 |
bld.RECURSE('third_party') |
| 79 |
bld.RECURSE('source4/lib/stream') |
| 80 |
bld.RECURSE('lib/afs') |
| 81 |
bld.RECURSE('lib/util') |
| 82 |
bld.RECURSE('lib/tdb_wrap') |
| 83 |
bld.RECURSE('lib/tdr') |
| 84 |
bld.RECURSE('lib/tsocket') |
| 85 |
bld.RECURSE('lib/crypto') |
| 86 |
bld.RECURSE('lib/torture') |
| 87 |
bld.RECURSE('libgpo') |
| 88 |
bld.RECURSE('source4/dns_server') |
| 89 |
bld.RECURSE('source4/echo_server') |
| 90 |
bld.RECURSE('source4/smb_server') |
| 91 |
bld.RECURSE('source4/rpc_server') |
| 92 |
bld.RECURSE('source4/ldap_server') |
| 93 |
bld.RECURSE('source4/winbind') |
| 94 |
bld.RECURSE('source4/nbt_server') |
| 95 |
bld.RECURSE('source4/wrepl_server') |
| 96 |
bld.RECURSE('source4/cldap_server') |
| 97 |
bld.RECURSE('source4/ntp_signd') |
| 98 |
bld.RECURSE('source4/utils/oLschema2ldif') |
| 99 |
bld.RECURSE('source4/ntvfs') |
| 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('libcli/wsp') |
| 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('libcli/http') |
| 123 |
bld.RECURSE('lib/mscat') |
| 124 |
bld.RECURSE('lib/cmdline') |
| 125 |
bld.RECURSE('source4/lib/policy') |
| 126 |
bld.RECURSE('libcli/named_pipe_auth') |
| 127 |
if bld.CONFIG_GET('ENABLE_SELFTEST'): |
| 128 |
bld.RECURSE('testsuite/unittests') |
| 129 |
bld.RECURSE('libcli/tstream_binding_handle') |
| 130 |
|
| 131 |
if bld.CONFIG_GET('KRB5_VENDOR') in (None, 'heimdal'): |
| 132 |
if bld.CONFIG_GET("HEIMDAL_KRB5_CONFIG") and bld.CONFIG_GET("USING_SYSTEM_KRB5"): |
| 133 |
# When both HEIMDAL_KRB5_CONFIG and KRB5_CONFIG are set and not equal, |
| 134 |
# it means one is Heimdal-specific (krb5-config.heimdal, for example) |
| 135 |
# and there is system heimdal |
| 136 |
bld.PROCESS_SEPARATE_RULE('system_heimdal') |
| 137 |
else: |
| 138 |
bld.PROCESS_SEPARATE_RULE('embedded_heimdal') |
| 139 |
else: |
| 140 |
bld.PROCESS_SEPARATE_RULE('system_mitkrb5') |
| 141 |
|
| 142 |
bld.RECURSE('libcli/smbreadline') |
| 143 |
if bld.AD_DC_BUILD_IS_ENABLED(): |
| 144 |
bld.RECURSE('source4/setup') |
| 145 |
bld.RECURSE('source4/kdc') |
| 146 |
if bld.env.with_ctdb: |
| 147 |
bld.RECURSE('ctdb') |
| 148 |
bld.RECURSE('source4/scripting') |
| 149 |
bld.RECURSE('pidl') |
| 150 |
bld.RECURSE('lib') |
| 151 |
bld.RECURSE('libds/common') |
| 152 |
bld.RECURSE('lib/pthreadpool') |
| 153 |
bld.RECURSE('source3') |
| 154 |
bld.RECURSE('dfs_server') |
| 155 |
bld.RECURSE('file_server') |
| 156 |
bld.RECURSE('lib/krb5_wrap') |
| 157 |
bld.RECURSE('packaging') |
| 158 |
bld.RECURSE('rust') |
| 159 |
|
| 160 |
bld.RECURSE('testsuite/headers') |
| 161 |
|
| 162 |
bld.SYMBOL_CHECK() |
| 163 |
bld.DUP_SYMBOL_CHECK() |
| 164 |
|