2020-11-11 23:21:35 -06:00
|
|
|
#!/bin/sh -ex
|
|
|
|
|
|
|
|
mkdir build && cd build
|
2022-11-19 14:22:10 -06:00
|
|
|
cmake .. \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-G Ninja \
|
|
|
|
-DCMAKE_TOOLCHAIN_FILE="$(pwd)/../CMakeModules/MSVCCache.cmake" \
|
|
|
|
-DCITRA_USE_CCACHE=ON \
|
2023-05-05 05:10:34 -05:00
|
|
|
-DENABLE_QT_TRANSLATION=ON \
|
2022-11-19 14:22:10 -06:00
|
|
|
-DCITRA_ENABLE_COMPATIBILITY_REPORTING=${ENABLE_COMPATIBILITY_REPORTING:-"OFF"} \
|
|
|
|
-DENABLE_COMPATIBILITY_LIST_DOWNLOAD=ON \
|
|
|
|
-DUSE_DISCORD_PRESENCE=ON \
|
|
|
|
-DENABLE_MF=ON \
|
2023-04-21 12:09:40 -05:00
|
|
|
-DOPENSSL_DLL_DIR="C:\Program Files\OpenSSL\bin"
|
2020-11-11 23:21:35 -06:00
|
|
|
|
|
|
|
ninja
|
|
|
|
# show the caching efficiency
|
|
|
|
buildcache -s
|
|
|
|
|
|
|
|
ctest -VV -C Release || echo "::error ::Test error occurred on Windows MSVC build"
|