2020-11-11 23:21:35 +07:00
|
|
|
#!/bin/bash -ex
|
|
|
|
|
|
|
|
set -o pipefail
|
|
|
|
|
|
|
|
export Qt5_DIR=$(brew --prefix)/opt/qt5
|
2021-09-12 14:27:29 +07:00
|
|
|
export PATH="/usr/local/opt/ccache/libexec:$PATH"
|
2020-11-11 23:21:35 +07:00
|
|
|
# ccache configurations
|
|
|
|
export CCACHE_CPP2=yes
|
|
|
|
export CCACHE_SLOPPINESS=time_macros
|
|
|
|
|
|
|
|
export CC="ccache clang"
|
|
|
|
export CXX="ccache clang++"
|
|
|
|
|
|
|
|
ccache -s
|
|
|
|
|
|
|
|
mkdir build && cd build
|
2021-09-12 14:27:29 +07:00
|
|
|
cmake .. -DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DENABLE_QT_TRANSLATION=ON \
|
|
|
|
-DCITRA_ENABLE_COMPATIBILITY_REPORTING=${ENABLE_COMPATIBILITY_REPORTING:-"OFF"} \
|
|
|
|
-DENABLE_COMPATIBILITY_LIST_DOWNLOAD=ON \
|
|
|
|
-DUSE_DISCORD_PRESENCE=ON \
|
|
|
|
-DENABLE_FFMPEG_AUDIO_DECODER=ON \
|
|
|
|
-DENABLE_FFMPEG_VIDEO_DUMPER=ON \
|
|
|
|
-GNinja
|
2020-11-11 23:21:35 +07:00
|
|
|
ninja
|
|
|
|
|
|
|
|
ccache -s
|
|
|
|
|
|
|
|
ctest -VV -C Release
|