buildtools/wafsamba: generate build options output with waf 2.0
authorAlexander Bokovoy <ab@samba.org>
Tue, 3 Jul 2018 09:48:39 +0000 (12:48 +0300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 5 Sep 2018 04:37:27 +0000 (06:37 +0200)
commit2a3fcdf1ef16f2efc936bed61fe85e3bb9e7fba9
treea95ab7ef960ce87bd6d18bddf4d9df277797bdfe
parent75d5bcb4d84f697bed5e13569b10a893fe487ff3
buildtools/wafsamba: generate build options output with waf 2.0

With WAF 2.0 we get all defines in environment at the same level.
Fix build options source code generator to handle this.

I felt uneasy at filtering out some defines so instead the code
is mangling generic defines to be correct for C compiler by
replacing '-', '.', and '()' with an underscore ('_').

Signed-off-by: Alexander Bokovoy <ab@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
buildtools/wafsamba/samba_patterns.py