2019-06-01 19:51:23 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2019-06-02 09:41:04 +02:00
|
|
|
TOOLS="msvs,clang_compilation_database,color_msvc"
|
2019-10-18 02:26:49 +02:00
|
|
|
PRELUDE=$'\tContext.WAIFUVERSION=\'1.0.0\'\n\tsys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), \'scripts\', \'waifulib\'))'
|
2019-06-01 19:51:23 +02:00
|
|
|
|
2019-06-06 01:42:41 +02:00
|
|
|
# a set of relatively stable tools
|
|
|
|
# TODO: make it possible to override this list
|
2019-10-18 01:59:49 +02:00
|
|
|
WAIFU_TOOLS="gitversion,reconfigure,msdev,fwgslib,cxx11,force_32bit,subproject,strip_on_install,sdl2,msvcfix"
|
2019-06-06 01:42:41 +02:00
|
|
|
|
2019-06-01 19:51:23 +02:00
|
|
|
pushd wafsrc
|
2019-06-06 01:42:41 +02:00
|
|
|
echo "-- Building waf without waifu extensions: $TOOLS"
|
2019-10-18 04:24:43 +02:00
|
|
|
./waf-light "--tools=$TOOLS" "--prelude=$PRELUDE" "--set-name=waifu" --nostrip
|
2019-06-06 01:42:41 +02:00
|
|
|
mv waf ../waf-noext
|
2019-06-01 19:51:23 +02:00
|
|
|
popd
|
|
|
|
|
2019-06-06 01:42:41 +02:00
|
|
|
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
|
2019-10-18 04:24:43 +02:00
|
|
|
./waf-light "--tools=$TOOLS" "--prelude=$PRELUDE" "--set-name=waifu" --nostrip
|
2019-06-06 01:42:41 +02:00
|
|
|
mv waf ../waf-ext
|
|
|
|
popd
|