mirror of
https://github.com/ErnyTech-Archive/JTDLib
synced 2024-06-10 07:07:59 +02:00
Update win.sh
This commit is contained in:
parent
f29929c94d
commit
624369df7d
|
@ -1,19 +1,30 @@
|
||||||
#!/bin/bash
|
#!/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
|
# Build deps
|
||||||
choco install gperf
|
choco install gperf
|
||||||
|
choco install strawberryperl
|
||||||
choco install jdk8 -params 'installdir=c:\\java8'
|
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
|
# Dirs
|
||||||
cd src/main/jni
|
cd src/main/jni
|
||||||
mkdir build
|
mkdir build
|
||||||
|
|
Loading…
Reference in New Issue
Block a user