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