diff options
Diffstat (limited to '.travis/linux-mingw/docker.sh')
| -rwxr-xr-x | .travis/linux-mingw/docker.sh | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/.travis/linux-mingw/docker.sh b/.travis/linux-mingw/docker.sh deleted file mode 100755 index 80d7dfe9b..000000000 --- a/.travis/linux-mingw/docker.sh +++ /dev/null | |||
| @@ -1,42 +0,0 @@ | |||
| 1 | #!/bin/bash -ex | ||
| 2 | |||
| 3 | cd /yuzu | ||
| 4 | # override Travis CI unreasonable ccache size | ||
| 5 | echo 'max_size = 3.0G' > "$HOME/.ccache/ccache.conf" | ||
| 6 | |||
| 7 | mkdir build && cd build | ||
| 8 | cmake .. -G Ninja -DCMAKE_TOOLCHAIN_FILE="$(pwd)/../CMakeModules/MinGWCross.cmake" -DUSE_CCACHE=ON -DENABLE_COMPATIBILITY_LIST_DOWNLOAD=ON -DCMAKE_BUILD_TYPE=Release | ||
| 9 | ninja | ||
| 10 | |||
| 11 | # Clean up the dirty hacks | ||
| 12 | rm /bin/uname && mv /bin/uname1 /bin/uname | ||
| 13 | rm /bin/cmd | ||
| 14 | |||
| 15 | ccache -s | ||
| 16 | |||
| 17 | echo "Tests skipped" | ||
| 18 | #ctest -VV -C Release | ||
| 19 | |||
| 20 | echo 'Prepare binaries...' | ||
| 21 | cd .. | ||
| 22 | mkdir package | ||
| 23 | |||
| 24 | QT_PLATFORM_DLL_PATH='/usr/x86_64-w64-mingw32/lib/qt5/plugins/platforms/' | ||
| 25 | find build/ -name "yuzu*.exe" -exec cp {} 'package' \; | ||
| 26 | |||
| 27 | # copy Qt plugins | ||
| 28 | mkdir package/platforms | ||
| 29 | cp "${QT_PLATFORM_DLL_PATH}/qwindows.dll" package/platforms/ | ||
| 30 | cp -rv "${QT_PLATFORM_DLL_PATH}/../mediaservice/" package/ | ||
| 31 | cp -rv "${QT_PLATFORM_DLL_PATH}/../imageformats/" package/ | ||
| 32 | rm -f package/mediaservice/*d.dll | ||
| 33 | |||
| 34 | for i in package/*.exe; do | ||
| 35 | # we need to process pdb here, however, cv2pdb | ||
| 36 | # does not work here, so we just simply strip all the debug symbols | ||
| 37 | x86_64-w64-mingw32-strip "${i}" | ||
| 38 | done | ||
| 39 | |||
| 40 | pip3 install pefile | ||
| 41 | python3 .travis/linux-mingw/scan_dll.py package/*.exe "package/" | ||
| 42 | python3 .travis/linux-mingw/scan_dll.py package/imageformats/*.dll "package/" | ||