tahoma2d/ci-scripts/osx/tahoma-build.sh
2022-12-20 00:19:55 -05:00

38 lines
855 B
Bash
Executable file

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