From 7db0588d6b74041e64e24245566708000cc81f9f Mon Sep 17 00:00:00 2001 From: liushuyu Date: Thu, 12 Apr 2018 15:43:32 -0600 Subject: [PATCH 01/13] travis: MinGW build on Travis CI ... 1. updated submodule libressl 2. suggestion from @jroweboy --- .travis.yml | 13 +++++ .travis/linux-mingw/build.sh | 3 + .travis/linux-mingw/deps.sh | 3 + .travis/linux-mingw/docker.sh | 47 +++++++++++++++ .travis/linux-mingw/scan_dll.py | 100 ++++++++++++++++++++++++++++++++ .travis/linux-mingw/upload.sh | 13 +++++ CMakeModules/MinGWCross.cmake | 54 +++++++++++++++++ externals/libressl | 2 +- 8 files changed, 234 insertions(+), 1 deletion(-) create mode 100755 .travis/linux-mingw/build.sh create mode 100755 .travis/linux-mingw/deps.sh create mode 100755 .travis/linux-mingw/docker.sh create mode 100755 .travis/linux-mingw/scan_dll.py create mode 100755 .travis/linux-mingw/upload.sh create mode 100644 CMakeModules/MinGWCross.cmake diff --git a/.travis.yml b/.travis.yml index d16a34c2f..f8d86d5e3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -48,6 +48,19 @@ matrix: services: docker cache: ccache script: "./.travis/linux-frozen/build.sh" + - os: linux + env: NAME="linux build (MinGW)" + sudo: required + dist: trusty + services: docker + addons: + apt: + packages: + - p7zip-full + install: "./.travis/linux-mingw/deps.sh" + script: "./.travis/linux-mingw/build.sh" + after_success: "./.travis/linux-mingw/upload.sh" + cache: ccache deploy: provider: releases diff --git a/.travis/linux-mingw/build.sh b/.travis/linux-mingw/build.sh new file mode 100755 index 000000000..ac2887752 --- /dev/null +++ b/.travis/linux-mingw/build.sh @@ -0,0 +1,3 @@ +#!/bin/bash -ex +mkdir "$HOME/.ccache" || true +docker run -e ENABLE_COMPATIBILITY_REPORTING -v $(pwd):/citra -v "$HOME/.ccache":/root/.ccache ubuntu:18.04 /bin/bash -ex /citra/.travis/linux-mingw/docker.sh diff --git a/.travis/linux-mingw/deps.sh b/.travis/linux-mingw/deps.sh new file mode 100755 index 000000000..540bb934a --- /dev/null +++ b/.travis/linux-mingw/deps.sh @@ -0,0 +1,3 @@ +#!/bin/sh -ex + +docker pull ubuntu:18.04 diff --git a/.travis/linux-mingw/docker.sh b/.travis/linux-mingw/docker.sh new file mode 100755 index 000000000..418858322 --- /dev/null +++ b/.travis/linux-mingw/docker.sh @@ -0,0 +1,47 @@ +#!/bin/bash -ex + +cd /citra +MINGW_PACKAGES="sdl2-mingw-w64 qt5base-mingw-w64 qt5tools-mingw-w64 libsamplerate-mingw-w64 qt5multimedia-mingw-w64" +apt-get update +apt-get install -y gpg wget git python3-pip ccache g++-mingw-w64-x86-64 gcc-mingw-w64-x86-64 mingw-w64-tools +# HACK: the repository does not contain necessary packages for 18.04, we'll use packages for 17.10 for now +echo 'deb http://ppa.launchpad.net/tobydox/mingw-w64/ubuntu artful main ' > /etc/apt/sources.list.d/extras.list +apt-key adv --keyserver keyserver.ubuntu.com --recv '72931B477E22FEFD47F8DECE02FE5F12ADDE29B2' +apt-get update +apt-get install -y ${MINGW_PACKAGES} + +# Get a recent version of CMake +wget -q --show-progress https://cmake.org/files/v3.10/cmake-3.10.1-Linux-x86_64.sh +echo y | sh cmake-3.10.1-Linux-x86_64.sh --prefix=cmake +export PATH=/citra/cmake/cmake-3.10.1-Linux-x86_64/bin:$PATH + +# fix a problem in current MinGW headers +wget -q https://github.com/Alexpux/mingw-w64/raw/d0d7f784833bbb0b2d279310ddc6afb52fe47a46/mingw-w64-headers/crt/errno.h -O /usr/x86_64-w64-mingw32/include/errno.h + +mkdir build && cd build +cmake .. -DCMAKE_TOOLCHAIN_FILE="$(pwd)/../CMakeModules/MinGWCross.cmake" -DUSE_CCACHE=ON -DCMAKE_BUILD_TYPE=Release -DENABLE_QT_TRANSLATION=ON -DCITRA_ENABLE_COMPATIBILITY_REPORTING=${ENABLE_COMPATIBILITY_REPORTING:-"OFF"} +make -j4 + +echo "Tests skipped" +#ctest -VV -C Release + +ccache -s + +echo 'Prepare binaries...' +cd .. +mkdir package + +QT_PLATFORM_DLL_PATH='/usr/x86_64-w64-mingw32/lib/qt5/plugins/platforms/' +find build/ -name "citra*.exe" -exec cp {} 'package' \; + +cp "${QT_PLATFORM_DLL_PATH}/qwindows.dll" package/ + + +for i in package/*.exe; do + # we need to process pdb here, however, cv2pdb + # does not work here, so we just simply strip all the debug symbols + x86_64-w64-mingw32-strip "${i}" +done + +pip3 install pefile +python3 .travis/linux-mingw/scan_dll.py package/*.exe "package/" diff --git a/.travis/linux-mingw/scan_dll.py b/.travis/linux-mingw/scan_dll.py new file mode 100755 index 000000000..2f4c92769 --- /dev/null +++ b/.travis/linux-mingw/scan_dll.py @@ -0,0 +1,100 @@ +import pefile +import sys +import re +import os +import queue +import shutil + +# constant definitions +KNOWN_SYS_DLLS = ['WINMM.DLL', 'MSVCRT.DLL', 'VERSION.DLL', 'MPR.DLL', + 'DWMAPI.DLL', 'UXTHEME.DLL', 'DNSAPI.DLL', 'IPHLPAPI.DLL'] +# below is for Ubuntu 18.04 with specified PPA enabled, if you are using +# other distro or different repositories, change the following accordingly +DLL_PATH = [ + '/usr/x86_64-w64-mingw32/bin/', + '/usr/x86_64-w64-mingw32/lib/', + '/usr/lib/gcc/x86_64-w64-mingw32/7.3-posix/' +] + + +def parse_imports(file_name): + results = [] + pe = pefile.PE(file_name, fast_load=True) + pe.parse_data_directories() + + for entry in pe.DIRECTORY_ENTRY_IMPORT: + current = entry.dll.decode() + current_u = current.upper() # b/c Windows is often case insensitive + # here we filter out system dlls + # dll w/ names like *32.dll are likely to be system dlls + if current_u.upper() not in KNOWN_SYS_DLLS and not re.match(string=current_u, pattern=r'.*32\.DLL'): + results.append(current) + + return results + + +def parse_imports_recursive(file_name, path_list=[]): + q = queue.Queue() # create a FIFO queue + # file_name can be a string or a list for the convience + if isinstance(file_name, str): + q.put(file_name) + elif isinstance(file_name, list): + for i in file_name: + q.put(i) + full_list = [] + while q.qsize(): + current = q.get_nowait() + print('> %s' % current) + deps = parse_imports(current) + # if this dll does not have any import, ignore it + if not deps: + continue + for dep in deps: + # the dependency already included in the list, skip + if dep in full_list: + continue + # find the requested dll in the provided paths + full_path = find_dll(dep) + if not full_path: + raise Exception('Cannot find %s!' % dep) + full_list.append(dep) + q.put(full_path) + path_list.append(full_path) + return full_list + + +def find_dll(name): + for path in DLL_PATH: + for root, _, files in os.walk(path): + for f in files: + if name.lower() == f.lower(): + return os.path.join(root, f) + + +def deploy(name, dst, dry_run=False): + dlls_path = [] + parse_imports_recursive(name, dlls_path) + for dll_entry in dlls_path: + if not dry_run: + shutil.copy(dll_entry, dst) + else: + print('[Dry-Run] Copy %s to %s' % (dll_entry, dst)) + print('Deploy completed.') + return dlls_path + + +def main(): + if len(sys.argv) < 3: + print('Usage: %s [files to examine ...] [target deploy directory]') + return 1 + to_deploy = sys.argv[1:-1] + tgt_dir = sys.argv[-1] + if not os.path.isdir(tgt_dir): + print('%s is not a directory.' % tgt_dir) + return 1 + print('Scanning dependencies...') + deploy(to_deploy, tgt_dir) + + +if __name__ == '__main__': + main() diff --git a/.travis/linux-mingw/upload.sh b/.travis/linux-mingw/upload.sh new file mode 100755 index 000000000..ff99a1fab --- /dev/null +++ b/.travis/linux-mingw/upload.sh @@ -0,0 +1,13 @@ +#!/bin/bash -ex + +. .travis/common/pre-upload.sh + +REV_NAME="citra-windows-mingw-${GITDATE}-${GITREV}" +ARCHIVE_NAME="${REV_NAME}.tar.gz" +COMPRESSION_FLAGS="-czvf" + +mkdir "$REV_NAME" +# get around the permission issues +cp -r package/* "$REV_NAME" + +. .travis/common/post-upload.sh diff --git a/CMakeModules/MinGWCross.cmake b/CMakeModules/MinGWCross.cmake new file mode 100644 index 000000000..d3c99f4f5 --- /dev/null +++ b/CMakeModules/MinGWCross.cmake @@ -0,0 +1,54 @@ +SET(MINGW_PREFIX /usr/x86_64-w64-mingw32/) +SET(CMAKE_SYSTEM_NAME Windows) +SET(CMAKE_SYSTEM_PROCESSOR x86_64) +# Actually a hack, w/o this will cause some strange errors +SET(CMAKE_HOST_WIN32 TRUE) + + +SET(CMAKE_FIND_ROOT_PATH ${MINGW_PREFIX}) +SET(SDL2_PATH ${MINGW_PREFIX}) +SET(MINGW_TOOL_PREFIX ${CMAKE_SYSTEM_PROCESSOR}-w64-mingw32-) + +# Specify the cross compiler +SET(CMAKE_C_COMPILER ${MINGW_TOOL_PREFIX}gcc-posix) +SET(CMAKE_CXX_COMPILER ${MINGW_TOOL_PREFIX}g++-posix) +SET(CMAKE_RC_COMPILER ${MINGW_TOOL_PREFIX}windres) + +# Mingw tools +SET(STRIP ${MINGW_TOOL_PREFIX}strip) +SET(WINDRES ${MINGW_TOOL_PREFIX}windres) +SET(ENV{PKG_CONFIG} ${MINGW_TOOL_PREFIX}pkg-config) + +# ccache wrapper +OPTION(USE_CCACHE "Use ccache for compilation" OFF) +IF(USE_CCACHE) + FIND_PROGRAM(CCACHE ccache) + IF (CCACHE) + MESSAGE(STATUS "Using ccache found in PATH") + SET_PROPERTY(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ${CCACHE}) + SET_PROPERTY(GLOBAL PROPERTY RULE_LAUNCH_LINK ${CCACHE}) + ELSE(CCACHE) + MESSAGE(WARNING "USE_CCACHE enabled, but no ccache found") + ENDIF(CCACHE) +ENDIF(USE_CCACHE) + +# Search for programs in the build host directories +SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) + + +# Echo modified cmake vars to screen for debugging purposes +IF(NOT DEFINED ENV{MINGW_DEBUG_INFO}) + MESSAGE("") + MESSAGE("Custom cmake vars: (blank = system default)") + MESSAGE("-----------------------------------------") + MESSAGE("* CMAKE_C_COMPILER : ${CMAKE_C_COMPILER}") + MESSAGE("* CMAKE_CXX_COMPILER : ${CMAKE_CXX_COMPILER}") + MESSAGE("* CMAKE_RC_COMPILER : ${CMAKE_RC_COMPILER}") + MESSAGE("* WINDRES : ${WINDRES}") + MESSAGE("* ENV{PKG_CONFIG} : $ENV{PKG_CONFIG}") + MESSAGE("* STRIP : ${STRIP}") + MESSAGE("* USE_CCACHE : ${USE_CCACHE}") + MESSAGE("") + # So that the debug info only appears once + SET(ENV{MINGW_DEBUG_INFO} SHOWN) +ENDIF() diff --git a/externals/libressl b/externals/libressl index cbb1dcab9..7d01cb01c 160000 --- a/externals/libressl +++ b/externals/libressl @@ -1 +1 @@ -Subproject commit cbb1dcab9a566d0aa0036339f21f2e37012b2507 +Subproject commit 7d01cb01cb1a926ecb4c9c98b107ef3c26f59dfb From d0c5121dc430f193ade910db756596eb3c09203a Mon Sep 17 00:00:00 2001 From: liushuyu Date: Fri, 11 May 2018 19:40:29 -0600 Subject: [PATCH 02/13] appveyor: disable deploy to GitHub --- appveyor.yml | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index be1992823..6b910b685 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -171,17 +171,6 @@ artifacts: - path: $(BUILD_UPDATE) name: update -deploy: - provider: GitHub - release: $(appveyor_repo_tag_name) - auth_token: - secure: "dbpsMC/MgPKWFNJCXpQl4cR8FYhepkPLjgNp/pRMktZ8oLKTqPYErfreaIxb/4P1" - artifact: update,build - draft: false - prerelease: false - on: - appveyor_repo_tag: true - notifications: - provider: Webhook url: https://api.citra-emu.org/code/appveyor/notify From 54496dde88ea6653c2a5a003341c846b45f02bed Mon Sep 17 00:00:00 2001 From: liushuyu Date: Sat, 12 May 2018 23:00:36 -0600 Subject: [PATCH 03/13] travis: change MinGW job name in build matrix --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index f8d86d5e3..bc9c64a94 100644 --- a/.travis.yml +++ b/.travis.yml @@ -49,7 +49,7 @@ matrix: cache: ccache script: "./.travis/linux-frozen/build.sh" - os: linux - env: NAME="linux build (MinGW)" + env: NAME="MinGW build" sudo: required dist: trusty services: docker From e65d8840dc6919492ce81b7f4f029c71df6e7195 Mon Sep 17 00:00:00 2001 From: liushuyu Date: Sat, 12 May 2018 23:43:16 -0600 Subject: [PATCH 04/13] travis: use cmake in official repository (MinGW) --- .travis/linux-mingw/docker.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.travis/linux-mingw/docker.sh b/.travis/linux-mingw/docker.sh index 418858322..f113dbdd7 100755 --- a/.travis/linux-mingw/docker.sh +++ b/.travis/linux-mingw/docker.sh @@ -3,18 +3,13 @@ cd /citra MINGW_PACKAGES="sdl2-mingw-w64 qt5base-mingw-w64 qt5tools-mingw-w64 libsamplerate-mingw-w64 qt5multimedia-mingw-w64" apt-get update -apt-get install -y gpg wget git python3-pip ccache g++-mingw-w64-x86-64 gcc-mingw-w64-x86-64 mingw-w64-tools +apt-get install -y gpg wget git python3-pip ccache g++-mingw-w64-x86-64 gcc-mingw-w64-x86-64 mingw-w64-tools cmake # HACK: the repository does not contain necessary packages for 18.04, we'll use packages for 17.10 for now echo 'deb http://ppa.launchpad.net/tobydox/mingw-w64/ubuntu artful main ' > /etc/apt/sources.list.d/extras.list apt-key adv --keyserver keyserver.ubuntu.com --recv '72931B477E22FEFD47F8DECE02FE5F12ADDE29B2' apt-get update apt-get install -y ${MINGW_PACKAGES} -# Get a recent version of CMake -wget -q --show-progress https://cmake.org/files/v3.10/cmake-3.10.1-Linux-x86_64.sh -echo y | sh cmake-3.10.1-Linux-x86_64.sh --prefix=cmake -export PATH=/citra/cmake/cmake-3.10.1-Linux-x86_64/bin:$PATH - # fix a problem in current MinGW headers wget -q https://github.com/Alexpux/mingw-w64/raw/d0d7f784833bbb0b2d279310ddc6afb52fe47a46/mingw-w64-headers/crt/errno.h -O /usr/x86_64-w64-mingw32/include/errno.h From 66c4b8afd919130bda2da69a2cd8c4a3c7fc7e44 Mon Sep 17 00:00:00 2001 From: liushuyu Date: Mon, 14 May 2018 21:01:17 -0600 Subject: [PATCH 05/13] travis: correct path to the platform plugin --- .travis/linux-mingw/docker.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis/linux-mingw/docker.sh b/.travis/linux-mingw/docker.sh index f113dbdd7..011bcd320 100755 --- a/.travis/linux-mingw/docker.sh +++ b/.travis/linux-mingw/docker.sh @@ -29,7 +29,8 @@ mkdir package QT_PLATFORM_DLL_PATH='/usr/x86_64-w64-mingw32/lib/qt5/plugins/platforms/' find build/ -name "citra*.exe" -exec cp {} 'package' \; -cp "${QT_PLATFORM_DLL_PATH}/qwindows.dll" package/ +mkdir package/platforms +cp "${QT_PLATFORM_DLL_PATH}/qwindows.dll" package/platforms/ for i in package/*.exe; do From 5543c9c09482db643864c7065aa566705954cdcf Mon Sep 17 00:00:00 2001 From: James Rowe Date: Mon, 14 May 2018 22:30:40 -0600 Subject: [PATCH 06/13] Build: Change the linux-mingw upload folder to canary-mingw to match the old naming scheme --- .travis/common/post-upload.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.travis/common/post-upload.sh b/.travis/common/post-upload.sh index 90deaaec8..28735a9cf 100755 --- a/.travis/common/post-upload.sh +++ b/.travis/common/post-upload.sh @@ -11,6 +11,9 @@ if [ -z $TRAVIS_TAG ]; then RELEASE_NAME=head else RELEASE_NAME=$(echo $TRAVIS_TAG | cut -d- -f1) + if [ "$NAME" = "MinGW build" ]; then + RELEASE_NAME="${RELEASE_NAME}-mingw" + fi fi mv "$REV_NAME" $RELEASE_NAME From 15ca6550fe9d6c24ed87e91c5e1285fa8ffbd210 Mon Sep 17 00:00:00 2001 From: liushuyu Date: Tue, 15 May 2018 14:18:40 -0600 Subject: [PATCH 07/13] travis: add essential flags to cmake cmdline added -DENABLE_COMPATIBILITY_LIST_DOWNLOAD=ON --- .travis/linux-mingw/docker.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis/linux-mingw/docker.sh b/.travis/linux-mingw/docker.sh index 011bcd320..c8e9b7040 100755 --- a/.travis/linux-mingw/docker.sh +++ b/.travis/linux-mingw/docker.sh @@ -14,7 +14,7 @@ apt-get install -y ${MINGW_PACKAGES} wget -q https://github.com/Alexpux/mingw-w64/raw/d0d7f784833bbb0b2d279310ddc6afb52fe47a46/mingw-w64-headers/crt/errno.h -O /usr/x86_64-w64-mingw32/include/errno.h mkdir build && cd build -cmake .. -DCMAKE_TOOLCHAIN_FILE="$(pwd)/../CMakeModules/MinGWCross.cmake" -DUSE_CCACHE=ON -DCMAKE_BUILD_TYPE=Release -DENABLE_QT_TRANSLATION=ON -DCITRA_ENABLE_COMPATIBILITY_REPORTING=${ENABLE_COMPATIBILITY_REPORTING:-"OFF"} +cmake .. -DCMAKE_TOOLCHAIN_FILE="$(pwd)/../CMakeModules/MinGWCross.cmake" -DUSE_CCACHE=ON -DCMAKE_BUILD_TYPE=Release -DENABLE_QT_TRANSLATION=ON -DCITRA_ENABLE_COMPATIBILITY_REPORTING=${ENABLE_COMPATIBILITY_REPORTING:-"OFF"} -DENABLE_COMPATIBILITY_LIST_DOWNLOAD=ON make -j4 echo "Tests skipped" From 6a8008caf28c5361bc20b793df9c5f3144402c72 Mon Sep 17 00:00:00 2001 From: liushuyu Date: Wed, 16 May 2018 21:15:11 -0600 Subject: [PATCH 08/13] travis: copy mediaservice plugin to support camera --- .travis/linux-mingw/docker.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis/linux-mingw/docker.sh b/.travis/linux-mingw/docker.sh index c8e9b7040..e68b3a1cd 100755 --- a/.travis/linux-mingw/docker.sh +++ b/.travis/linux-mingw/docker.sh @@ -31,6 +31,7 @@ find build/ -name "citra*.exe" -exec cp {} 'package' \; mkdir package/platforms cp "${QT_PLATFORM_DLL_PATH}/qwindows.dll" package/platforms/ +cp -r "${QT_PLATFORM_DLL_PATH}/../mediaservice/" package/ for i in package/*.exe; do From dfebf89cc9c159d9d987d61dbaa24a123a78a302 Mon Sep 17 00:00:00 2001 From: liushuyu Date: Wed, 16 May 2018 22:09:03 -0600 Subject: [PATCH 09/13] travis: force increase ccache size (MinGW only) --- .travis/linux-mingw/docker.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis/linux-mingw/docker.sh b/.travis/linux-mingw/docker.sh index e68b3a1cd..403c1ece2 100755 --- a/.travis/linux-mingw/docker.sh +++ b/.travis/linux-mingw/docker.sh @@ -12,6 +12,8 @@ apt-get install -y ${MINGW_PACKAGES} # fix a problem in current MinGW headers wget -q https://github.com/Alexpux/mingw-w64/raw/d0d7f784833bbb0b2d279310ddc6afb52fe47a46/mingw-w64-headers/crt/errno.h -O /usr/x86_64-w64-mingw32/include/errno.h +# override Travis CI unreasonable ccache size +echo 'max_size = 3.0G' > "$HOME/.ccache/ccache.conf" mkdir build && cd build cmake .. -DCMAKE_TOOLCHAIN_FILE="$(pwd)/../CMakeModules/MinGWCross.cmake" -DUSE_CCACHE=ON -DCMAKE_BUILD_TYPE=Release -DENABLE_QT_TRANSLATION=ON -DCITRA_ENABLE_COMPATIBILITY_REPORTING=${ENABLE_COMPATIBILITY_REPORTING:-"OFF"} -DENABLE_COMPATIBILITY_LIST_DOWNLOAD=ON From 3a82c2eb3a543f78503d7f3997036b5fb6beabdd Mon Sep 17 00:00:00 2001 From: liushuyu Date: Fri, 25 May 2018 19:54:34 -0600 Subject: [PATCH 10/13] travis: only warn about missing dll (MinGW) --- .travis/linux-mingw/scan_dll.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.travis/linux-mingw/scan_dll.py b/.travis/linux-mingw/scan_dll.py index 2f4c92769..163183f2e 100755 --- a/.travis/linux-mingw/scan_dll.py +++ b/.travis/linux-mingw/scan_dll.py @@ -16,6 +16,8 @@ DLL_PATH = [ '/usr/lib/gcc/x86_64-w64-mingw32/7.3-posix/' ] +missing = [] + def parse_imports(file_name): results = [] @@ -56,7 +58,8 @@ def parse_imports_recursive(file_name, path_list=[]): # find the requested dll in the provided paths full_path = find_dll(dep) if not full_path: - raise Exception('Cannot find %s!' % dep) + missing.append(dep) + continue full_list.append(dep) q.put(full_path) path_list.append(full_path) @@ -94,6 +97,9 @@ def main(): return 1 print('Scanning dependencies...') deploy(to_deploy, tgt_dir) + if missing: + print('Following DLLs are not found: %s' % ('\n'.join(missing))) + return 0 if __name__ == '__main__': From 4cd25d115d7ec1e2fc941f3426792f89bb7d0c93 Mon Sep 17 00:00:00 2001 From: liushuyu Date: Sun, 17 Jun 2018 15:56:26 -0600 Subject: [PATCH 11/13] travis: share env vars with Docker --- .travis/linux-mingw/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis/linux-mingw/build.sh b/.travis/linux-mingw/build.sh index ac2887752..161c244ee 100755 --- a/.travis/linux-mingw/build.sh +++ b/.travis/linux-mingw/build.sh @@ -1,3 +1,3 @@ #!/bin/bash -ex mkdir "$HOME/.ccache" || true -docker run -e ENABLE_COMPATIBILITY_REPORTING -v $(pwd):/citra -v "$HOME/.ccache":/root/.ccache ubuntu:18.04 /bin/bash -ex /citra/.travis/linux-mingw/docker.sh +docker run --env-file .travis/common/travis-ci.env -e ENABLE_COMPATIBILITY_REPORTING -v $(pwd):/citra -v "$HOME/.ccache":/root/.ccache ubuntu:18.04 /bin/bash -ex /citra/.travis/linux-mingw/docker.sh From 080eed7d782515c66cdecbffc269a63b7b38efd4 Mon Sep 17 00:00:00 2001 From: liushuyu Date: Thu, 5 Jul 2018 16:10:20 +0800 Subject: [PATCH 12/13] travis: remove debug dlls from the final package --- .travis/linux-mingw/docker.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis/linux-mingw/docker.sh b/.travis/linux-mingw/docker.sh index 403c1ece2..7436c546d 100755 --- a/.travis/linux-mingw/docker.sh +++ b/.travis/linux-mingw/docker.sh @@ -34,7 +34,7 @@ find build/ -name "citra*.exe" -exec cp {} 'package' \; mkdir package/platforms cp "${QT_PLATFORM_DLL_PATH}/qwindows.dll" package/platforms/ cp -r "${QT_PLATFORM_DLL_PATH}/../mediaservice/" package/ - +rm -f package/mediaservice/*d.dll for i in package/*.exe; do # we need to process pdb here, however, cv2pdb From 13049b289dcc4f6296fdfff51914e8bdc7f371a4 Mon Sep 17 00:00:00 2001 From: liushuyu Date: Thu, 12 Jul 2018 09:31:42 +0800 Subject: [PATCH 13/13] travis: add imageformats plugins (per #3891) --- .travis/linux-mingw/docker.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis/linux-mingw/docker.sh b/.travis/linux-mingw/docker.sh index 7436c546d..c7910e9f4 100755 --- a/.travis/linux-mingw/docker.sh +++ b/.travis/linux-mingw/docker.sh @@ -31,9 +31,11 @@ mkdir package QT_PLATFORM_DLL_PATH='/usr/x86_64-w64-mingw32/lib/qt5/plugins/platforms/' find build/ -name "citra*.exe" -exec cp {} 'package' \; +# copy Qt plugins mkdir package/platforms cp "${QT_PLATFORM_DLL_PATH}/qwindows.dll" package/platforms/ -cp -r "${QT_PLATFORM_DLL_PATH}/../mediaservice/" package/ +cp -rv "${QT_PLATFORM_DLL_PATH}/../mediaservice/" package/ +cp -rv "${QT_PLATFORM_DLL_PATH}/../imageformats/" package/ rm -f package/mediaservice/*d.dll for i in package/*.exe; do