From 624369df7dd7d3e2a5b003aa1e7fe5ffdc561fa6 Mon Sep 17 00:00:00 2001 From: Ernesto Castellotti Date: Fri, 30 Nov 2018 18:19:29 +0100 Subject: [PATCH] Update win.sh --- travis/win.sh | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/travis/win.sh b/travis/win.sh index b0574ae..962b9da 100644 --- a/travis/win.sh +++ b/travis/win.sh @@ -1,19 +1,30 @@ #!/bin/bash -# Vcpkg -git clone https://github.com/Microsoft/vcpkg.git -cd vcpkg -ls -./bootstrap-vcpkg.sh -ls -sudo ./vcpkg integrate install -./vcpkg install zlib:x64-windows-static openssl:x64-windows-static -cd $TRAVIS_BUILD_DIR - # Build deps choco install gperf +choco install strawberryperl choco install jdk8 -params 'installdir=c:\\java8' +# openssl +mkdir $TRAVIS_BUILD_DIR/openssl-root +git clone https://github.com/openssl/openssl.git -b OpenSSL_1_1_1-stable +cd openssl +perl Configure enable-static-engine enable-capieng no-ssl2 -utf-8 VC-WIN64A --prefix=$TRAVIS_BUILD_DIR/openssl-root --openssldir=$TRAVIS_BUILD_DIR/openssl-root no-shared +nmake +nmake install +cd .. + +# zlib +mkdir $TRAVIS_BUILD_DIR/zlib-root +git clone https://github.com/madler/zlib.git -b v1.2.11 +cd zlib +cmake -DCMAKE_INSTALL_PREFIX:PATH=$TRAVIS_BUILD_DIR/zlib-root -DSKIP_BUILD_EXAMPLES=ON . +cmake --build . --target install +cd .. + +ls $TRAVIS_BUILD_DIR/openssl-root +ls $TRAVIS_BUILD_DIR/zlib-root + # Dirs cd src/main/jni mkdir build