diff options
Diffstat (limited to '.ci/scripts/windows/docker.sh')
| -rwxr-xr-x | .ci/scripts/windows/docker.sh | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/.ci/scripts/windows/docker.sh b/.ci/scripts/windows/docker.sh index f53d837d1..5bd5f0b6b 100755 --- a/.ci/scripts/windows/docker.sh +++ b/.ci/scripts/windows/docker.sh | |||
| @@ -2,19 +2,23 @@ | |||
| 2 | 2 | ||
| 3 | set -e | 3 | set -e |
| 4 | 4 | ||
| 5 | cd /yuzu | 5 | #cd /yuzu |
| 6 | 6 | ||
| 7 | ccache -s | 7 | ccache -sv |
| 8 | 8 | ||
| 9 | mkdir build || true && cd build | 9 | mkdir -p "$HOME/.conan/profiles" |
| 10 | LDFLAGS="-fuse-ld=lld" | 10 | wget -c "https://github.com/yuzu-emu/build-environments/raw/master/linux-mingw/default" -O "$HOME/.conan/profiles/default" |
| 11 | wget -c "https://github.com/yuzu-emu/build-environments/raw/master/linux-mingw/settings.yml" -O "$HOME/.conan/settings.yml" | ||
| 12 | |||
| 13 | mkdir -p build && cd build | ||
| 14 | export LDFLAGS="-fuse-ld=lld" | ||
| 11 | # -femulated-tls required due to an incompatibility between GCC and Clang | 15 | # -femulated-tls required due to an incompatibility between GCC and Clang |
| 12 | # TODO(lat9nq): If this is widespread, we probably need to add this to CMakeLists where appropriate | 16 | # TODO(lat9nq): If this is widespread, we probably need to add this to CMakeLists where appropriate |
| 17 | export CXXFLAGS="-femulated-tls" | ||
| 13 | cmake .. \ | 18 | cmake .. \ |
| 14 | -DCMAKE_BUILD_TYPE=Release \ | 19 | -DCMAKE_BUILD_TYPE=Release \ |
| 15 | -DCMAKE_CXX_FLAGS="-femulated-tls" \ | 20 | -DCMAKE_TOOLCHAIN_FILE="${PWD}/../CMakeModules/MinGWClangCross.cmake" \ |
| 16 | -DCMAKE_TOOLCHAIN_FILE="$(pwd)/../CMakeModules/MinGWClangCross.cmake" \ | 21 | -DDISPLAY_VERSION="$1" \ |
| 17 | -DDISPLAY_VERSION=$1 \ | ||
| 18 | -DENABLE_COMPATIBILITY_LIST_DOWNLOAD=ON \ | 22 | -DENABLE_COMPATIBILITY_LIST_DOWNLOAD=ON \ |
| 19 | -DENABLE_QT_TRANSLATION=ON \ | 23 | -DENABLE_QT_TRANSLATION=ON \ |
| 20 | -DUSE_CCACHE=ON \ | 24 | -DUSE_CCACHE=ON \ |
| @@ -23,7 +27,7 @@ cmake .. \ | |||
| 23 | -GNinja | 27 | -GNinja |
| 24 | ninja yuzu yuzu-cmd | 28 | ninja yuzu yuzu-cmd |
| 25 | 29 | ||
| 26 | ccache -s | 30 | ccache -sv |
| 27 | 31 | ||
| 28 | echo "Tests skipped" | 32 | echo "Tests skipped" |
| 29 | #ctest -VV -C Release | 33 | #ctest -VV -C Release |
| @@ -61,7 +65,7 @@ python3 .ci/scripts/windows/scan_dll.py package/*.exe package/imageformats/*.dll | |||
| 61 | # copy FFmpeg libraries | 65 | # copy FFmpeg libraries |
| 62 | EXTERNALS_PATH="$(pwd)/build/externals" | 66 | EXTERNALS_PATH="$(pwd)/build/externals" |
| 63 | FFMPEG_DLL_PATH="$(find "${EXTERNALS_PATH}" -maxdepth 1 -type d | grep 'ffmpeg-')/bin" | 67 | FFMPEG_DLL_PATH="$(find "${EXTERNALS_PATH}" -maxdepth 1 -type d | grep 'ffmpeg-')/bin" |
| 64 | find ${FFMPEG_DLL_PATH} -type f -regex ".*\.dll" -exec cp -v {} package/ ';' | 68 | find ${FFMPEG_DLL_PATH} -type f -regex ".*\.dll" -exec cp -nv {} package/ ';' |
| 65 | 69 | ||
| 66 | # copy libraries from yuzu.exe path | 70 | # copy libraries from yuzu.exe path |
| 67 | find "$(pwd)/build/bin/" -type f -regex ".*\.dll" -exec cp -v {} package/ ';' | 71 | find "$(pwd)/build/bin/" -type f -regex ".*\.dll" -exec cp -v {} package/ ';' |