mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-01-22 05:30:06 -05:00
fda1fdeee7
-Nvidia OpenCL compilation was broken for density filtering due to ambiguity in the arguments to min(). Fix it by casting. -Put Nvidia block size in DE back to 24 where it used to be. Nvidia fails when it's 32. -Fix misspelling of the word "Rendering" in failure messages in final render dialog. -Put FillSummary() back when loading an ember. -Properly disable add final xform button when a final xform is present.
48 lines
974 B
Bash
48 lines
974 B
Bash
#!/bin/bash
|
|
|
|
REBUILD=''
|
|
NVIDIA=''
|
|
NATIVE=''
|
|
CONCURRENCY='-j9'
|
|
QMAKE=${QMAKE:-qmake}
|
|
RELEASE='CONFIG+=release CONFIG-=debug'
|
|
|
|
while test $# -gt 0
|
|
do
|
|
case "$1" in
|
|
--rebuild) REBUILD='1'
|
|
;;
|
|
--nvidia) NVIDIA="CONFIG += nvidia"
|
|
;;
|
|
--native) NATIVE="CONFIG += native"
|
|
;;
|
|
--travis) CONCURRENCY="-j1"
|
|
;;
|
|
--debug) RELEASE="CONFIG+=debug CONFIG-=release"
|
|
;;
|
|
--*) echo "bad option $1"; exit 1
|
|
;;
|
|
*) echo "unrecognised argument $1"; exit 1
|
|
;;
|
|
esac
|
|
shift
|
|
done
|
|
|
|
DIR=$( cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )
|
|
|
|
for PROJ in ${DIR}/{Ember,EmberCL,EmberGenome,EmberRender,EmberAnimate,Fractorium}
|
|
do
|
|
pushd $PROJ
|
|
if [ "x1" = "x$REBUILD" ]; then
|
|
make clean
|
|
fi
|
|
$QMAKE "$NVIDIA" "$NATIVE" $RELEASE
|
|
make $CONCURRENCY
|
|
if [ "x$?" != "x0" ]; then
|
|
echo "Build failed! Check output for errors."
|
|
exit 1
|
|
fi
|
|
popd
|
|
done
|
|
|