3 # top level waf build script for samba4
13 # create separate build groups for building the asn1 and et compiler, then
14 # building the C from ASN1 and IDL, and finally the main build process
15 bld
.SETUP_BUILD_GROUPS()
16 bld
.AUTOCLEANUP_STALE_FILES()
18 # enable building of public headers in the build tree
19 bld
.env
.build_public_headers
= 'include/public'
21 # these are includes which appear in public headers, but with #ifdef conditional
22 # compilation, so they are safe
23 bld
.env
.public_headers_skip
= ['lib/param/param_proto.h']
25 samba_version
.load_version(bld
.env
, is_install
=bld
.is_install
)
26 bld
.SAMBA_MKVERSION('version.h')
28 # bld.ENABLE_MAGIC_ORDERING()
30 bld
.RECURSE('lib/replace')
31 bld
.RECURSE('lib/socket')
32 bld
.RECURSE('lib/talloc')
33 bld
.RECURSE('lib/tevent')
34 bld
.RECURSE('lib/addns')
35 bld
.RECURSE('lib/ccan')
36 bld
.RECURSE('lib/tdb_compat')
37 if not bld
.env
.disable_ntdb
:
38 bld
.RECURSE('lib/ntdb')
39 bld
.RECURSE('lib/ldb')
40 bld
.RECURSE('lib/param')
41 bld
.RECURSE('dynconfig')
42 bld
.RECURSE('lib/util/charset')
43 bld
.RECURSE('source4/scripting/python')
44 bld
.RECURSE('source4/param')
45 bld
.RECURSE('source4/librpc')
46 bld
.RECURSE('source4/dsdb')
47 bld
.RECURSE('source4/smbd')
48 bld
.RECURSE('source4/cluster')
49 bld
.RECURSE('source4/smbd')
50 bld
.RECURSE('source4/libnet')
51 bld
.RECURSE('source4/auth')
53 bld
.RECURSE('auth/kerberos')
54 bld
.RECURSE('nsswitch')
55 bld
.RECURSE('nsswitch/libwbclient')
56 bld
.RECURSE('source4/lib/samba3')
57 bld
.RECURSE('source4/lib/socket')
58 bld
.RECURSE('lib/ldb-samba')
59 bld
.RECURSE('source4/lib/tls')
60 bld
.RECURSE('source4/lib/registry')
61 bld
.RECURSE('source4/lib/messaging')
62 bld
.RECURSE('source4/lib/events')
63 bld
.RECURSE('source4/lib/cmdline')
64 bld
.RECURSE('lib/socket_wrapper')
65 bld
.RECURSE('lib/nss_wrapper')
66 bld
.RECURSE('lib/uid_wrapper')
67 bld
.RECURSE('lib/popt')
68 bld
.RECURSE('lib/iniparser/src')
69 bld
.RECURSE('source4/lib/stream')
70 bld
.RECURSE('lib/util')
71 bld
.RECURSE('lib/tdb_wrap')
72 bld
.RECURSE('lib/tdr')
73 bld
.RECURSE('lib/tsocket')
74 bld
.RECURSE('lib/crypto')
75 bld
.RECURSE('lib/torture')
76 bld
.RECURSE('lib/zlib')
77 bld
.RECURSE('source4/lib/com')
78 bld
.RECURSE('source4/dns_server')
79 bld
.RECURSE('source4/echo_server')
80 bld
.RECURSE('source4/smb_server')
81 bld
.RECURSE('source4/rpc_server')
82 bld
.RECURSE('source4/ldap_server')
83 bld
.RECURSE('source4/web_server')
84 bld
.RECURSE('source4/winbind')
85 bld
.RECURSE('source4/nbt_server')
86 bld
.RECURSE('source4/wrepl_server')
87 bld
.RECURSE('source4/cldap_server')
88 bld
.RECURSE('source4/ntp_signd')
89 bld
.RECURSE('source4/utils')
90 bld
.RECURSE('source4/ntvfs')
91 bld
.RECURSE('source4/ntptr')
92 bld
.RECURSE('source4/torture')
94 bld
.RECURSE('source4')
95 bld
.RECURSE('source4/libcli')
96 bld
.RECURSE('libcli/smb')
97 bld
.RECURSE('libcli/util')
98 bld
.RECURSE('libcli/cldap')
99 bld
.RECURSE('lib/subunit/c')
100 bld
.RECURSE('lib/smbconf')
101 bld
.RECURSE('lib/async_req')
102 bld
.RECURSE('lib/dbwrap')
103 bld
.RECURSE('libcli/security')
104 bld
.RECURSE('libcli/ldap')
105 bld
.RECURSE('libcli/nbt')
106 bld
.RECURSE('libcli/netlogon')
107 bld
.RECURSE('libcli/auth')
108 bld
.RECURSE('libcli/lsarpc')
109 bld
.RECURSE('libcli/drsuapi')
110 bld
.RECURSE('libcli/echo')
111 bld
.RECURSE('libcli/dns')
112 bld
.RECURSE('libcli/samsync')
113 bld
.RECURSE('libcli/registry')
114 bld
.RECURSE('source4/lib/policy')
115 bld
.RECURSE('libcli/named_pipe_auth')
117 if bld
.CONFIG_GET('KRB5_VENDOR') in (None, 'heimdal'):
118 if bld
.CONFIG_GET("HEIMDAL_KRB5_CONFIG") and bld
.CONFIG_GET("USING_SYSTEM_KRB5"):
119 # When both HEIMDAL_KRB5_CONFIG and KRB5_CONFIG are set and not equal,
120 # it means one is Heimdal-specific (krb5-config.heimdal, for example)
121 # and there is system heimdal
122 bld
.PROCESS_SEPARATE_RULE('system_heimdal')
124 bld
.PROCESS_SEPARATE_RULE('embedded_heimdal')
126 bld
.PROCESS_SEPARATE_RULE('system_mitkrb5')
128 bld
.RECURSE('libcli/smbreadline')
129 bld
.RECURSE('codepages')
130 if bld
.AD_DC_BUILD_IS_ENABLED():
131 bld
.RECURSE('source4/setup')
132 bld
.RECURSE('source4/scripting')
135 bld
.RECURSE('libds/common')
136 bld
.RECURSE('source3')
137 bld
.RECURSE('dfs_server')
138 bld
.RECURSE('file_server')
140 bld
.RECURSE('lib/krb5_wrap')
142 bld
.RECURSE('testsuite/headers')
145 bld
.DUP_SYMBOL_CHECK()