Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Grab the absolute path for the build root directory.
- export BUILDROOT=$(pwd)
- # Build 3rd party dependencies
- # Create build directories if they don't exist.
- mkdir -p b i d
- pushd ${BUILDROOT}/b
- targets=("ext_gettext" "ext_qt" "ext_zlib" "ext_boost" "ext_eigen3" "ext_exiv2" \
- "ext_fftw3" "ext_ilmbase" "ext_jpeg" "ext_lcms2" "ext_ocio" "ext_openexr" \
- "ext_png" "ext_tiff" "ext_gsl" "ext_vc" "ext_libraw" "ext_giflib" "ext_kwindowsystem")
- for target in ${targets[@]}; do
- echo Building ${target}...
- cmake --build . --config RelWithDebInfo --target ${target}
- # This will bail at the first sign of problem and let us know which
- # dependency failed.
- if [[ $? != 0 ]]; then
- echo Failed to build ${target}.
- popd
- exit 1
- fi
- done
- popd
- # Setup the build for Krita.
- mkdir -p build
- pushd ${BUILDROOT}/build
- echo Bulding Krita...
- cmake ../krita \
- -DCMAKE_INSTALL_PREFIX=${BUILDROOT}/i \
- -DDEFINE_NO_DEPRECATED=1 \
- -DBUILD_TESTING=OFF \
- -DKDE4_BUILD_TESTS=OFF \
- -DBUNDLE_INSTALL_DIR=${BUILDROOT}/i/bin \
- -DCMAKE_BUILD_TYPE=RelWithDebInfo
- if [[ $? != 0 ]]; then
- echo Failed setting up Krita build.
- popd
- exit 1
- fi
- popd
- echo Done. Please run ./build.sh to compile and install application.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement