SIGN IN SIGN UP

openFrameworks is a community-developed cross platform toolkit for creative coding in C++.

0 0 0 C++
#!/usr/bin/env bash
export LC_ALL=C
ARCH=$(uname -m)
if [ "$ARCH" = "x86_64" ]; then
LIBSPATH=linux64
else
LIBSPATH=linux
fi
2015-07-03 09:48:16 +02:00
pushd `dirname $0` > /dev/null
2023-11-28 02:45:42 -03:00
SCRIPTPATH="$(pwd)"
2015-07-03 09:48:16 +02:00
popd > /dev/null
2015-07-03 14:54:09 +02:00
BUILD="install"
JOBS=1
while getopts tj: opt ; do
2015-07-03 14:54:09 +02:00
case "$opt" in
t) # testing, only build Debug
BUILD="test" ;;
j) # make job count for parallel build
JOBS="$OPTARG"
2015-07-03 14:54:09 +02:00
esac
done
2023-11-28 02:45:42 -03:00
cd "${SCRIPTPATH}/../../libs/openFrameworksCompiled/project"
make -j$JOBS Debug
exit_code=$?
if [ $exit_code != 0 ]; then
echo "there has been a problem compiling Debug OF library"
echo "please report this problem in the forums"
exit $exit_code
fi
2015-07-03 14:54:09 +02:00
if [ "$BUILD" == "install" ]; then
make -j$JOBS Release
2015-07-03 14:54:09 +02:00
exit_code=$?
if [ $exit_code != 0 ]; then
echo "there has been a problem compiling Release OF library"
echo "please report this problem in the forums"
exit $exit_code
fi
fi