diff --git a/ports/ci/appveyor/deploy.bat b/ports/ci/appveyor/deploy.bat index e420138..f4b9339 100755 --- a/ports/ci/appveyor/deploy.bat +++ b/ports/ci/appveyor/deploy.bat @@ -27,6 +27,9 @@ set PACKAGES_DIR=%APPVEYOR_BUILD_FOLDER%\webcamoid-packages git clone https://github.com/webcamoid/DeployTools.git +C:\msys64\mingw32\bin\strip.exe "%INSTALL_PREFIX%"\x86\* +C:\msys64\mingw64\bin\strip.exe "%INSTALL_PREFIX%"\x64\* + set PYTHONPATH=%cd%\DeployTools set BUILD_PATH=%cd%\build-x64 %PYTHON_PATH%\python.exe DeployTools\deploy.py ^ diff --git a/ports/ci/appveyor/install_deps.bat b/ports/ci/appveyor/install_deps.bat index 19da867..ba7df51 100755 --- a/ports/ci/appveyor/install_deps.bat +++ b/ports/ci/appveyor/install_deps.bat @@ -30,6 +30,8 @@ if "%CMAKE_GENERATOR%" == "MSYS Makefiles" ( make ^ pkg-config ^ python3 ^ + mingw-w64-x86_64-binutils ^ + mingw-w64-i686-binutils ^ mingw-w64-x86_64-cmake ^ mingw-w64-i686-cmake ^ mingw-w64-x86_64-pkg-config ^ diff --git a/ports/ci/travis/deploy.sh b/ports/ci/travis/deploy.sh index 9a4325f..6b2b443 100644 --- a/ports/ci/travis/deploy.sh +++ b/ports/ci/travis/deploy.sh @@ -30,6 +30,11 @@ if [ "${TRAVIS_OS_NAME}" = linux ]; then sudo mount --bind root.x86_64 root.x86_64 sudo mount --bind $HOME root.x86_64/$HOME + cat << EOF > package_info_strip.conf +[System] +stripCmd = x86_64-w64-mingw32-strip +EOF + cat << EOF > ${DEPLOYSCRIPT} #!/bin/sh @@ -57,9 +62,14 @@ cd .. cd build-x86 cmake --build . --target install cd .. + +i686-w64-mingw32-strip \${INSTALL_PREFIX}/x86/* +x86_64-w64-mingw32-strip \${INSTALL_PREFIX}/x64/* + python ./DeployTools/deploy.py \ -d "\${INSTALL_PREFIX}" \ -c "\${BUILD_PATH}/package_info.conf" \ + -c "./package_info_strip.conf" \ -o "\${PACKAGES_DIR}" EOF chmod +x ${DEPLOYSCRIPT}