build-waf: build two versions of waf, with and without waifu extensions
This commit is contained in:
parent
5b10ea3396
commit
d91a437305
24
build-waf.sh
Normal file → Executable file
24
build-waf.sh
Normal file → Executable 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
|
||||
|
Loading…
Reference in New Issue
Block a user