tahoma2d/ci-scripts/osx/tahoma-build.sh
manongjohn 0decaa114e
Build script corrections (#308)
* Correct macOS build script issues/add building static ffmpeg for deployments

* Correct linux build script issues/add building static ffmpeg for deployments
2020-10-06 19:10:58 -06:00

29 lines
683 B
Bash
Executable file

#!/bin/bash
pushd thirdparty/tiff-4.0.3
./configure --disable-lzma --without-x && make
popd
cd toonz
if [ ! -d build ]
then
mkdir build
fi
cd build
QTVERSION=`ls /usr/local/Cellar/qt`
echo "QT Version detected: $QTVERSION"
if [ -d ../../thirdparty/canon/Header ]
then
export CANON_FLAG=-DWITH_CANON=ON
fi
export MACOSX_DEPLOYMENT_TARGET=10.13
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/opt/jpeg-turbo/lib/pkgconfig"
cmake ../sources $CANON_FLAG \
-DQT_PATH=/usr/local/opt/qt/lib/ \
-DTIFF_INCLUDE_DIR=../../thirdparty/tiff-4.0.3/libtiff/ \
-DSUPERLU_INCLUDE_DIR=../../thirdparty/superlu/SuperLU_4.1/include/
make -j7 # runs 7 jobs in parallel