]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
travis: Build Windows-specific plugins
authorTobias Brunner <tobias@strongswan.org>
Wed, 22 Mar 2017 17:04:05 +0000 (18:04 +0100)
committerTobias Brunner <tobias@strongswan.org>
Thu, 23 Mar 2017 17:29:18 +0000 (18:29 +0100)
The plugins can only be built on x64 as the MinGW headers on Ubuntu 12.04,
which we have to use for x86 due to another issue with MinGW, are too old.

scripts/test.sh

index 50e1546f415f6491ce546806ef2e2b0c8140c9a5..4dc58d827d69eba066d1df577db7711b46663a74 100755 (executable)
@@ -70,9 +70,15 @@ win*)
        DEPS="gcc-mingw-w64-base"
        case "$TEST" in
        win64)
-               CONFIG="--host=x86_64-w64-mingw32 $CONFIG"
+               # headers on 12.04 are too old, so we only build the plugins here
+               CONFIG="--host=x86_64-w64-mingw32 $CONFIG --enable-dbghelp-backtraces
+                               --enable-kernel-iph --enable-kernel-wfp --enable-winhttp"
                DEPS="gcc-mingw-w64-x86-64 binutils-mingw-w64-x86-64 mingw-w64-x86-64-dev $DEPS"
                CC="x86_64-w64-mingw32-gcc"
+               # apply patch to MinGW headers
+               if test -z "$1"; then
+                       sudo patch -f -p 4 -d /usr/share/mingw-w64/include < src/libcharon/plugins/kernel_wfp/mingw-w64-4.8.1.diff
+               fi
                ;;
        win32)
                CONFIG="--host=i686-w64-mingw32 $CONFIG"