build: optionally enable builtin popt
[nivanova/samba-autobuild/.git] / source4 / wscript_build
1 # top level waf build script for samba4
2
3 import os
4 srcdir = ".."
5
6 # create separate build groups for building the asn1 and et compiler, then
7 # building the C from ASN1 and IDL, and finally the main build process
8 bld.SETUP_BUILD_GROUPS()
9
10 bld.SAMBA_MKVERSION('version.h')
11
12 # bld.ENABLE_MAGIC_ORDERING()
13
14 # we don't always use consistent names for our subsystems.
15 # this sets up some aliases
16 bld.TARGET_ALIAS('attr', 'XATTR')
17 bld.TARGET_ALIAS('execinfo', 'EXECINFO')
18 bld.TARGET_ALIAS('tevent', 'LIBTEVENT_EXT')
19 bld.TARGET_ALIAS('z', 'ZLIB')
20 bld.TARGET_ALIAS('pam', 'PAM')
21 bld.TARGET_ALIAS('sasl2', 'SASL')
22 bld.TARGET_ALIAS('crypt', 'CRYPT')
23 bld.TARGET_ALIAS('RPC_NDR_SRVSVC', 'NDR_SRVSVC')
24 bld.TARGET_ALIAS('RPC_NDR_MGMT', 'dcerpc_mgmt')
25
26 # missing subsystems - need looking at
27 bld.SAMBA_SUBSYSTEM('pyldb_util', '')
28 bld.SAMBA_SUBSYSTEM('TORTURE_LDB_MODULE', '')
29 bld.SAMBA_SUBSYSTEM('INTL', '')
30 bld.SAMBA_SUBSYSTEM('NETAPI', '')
31 bld.SAMBA_SUBSYSTEM('HDB_LDB', '')
32 bld.SAMBA_SUBSYSTEM('OPENPTY', '')
33 bld.SAMBA_SUBSYSTEM('SMBCLIENT', '')
34 bld.SAMBA_SUBSYSTEM('BLKID', '')
35 bld.SAMBA_SUBSYSTEM('smbcalls', '')
36 bld.SAMBA_SUBSYSTEM('SETPROCTITLE', '')
37 bld.SAMBA_SUBSYSTEM('ICONV', '')
38 bld.SAMBA_SUBSYSTEM('DCOM_PROXY_DCOM', '')
39
40 # subsystems that are confirmed to be missing
41 bld.SAMBA_SUBSYSTEM('NDR_MISC', '')
42 bld.SAMBA_SUBSYSTEM('NDR_SAMR', '')
43 bld.SAMBA_SUBSYSTEM('SCHANNELDB', '')
44
45
46 bld.BUILD_SUBDIR('../lib/replace')
47 bld.BUILD_SUBDIR('../lib/talloc')
48 bld.BUILD_SUBDIR('../lib/tdb')
49 bld.BUILD_SUBDIR('../lib/tevent')
50 bld.BUILD_SUBDIR('lib/ldb')
51 bld.BUILD_SUBDIR('dynconfig')
52 bld.BUILD_SUBDIR('../lib/util/charset')
53 bld.BUILD_SUBDIR('scripting/python')
54 bld.BUILD_SUBDIR('../lib/subunit/python')
55 bld.BUILD_SUBDIR('param')
56 bld.BUILD_SUBDIR('librpc')
57 bld.BUILD_SUBDIR('dsdb')
58 bld.BUILD_SUBDIR('smbd')
59 bld.BUILD_SUBDIR('cluster')
60 bld.BUILD_SUBDIR('smbd')
61 bld.BUILD_SUBDIR('libnet')
62 bld.BUILD_SUBDIR('auth')
63 bld.BUILD_SUBDIR('../nsswitch')
64 bld.BUILD_SUBDIR('../nsswitch/libwbclient')
65 bld.BUILD_SUBDIR('lib/samba3')
66 bld.BUILD_SUBDIR('lib/socket')
67 bld.BUILD_SUBDIR('lib/ldb-samba')
68 bld.BUILD_SUBDIR('lib/tls')
69 bld.BUILD_SUBDIR('lib/registry')
70 bld.BUILD_SUBDIR('lib/messaging')
71 bld.BUILD_SUBDIR('lib/events')
72 bld.BUILD_SUBDIR('lib/cmdline')
73 bld.BUILD_SUBDIR('../lib/socket_wrapper')
74 bld.BUILD_SUBDIR('../lib/nss_wrapper')
75 bld.BUILD_SUBDIR('../lib/uid_wrapper')
76 bld.BUILD_SUBDIR('../lib/popt')
77 bld.BUILD_SUBDIR('lib/stream')
78 bld.BUILD_SUBDIR('../lib/util')
79 bld.BUILD_SUBDIR('../lib/tdr')
80 bld.BUILD_SUBDIR('../lib/tsocket')
81 bld.BUILD_SUBDIR('../lib/crypto')
82 bld.BUILD_SUBDIR('../lib/torture')
83 bld.BUILD_SUBDIR('lib')
84 bld.BUILD_SUBDIR('lib/com')
85 bld.BUILD_SUBDIR('smb_server')
86 bld.BUILD_SUBDIR('rpc_server')
87 bld.BUILD_SUBDIR('ldap_server')
88 bld.BUILD_SUBDIR('web_server')
89 bld.BUILD_SUBDIR('winbind')
90 bld.BUILD_SUBDIR('nbt_server')
91 bld.BUILD_SUBDIR('wrepl_server')
92 bld.BUILD_SUBDIR('cldap_server')
93 bld.BUILD_SUBDIR('ntp_signd')
94 bld.BUILD_SUBDIR('utils/net')
95 bld.BUILD_SUBDIR('utils')
96 bld.BUILD_SUBDIR('ntvfs')
97 bld.BUILD_SUBDIR('ntptr')
98 bld.BUILD_SUBDIR('torture')
99 bld.BUILD_SUBDIR('../librpc')
100 bld.BUILD_SUBDIR('client')
101 bld.BUILD_SUBDIR('libcli')
102 bld.BUILD_SUBDIR('../libcli/smb')
103 bld.BUILD_SUBDIR('../libcli/cldap')
104 bld.BUILD_SUBDIR('kdc')
105 bld.BUILD_SUBDIR('../lib/smbconf')
106 bld.BUILD_SUBDIR('../lib/async_req')
107 bld.BUILD_SUBDIR('../libcli/security')
108 bld.BUILD_SUBDIR('../libcli/ldap')
109 bld.BUILD_SUBDIR('../libcli/nbt')
110 bld.BUILD_SUBDIR('../libcli/auth')
111 bld.BUILD_SUBDIR('../libcli/drsuapi')
112 bld.BUILD_SUBDIR('../libcli/samsync')
113 bld.BUILD_SUBDIR('../libgpo')
114 bld.BUILD_SUBDIR('../libcli/named_pipe_auth')
115 bld.BUILD_SUBDIR('heimdal_build')
116 bld.BUILD_SUBDIR('lib/smbreadline')
117
118 bld.ENFORCE_GROUP_ORDERING()
119