build: reduce fp.write calls for build_options.c generation
[Samba.git] / third_party / wscript
blob1f4bc1ce1d7538179a59ca4b56c586d6120a8096
1 #!/usr/bin/env python
3 from waflib import Options
5 def configure(conf):
6 conf.RECURSE('cmocka')
7 conf.RECURSE('popt')
8 conf.RECURSE('aesni-intel')
9 if conf.CONFIG_GET('ENABLE_SELFTEST'):
10 conf.RECURSE('socket_wrapper')
11 conf.RECURSE('nss_wrapper')
12 conf.RECURSE('resolv_wrapper')
13 conf.RECURSE('uid_wrapper')
14 if Options.options.with_pam:
15 conf.RECURSE('pam_wrapper')
18 def build(bld):
19 bld.RECURSE('cmocka')
20 bld.RECURSE('popt')
21 bld.RECURSE('aesni-intel')
22 if bld.CONFIG_GET('SOCKET_WRAPPER'):
23 bld.RECURSE('socket_wrapper')
24 if bld.CONFIG_GET('NSS_WRAPPER'):
25 bld.RECURSE('nss_wrapper')
26 if bld.CONFIG_GET('RESOLV_WRAPPER'):
27 bld.RECURSE('resolv_wrapper')
28 if bld.CONFIG_GET('UID_WRAPPER'):
29 bld.RECURSE('uid_wrapper')
30 if bld.CONFIG_GET('PAM_WRAPPER'):
31 bld.RECURSE('pam_wrapper')