build-waf: build two versions of waf, with and without waifu extensions

This commit is contained in:
Alibek Omarov 2019-06-06 02:42:41 +03:00
parent 5b10ea3396
commit d91a437305
2 changed files with 23 additions and 170 deletions

24
build-waf.sh Normal file → Executable file
View File

@ -3,8 +3,30 @@
TOOLS="msvs,clang_compilation_database,color_msvc"
PRELUDE=$'\tsys.path.insert(0, \'scripts/waifulib\')'
# a set of relatively stable tools
# TODO: make it possible to override this list
WAIFU_TOOLS="gitversion,reconfigure,msdev,fwgslib,cxx11,force_32bit,subproject"
pushd wafsrc
echo "-- Building waf without waifu extensions: $TOOLS"
./waf-light "--tools=$TOOLS" "--prelude=$PRELUDE"
mv waf ../
mv waf ../waf-noext
popd
get_waifu_tools()
{
OLD_IFS=$IFS
IFS=","
retval=""
for i in $WAIFU_TOOLS; do
retval="$retval,$PWD/scripts/waifulib/$i.py"
done
IFS=$OLD_IFS
echo "$retval"
}
TOOLS=$TOOLS$(get_waifu_tools)
echo "-- Building waf with waifu extensions: $TOOLS"
pushd wafsrc
./waf-light "--tools=$TOOLS" "--prelude=$PRELUDE"
mv waf ../waf-ext
popd

169
waf vendored

File diff suppressed because one or more lines are too long