Update win.sh
This commit is contained in:
parent
92ffb240d7
commit
fe3045cae0
@ -5,6 +5,13 @@ choco install gperf
|
|||||||
choco install strawberryperl
|
choco install strawberryperl
|
||||||
choco install openjdk11 -params 'installdir=c:\\java11'
|
choco install openjdk11 -params 'installdir=c:\\java11'
|
||||||
|
|
||||||
|
cd $TRAVIS_BUILD_DIR
|
||||||
|
git clone https://github.com/Microsoft/vcpkg.git
|
||||||
|
cd vcpkg
|
||||||
|
./bootstrap-vcpkg.bat
|
||||||
|
./vcpkg.exe install openssl:x64-windows zlib:x64-windows
|
||||||
|
cd ..
|
||||||
|
|
||||||
# openssl
|
# openssl
|
||||||
mkdir $TRAVIS_BUILD_DIR/openssl-root
|
mkdir $TRAVIS_BUILD_DIR/openssl-root
|
||||||
git clone https://github.com/openssl/openssl.git -b OpenSSL_1_1_1-stable
|
git clone https://github.com/openssl/openssl.git -b OpenSSL_1_1_1-stable
|
||||||
@ -44,7 +51,7 @@ cd jnibuild
|
|||||||
export JAVA_HOME="c:\\java11"
|
export JAVA_HOME="c:\\java11"
|
||||||
|
|
||||||
# Build
|
# Build
|
||||||
cmake -DCMAKE_BUILD_TYPE=Release -DTD_ENABLE_JNI=ON -DCMAKE_INSTALL_PREFIX:PATH=${TD_BIN_DIR} -DCMAKE_TOOLCHAIN_FILE:FILEPATH=$TRAVIS_BUILD_DIR\\vcpkg\\scripts\\buildsystems\\vcpkg.cmake ${TD_SRC_DIR}
|
cmake -A x64 -DCMAKE_BUILD_TYPE=Release -DTD_ENABLE_JNI=ON -DCMAKE_INSTALL_PREFIX:PATH=${TD_BIN_DIR} -DCMAKE_TOOLCHAIN_FILE:FILEPATH=$TRAVIS_BUILD_DIR\\vcpkg\\scripts\\buildsystems\\vcpkg.cmake ${TD_SRC_DIR}
|
||||||
cmake --build . --target install
|
cmake --build . --target install
|
||||||
|
|
||||||
|
|
||||||
@ -52,7 +59,7 @@ cd ../../../../../
|
|||||||
#mvn install -X
|
#mvn install -X
|
||||||
|
|
||||||
cd src/main/jni/jtdlib/build
|
cd src/main/jni/jtdlib/build
|
||||||
cmake -DCMAKE_BUILD_TYPE=Release -DTd_DIR=${TD_BIN_DIR}/lib/cmake/Td -DJAVA_SRC_DIR=${JAVA_SRC_DIR} -DCMAKE_INSTALL_PREFIX:PATH=.. -DCMAKE_TOOLCHAIN_FILE:FILEPATH=$TRAVIS_BUILD_DIR\\vcpkg\\scripts\\buildsystems\\vcpkg.cmake ..
|
cmake -A x64 -DCMAKE_BUILD_TYPE=Release -DTd_DIR=${TD_BIN_DIR}/lib/cmake/Td -DJAVA_SRC_DIR=${JAVA_SRC_DIR} -DCMAKE_INSTALL_PREFIX:PATH=.. -DCMAKE_TOOLCHAIN_FILE:FILEPATH=$TRAVIS_BUILD_DIR\\vcpkg\\scripts\\buildsystems\\vcpkg.cmake ..
|
||||||
cmake --build . --target install
|
cmake --build . --target install
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
|
Loading…
Reference in New Issue
Block a user