SHARE
TWEET

Untitled

a guest Mar 22nd, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. # Grab the absolute path for the build root directory.
  4. export BUILDROOT=$(pwd)
  5.  
  6. # Build 3rd party dependencies
  7.  
  8. # Create build directories if they don't exist.
  9. mkdir -p b i d
  10.  
  11. pushd ${BUILDROOT}/b
  12.  
  13. targets=("ext_gettext" "ext_qt" "ext_zlib" "ext_boost" "ext_eigen3" "ext_exiv2" \
  14.     "ext_fftw3" "ext_ilmbase" "ext_jpeg" "ext_lcms2" "ext_ocio" "ext_openexr" \
  15.     "ext_png" "ext_tiff" "ext_gsl" "ext_vc" "ext_libraw" "ext_giflib" "ext_kwindowsystem")
  16. for target in ${targets[@]}; do
  17.     echo Building ${target}...
  18.     cmake --build . --config RelWithDebInfo --target ${target}
  19.  
  20.     # This will bail at the first sign of problem and let us know which
  21.     # dependency failed.
  22.     if [[ $? != 0 ]]; then
  23.         echo Failed to build ${target}.
  24.         popd
  25.         exit 1
  26.     fi
  27. done
  28.  
  29. popd
  30.  
  31. # Setup the build for Krita.
  32. mkdir -p build
  33. pushd ${BUILDROOT}/build
  34.  
  35. echo Bulding Krita...
  36. cmake ../krita \
  37.     -DCMAKE_INSTALL_PREFIX=${BUILDROOT}/i \
  38.     -DDEFINE_NO_DEPRECATED=1 \
  39.     -DBUILD_TESTING=OFF \
  40.     -DKDE4_BUILD_TESTS=OFF \
  41.     -DBUNDLE_INSTALL_DIR=${BUILDROOT}/i/bin \
  42.     -DCMAKE_BUILD_TYPE=RelWithDebInfo
  43. if [[ $? != 0 ]]; then
  44.     echo Failed setting up Krita build.
  45.     popd
  46.     exit 1
  47. fi
  48.  
  49. popd
  50.  
  51. echo Done. Please run ./build.sh to compile and install application.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top