-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add MinGW-w64 builds (@ed-alertedh, #2553)
* Add build configuration for MinGW-w64. Primarily just needed to use _WIN32 instead of _MSC_VER in header guards. Various other small patches included to account for compiler differences. * try alternative win32 datetime format method avoiding ATL (which isn't available in MinGW)
- Loading branch information
1 parent
844e4b4
commit 5f1fc42
Showing
56 changed files
with
267 additions
and
185 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
$mingw64 cmake -DCMAKE_MAKE_PROGRAM=mingw32-make -G "MinGW Makefiles" \ | ||
-DCMAKE_INSTALL_PREFIX=$PWD/dest/ \ | ||
-DMINGW_BUILD:BOOL=ON \ | ||
-DWITHOUT_WIN32_CONFIG:BOOL=ON \ | ||
-DRDKAFKA_BUILD_EXAMPLES:BOOL=ON \ | ||
-DRDKAFKA_BUILD_TESTS:BOOL=ON \ | ||
-DWITH_LIBDL:BOOL=OFF \ | ||
-DWITH_PLUGINS:BOOL=OFF \ | ||
-DWITH_SASL:BOOL=ON \ | ||
-DWITH_SSL:BOOL=ON \ | ||
-DWITH_ZLIB:BOOL=OFF \ | ||
-DRDKAFKA_BUILD_STATIC:BOOL=OFF \ | ||
-DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS:BOOL=TRUE . | ||
|
||
$mingw64 mingw32-make | ||
$mingw64 mingw32-make install | ||
|
||
export PATH="$PWD/dest/bin:/mingw64/bin/:${PATH}" | ||
cd tests | ||
./test-runner.exe -l -Q -p1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
# Slightly modified from: | ||
# https://docs.travis-ci.com/user/reference/windows/#how-do-i-use-msys2 | ||
case $TRAVIS_OS_NAME in | ||
windows) | ||
[[ ! -f C:/tools/msys64/msys2_shell.cmd ]] && rm -rf C:/tools/msys64 | ||
choco uninstall -y mingw | ||
choco upgrade --no-progress -y msys2 | ||
export msys2='cmd //C RefreshEnv.cmd ' | ||
export msys2+='& set MSYS=winsymlinks:nativestrict ' | ||
export msys2+='& C:\\tools\\msys64\\msys2_shell.cmd -defterm -no-start' | ||
export mingw64="$msys2 -mingw64 -full-path -here -c "\"\$@"\" --" | ||
export msys2+=" -msys2 -c "\"\$@"\" --" | ||
$msys2 pacman --sync --noconfirm --needed mingw-w64-x86_64-toolchain mingw-w64-x86_64-cmake mingw-w64-x86_64-openssl mingw-w64-x86_64-cyrus-sasl | ||
## Install more MSYS2 packages from https://packages.msys2.org/base here | ||
taskkill //IM gpg-agent.exe //F || true # https://travis-ci.community/t/4967 | ||
export PATH=/C/tools/msys64/mingw64/bin:$PATH | ||
export MAKE=mingw32-make # so that Autotools can find it | ||
;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.