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:
parent
0ef5f357be
commit
e8ba28c306
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user