1
0
forked from 0ad/0ad

Automatically build bundled external libraries and report errors if premake or an external library fails to build

This was SVN commit r7091.
This commit is contained in:
Simon Brenner 2009-08-08 11:22:42 +00:00
parent 0ef5f357be
commit e8ba28c306

View File

@ -1,12 +1,22 @@
#!/bin/sh
die()
{
echo ERROR: $*
exit 1
}
cd "$(dirname $0)"
# Now in build/workspaces/ (where we assume this script resides)
# Build/update bundled external libraries
(cd ../../libraries/fcollada/src && make) || die "FCollada build failed"
(cd ../../libraries/spidermonkey/src && ./build.sh) || die "SpiderMonkey build failed"
# Make sure workspaces/gcc exists.
mkdir -p gcc
# Now build premake and run it to create the makefiles
cd ../premake
make -C src
src/bin/premake --outpath ../workspaces/gcc --atlas --collada "$@" --target gnu
make -C src || die "Premake build failed"
src/bin/premake --outpath ../workspaces/gcc --atlas --collada "$@" --target gnu || die "Premake failed"