summaryrefslogtreecommitdiffstats
path: root/wscript_build
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-02-03 13:08:37 +1100
committerAndrew Tridgell <tridge@samba.org>2011-02-07 13:22:00 +1100
commit72e1a39effba7dca8d437c8cad009be6fb2c4506 (patch)
treeda9d5e6dcd1f09411548ecaf0a99cd324bc4c9e2 /wscript_build
parent9f9b363447f0f357ea610b7ac23cb3a9b53da96d (diff)
downloadsamba-72e1a39effba7dca8d437c8cad009be6fb2c4506.tar.gz
samba-72e1a39effba7dca8d437c8cad009be6fb2c4506.tar.xz
samba-72e1a39effba7dca8d437c8cad009be6fb2c4506.zip
waf: added top level build rules
This adds build rules for the top level directory based on the ones from source4. This is an intermediate step towards a combined top level build which will build both the Samba3 (bin/smbd, bin/nmbd etc) and Samba4 (bin/samba) binaries from a single build Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'wscript_build')
-rw-r--r--wscript_build106
1 files changed, 106 insertions, 0 deletions
diff --git a/wscript_build b/wscript_build
new file mode 100644
index 00000000000..de6ea986855
--- /dev/null
+++ b/wscript_build
@@ -0,0 +1,106 @@
+#!/usr/bin/env python
+
+# top level waf build script for samba4
+
+import os
+srcdir = "."
+
+import samba_version
+
+# 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()
+
+samba_version.load_version(bld.env)
+bld.SAMBA_MKVERSION('version.h')
+
+# bld.ENABLE_MAGIC_ORDERING()
+
+bld.RECURSE('lib/replace')
+bld.RECURSE('lib/talloc')
+bld.RECURSE('lib/tdb')
+bld.RECURSE('lib/tevent')
+bld.RECURSE('source4/lib/ldb')
+bld.RECURSE('source4/dynconfig')
+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')
+bld.RECURSE('lib/iniparser/src')
+bld.RECURSE('nsswitch')
+bld.RECURSE('nsswitch/libwbclient')
+bld.RECURSE('source4/lib/samba3')
+bld.RECURSE('source4/lib/socket')
+bld.RECURSE('source4/lib/ldb-samba')
+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')
+bld.RECURSE('source4/lib/stream')
+bld.RECURSE('lib/util')
+bld.RECURSE('lib/tdr')
+bld.RECURSE('lib/tsocket')
+bld.RECURSE('lib/crypto')
+bld.RECURSE('lib/torture')
+bld.RECURSE('lib/zlib')
+bld.RECURSE('source4/lib')
+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/samba_tool')
+bld.RECURSE('source4/utils')
+bld.RECURSE('source4/ntvfs')
+bld.RECURSE('source4/ntptr')
+bld.RECURSE('source4/torture')
+bld.RECURSE('librpc')
+bld.RECURSE('source4/client')
+bld.RECURSE('source4/libcli')
+bld.RECURSE('libcli/smb')
+bld.RECURSE('libcli/cldap')
+bld.RECURSE('lib/subunit/c')
+bld.RECURSE('source4/kdc')
+bld.RECURSE('lib/smbconf')
+bld.RECURSE('lib/async_req')
+bld.RECURSE('libcli/security')
+bld.RECURSE('libcli/ldap')
+bld.RECURSE('libcli/nbt')
+bld.RECURSE('libcli/netlogon')
+bld.RECURSE('libcli/auth')
+bld.RECURSE('libcli/drsuapi')
+bld.RECURSE('libcli/echo')
+bld.RECURSE('libcli/samsync')
+bld.RECURSE('source4/lib/policy')
+bld.RECURSE('libcli/named_pipe_auth')
+bld.RECURSE('source4/heimdal_build')
+bld.RECURSE('libcli/smbreadline')
+bld.RECURSE('codepages')
+bld.RECURSE('source4/setup')
+bld.RECURSE('source4/scripting')
+bld.RECURSE('pidl')
+bld.RECURSE('lib')
+
+# install some extra empty directories
+bld.INSTALL_DIRS("", "${LOCKDIR} ${SYSCONFDIR} ${LOCKDIR} ${PIDDIR} ${LOCALSTATEDIR}/lib ${PRIVATEDIR}/smbd.tmp/messaging")
+
+bld.SYMBOL_CHECK()