docker.sh 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #!/bin/bash -ex
  2. cd /yuzu
  3. # override Travis CI unreasonable ccache size
  4. echo 'max_size = 3.0G' > "$HOME/.ccache/ccache.conf"
  5. mkdir build && cd build
  6. cmake .. -G Ninja -DCMAKE_TOOLCHAIN_FILE="$(pwd)/../CMakeModules/MinGWCross.cmake" -DUSE_CCACHE=ON -DENABLE_COMPATIBILITY_LIST_DOWNLOAD=ON -DCMAKE_BUILD_TYPE=Release
  7. ninja
  8. # Clean up the dirty hacks
  9. rm /bin/uname && mv /bin/uname1 /bin/uname
  10. rm /bin/cmd
  11. ccache -s
  12. echo "Tests skipped"
  13. #ctest -VV -C Release
  14. echo 'Prepare binaries...'
  15. cd ..
  16. mkdir package
  17. QT_PLATFORM_DLL_PATH='/usr/x86_64-w64-mingw32/lib/qt5/plugins/platforms/'
  18. find build/ -name "yuzu*.exe" -exec cp {} 'package' \;
  19. # copy Qt plugins
  20. mkdir package/platforms
  21. cp "${QT_PLATFORM_DLL_PATH}/qwindows.dll" package/platforms/
  22. cp -rv "${QT_PLATFORM_DLL_PATH}/../mediaservice/" package/
  23. cp -rv "${QT_PLATFORM_DLL_PATH}/../imageformats/" package/
  24. rm -f package/mediaservice/*d.dll
  25. for i in package/*.exe; do
  26. # we need to process pdb here, however, cv2pdb
  27. # does not work here, so we just simply strip all the debug symbols
  28. x86_64-w64-mingw32-strip "${i}"
  29. done
  30. pip3 install pefile
  31. python3 .travis/linux-mingw/scan_dll.py package/*.exe "package/"
  32. python3 .travis/linux-mingw/scan_dll.py package/imageformats/*.dll "package/"