forked from TravaOpenJDK/trava-jdk-8-dcevm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_windows.sh
26 lines (20 loc) · 1.26 KB
/
build_windows.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
export PATH=/cygdrive/c/tools/cygwin/bin:$PATH
wget -q -O OpenJDK8_x64_Windows.zip "https://api.adoptopenjdk.net/v2/binary/releases/openjdk8?openjdk_impl=hotspot&os=windows&arch=x64&release=latest&type=jdk"
wget -q -O freetype.zip https://github.com/ubawurinna/freetype-windows-binaries/releases/download/v2.9.1/freetype-2.9.1.zip
JDK8_BOOT_DIR="$PWD/$(unzip -Z1 OpenJDK8_x64_Windows.zip | grep 'bin/javac' | tr '/' '\n' | tail -3 | head -1)"
unzip -q OpenJDK8_x64_Windows.zip
mkdir -p openjdk-build/freetype
mv freetype.zip openjdk-build/freetype/
$(cd openjdk-build/freetype/; unzip -q freetype.zip)
# unset cygwin's gcc preconfigured
unset -v CC
unset -v CXX
FREETYPE_DIR="$PWD/openjdk-build/freetype"
# export TOOLCHAIN_VERSION="2010"
# unset VS120COMNTOOLS
# unset VS110COMNTOOLS
cd ./openjdk-build
export LOG=info
export LANG=C
export JAVA_HOME=$JDK8_BOOT_DIR
./makejdk-any-platform.sh --branch "${SOURCE_JDK_BRANCH}" --tag "${SOURCE_JDK_TAG}" --jdk-boot-dir "${JDK8_BOOT_DIR}" --build-variant dcevm --hswap-agent-download-url ${HSWAP_AGENT_DOWNLOAD_URL} --check-fingerprint false --configure-args "--with-freetype-include=${FREETYPE_DIR}/include --with-freetype-lib=${FREETYPE_DIR}/win64 --disable-ccache" --target-file-name java8-openjdk-dcevm-${TRAVIS_OS_NAME}.zip jdk8u