summaryrefslogtreecommitdiff
path: root/.ci/scripts/windows/docker.sh
diff options
context:
space:
mode:
Diffstat (limited to '.ci/scripts/windows/docker.sh')
-rwxr-xr-x.ci/scripts/windows/docker.sh22
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
3set -e 3set -e
4 4
5cd /yuzu 5#cd /yuzu
6 6
7ccache -s 7ccache -sv
8 8
9mkdir build || true && cd build 9mkdir -p "$HOME/.conan/profiles"
10LDFLAGS="-fuse-ld=lld" 10wget -c "https://github.com/yuzu-emu/build-environments/raw/master/linux-mingw/default" -O "$HOME/.conan/profiles/default"
11wget -c "https://github.com/yuzu-emu/build-environments/raw/master/linux-mingw/settings.yml" -O "$HOME/.conan/settings.yml"
12
13mkdir -p build && cd build
14export 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
17export CXXFLAGS="-femulated-tls"
13cmake .. \ 18cmake .. \
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
24ninja yuzu yuzu-cmd 28ninja yuzu yuzu-cmd
25 29
26ccache -s 30ccache -sv
27 31
28echo "Tests skipped" 32echo "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
62EXTERNALS_PATH="$(pwd)/build/externals" 66EXTERNALS_PATH="$(pwd)/build/externals"
63FFMPEG_DLL_PATH="$(find "${EXTERNALS_PATH}" -maxdepth 1 -type d | grep 'ffmpeg-')/bin" 67FFMPEG_DLL_PATH="$(find "${EXTERNALS_PATH}" -maxdepth 1 -type d | grep 'ffmpeg-')/bin"
64find ${FFMPEG_DLL_PATH} -type f -regex ".*\.dll" -exec cp -v {} package/ ';' 68find ${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
67find "$(pwd)/build/bin/" -type f -regex ".*\.dll" -exec cp -v {} package/ ';' 71find "$(pwd)/build/bin/" -type f -regex ".*\.dll" -exec cp -v {} package/ ';'