build.sh 492 B

123456789101112131415161718
  1. #!/bin/bash -ex
  2. set -o pipefail
  3. export MACOSX_DEPLOYMENT_TARGET=10.12
  4. export Qt5_DIR=$(brew --prefix)/opt/qt5
  5. export UNICORNDIR=$(pwd)/externals/unicorn
  6. mkdir build && cd build
  7. export PATH=/usr/local/opt/ccache/libexec:$PATH
  8. ccache --show-stats > ccache_before
  9. cmake --version
  10. cmake .. -DYUZU_BUILD_UNICORN=ON -DCMAKE_BUILD_TYPE=Release -DENABLE_COMPATIBILITY_LIST_DOWNLOAD=ON
  11. make -j4
  12. ccache --show-stats > ccache_after
  13. diff -U100 ccache_before ccache_after || true
  14. ctest -VV -C Release