1 Star 0 Fork 0

依天丶/openjdk8-upstream-binaries

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
build8.cmd 18.57 KB
一键复制 编辑 原始数据 按行查看 历史
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559
@echo on
setlocal EnableDelayedExpansion
time /t
rem get rid of build variables that might be kicking around on desktop environment
if not defined source_dir (
set source_dir=
set spec_dir=
set WORK_DIR=
set JAVA_HOME=
rem set EA_SUFFIX="_ea"
set DEV_REPO=
set DOWNLOAD_TOOLS=1
set DOWNLOAD_JDK=1
set CLEAN_JDK=
set CONFIGURE_JDK=1
set REVERT_JDK=
set BUILD_JDK=1
set BUILD_JRE=1
set BUILD_DEMOS=1
set PACKAGE_RELEASE=1
set OJDK_DEBUG_LEVEL=release
)
rem define source version
set UPDATE=342
set BUILD=b07
set MILESTONE=redhat
set OJDK_MILESTONE=8u
set OJDK_UPDATE=342
set OJDK_BUILD=b07
set OJDK_TAG=jdk%OJDK_MILESTONE%%OJDK_UPDATE%-%OJDK_BUILD%
rem set EA_SUFFIX="_ea"
rem uncomment to retrieve from jdk8u-dev repository
rem set DEV_REPO=-dev
rem uncomment and define to fetch OpenJDK source from GIT repo
set OJDK_REMOTE_REPO=https://github.com/openjdk/jdk8u%DEV_REPO%.git
rem define build characteristics
rem log level for JDK 'make': valid choices info debug
set LOG_LEVEL=debug
rem valid choices: release slowdebug fastdebug
set OJDK_DEBUG_LEVEL=release
rem try to shorten paths for cygwin
rem perform all work in cygwin /tmp directory
rem use forward slashes
if not defined source_dir (
rem batch file build
set WORK_DIR=C:/tmp/build-8
set source_dir=!WORK_DIR!
set spec_dir=%~dp0
) else (
rem cloud build
set WORK_DIR=C:/tmp/build-8
if not defined spec_dir (
set spec_dir=%source_dir:\=/%
)
)
if not exist %WORK_DIR% mkdir "%WORK_DIR%"
rem local directory for build toolchain, tools and libraries
set OJDKBUILD_DIR=%WORK_DIR%/ojdkbuild
rem JDK configure script options
set OJDK_CONF=windows-x86_64-server-%OJDK_DEBUG_LEVEL%
rem if set, delete debug files
if ".%OJDK_DEBUG_LEVEL%" == ".release" (
set DELETE_DEBUG_FILES=1
)
rem define build tools repo and version
set OJDKBUILD_REPOBASE=https://github.com/ojdkbuild
set OJDKBUILD_TAG=b7bc723e18deefef701752b57dbd25c0072ef4a7
rem uncomment to enable AV scan
rem set CLAMSCAN=C:/cygwin64/bin/clamscan.exe
rem local directory to clone JDK repo into
set OJDK_SRC_DIR=jdk%OJDK_MILESTONE%%DEV_REPO%
set OJDK_SRC_PATH=%WORK_DIR%/%OJDK_SRC_DIR%
@echo *** work directory %WORK_DIR%
@echo *** JDK tag %OJDK_TAG%
@echo *** debug level %OJDK_DEBUG_LEVEL%
rem ZIP_DIR_NAME is the directory the zipfile (RELEASE_ZIPFILE) will unpack into
if defined BUILD_JDK (
set ZIP_DIR_NAME=openjdk-%OJDK_MILESTONE%%OJDK_UPDATE%-%OJDK_BUILD%
set RELEASE_ZIPFILE=OpenJDK8U-jdk_x64_windows_%OJDK_MILESTONE%%OJDK_UPDATE%%OJDK_BUILD%%EA_SUFFIX%.zip
@echo final JDK product will be !RELEASE_ZIPFILE! directory !ZIP_DIR_NAME!
)
if defined BUILD_JRE (
set ZIP_JRE_DIR_NAME=openjdk-%OJDK_MILESTONE%%OJDK_UPDATE%-%OJDK_BUILD%-jre
set RELEASE_JRE_ZIPFILE=OpenJDK8U-jre_x64_windows_%OJDK_MILESTONE%%OJDK_UPDATE%%OJDK_BUILD%%EA_SUFFIX%.zip
@echo final JRE product will be !RELEASE_JRE_ZIPFILE! directory !ZIP_JRE_DIR_NAME!
)
time /t
call :download_boot_git || exit /b 1
set SAVEPATH=%PATH%
if defined DOWNLOAD_TOOLS (
call :download_ojdkbuild || exit /b 1
) else (
@echo *** skipping JDK tool downloads
)
call :setsdkenv
call :download_git || exit /b 1
if defined DOWNLOAD_TOOLS (
call :build_freetype || exit /b 1
) else (
@echo *** skipping JDK tool downloads
call :download_git || exit /b 1
)
time /t
if defined DOWNLOAD_JDK (
call :checkout_jdk_source || exit /b 1
)
time /t
if defined CLEAN_JDK (
call :clean_jdk || exit /b 1
)
if defined CONFIGURE_JDK (
call :configure_jdk_build || exit /b 1
)
time /t
if defined BUILD_JDK (
call :build_jdk || exit /b 1
time /t
call :test_jdk_version
if defined PACKAGE_RELEASE (
call :build_jdk_zip || exit /b 1
)
if defined BUILD_JRE (
call :build_jre_zip || exit /b 1
)
@echo *** JDK build completed
) else (
@echo *** skipping jdk build
)
time /t
if defined TEST_JDK (
call :setsdkenv
call :test_jdk || exit /b 1
) else (
@echo *** skipping jdk testing
)
@echo *** build is complete
exit /b 0
:test_jdk_version
@echo testing JDK version strings
rem EA build:
rem $ java -version
rem openjdk version "1.8.0_242-ea"
rem OpenJDK Runtime Environment (build 1.8.0_242-ea-b01)
rem OpenJDK 64-Bit Server VM (build 25.242-b01, mixed mode)
rem
rem GA build:
rem $ java -version
rem openjdk version "1.8.0_232"
rem OpenJDK Runtime Environment (build 1.8.0_232-b09)
rem OpenJDK 64-Bit Server VM (build 25.232-b09, mixed mode)
rem
set TEMPDIR=%WORK_DIR:/=\%
set EXPECTED_VERSION_FILE=%TEMPDIR%\expected_version.txt
set ACTUAL_VERSION_FILE=%TEMPDIR%\actual_version.txt
if defined EA_SUFFIX (
echo openjdk version "1.8.0_%OJDK_UPDATE%-ea" >%EXPECTED_VERSION_FILE% || exit /b 1
echo OpenJDK Runtime Environment (build 1.8.0_%OJDK_UPDATE%-ea-%OJDK_BUILD%^) >>%EXPECTED_VERSION_FILE%
echo OpenJDK 64-Bit Server VM (build 25.%OJDK_UPDATE%-%OJDK_BUILD%, mixed mode^) >>%EXPECTED_VERSION_FILE%
) else (
echo openjdk version "1.8.0_%OJDK_UPDATE%" >%EXPECTED_VERSION_FILE% || exit /b 1
echo OpenJDK Runtime Environment (build 1.8.0_%OJDK_UPDATE%-%OJDK_BUILD%^) >>%EXPECTED_VERSION_FILE%
echo OpenJDK 64-Bit Server VM (build 25.%OJDK_UPDATE%-%OJDK_BUILD%, mixed mode^) >>%EXPECTED_VERSION_FILE%
)
set JDK_HOME=
if exist "%OJDK_SRC_DIR%/build/%OJDK_CONF%/images/%ZIP_DIR_NAME%" (
set JDK_HOME=%OJDK_SRC_DIR%/build/%OJDK_CONF%/images/%ZIP_DIR_NAME%
)
if exist "%OJDK_SRC_DIR%/build/%OJDK_CONF%/images/j2sdk-image" (
set JDK_HOME=%OJDK_SRC_DIR%/build/%OJDK_CONF%/images/j2sdk-image
)
if not defined JDK_HOME (
@echo *** no JDK_HOME found in %OJDK_SRC_DIR%/build/%OJDK_CONF%/images
exit /b 1
)
%JDK_HOME:/=\%\bin\java -version 2>%ACTUAL_VERSION_FILE% || exit /b 1
diff -b %EXPECTED_VERSION_FILE% %ACTUAL_VERSION_FILE%
if not %ERRORLEVEL% == 0 (
echo *** Version strings do not match.
echo expected:
type %EXPECTED_VERSION_FILE%
echo actual:
type %ACTUAL_VERSION_FILE%
exit /b 1
) else (
echo version string passes test:
type %ACTUAL_VERSION_FILE%
)
exit /b 0
:checkout_jdk_source
@echo *** checkout the JDK
@echo on
if not exist "%OJDK_SRC_PATH%" (
@echo *** fetch JDK base repo
cd "%WORK_DIR%"
%GIT% clone %OJDK_REMOTE_REPO% %OJDK_SRC_DIR% || exit /b 1
if defined OJDK_TAG (
cd %OJDK_SRC_DIR% || exit /b 1
%GIT% checkout "%OJDK_TAG%" || exit /b 1
)
)
@echo *** fix permissions of jdk source code
bash -c "chmod -R 0777 %OJDK_SRC_PATH%"
rem takeown /f "%OJDK_SRC_PATH:/=\%" /r > nul || exit /b 1
rem icacls "%OJDK_SRC_PATH:/=\%" /reset /T /C /Q || exit /b 1
@echo off
rem print out the SCS ID of what we are building
@echo *** current SCS changeset
pushd "%OJDK_SRC_PATH%"
%GIT% log -1
popd
exit /b 0
:configure_jdk_build
@echo *** configure JDK build
rem create this file so that the JDK configure script can see it and confirm the existence of a VS toolchain
if not exist %OJDKBUILD_DIR%/tools/toolchain/vs2010e/VC/bin/x86_amd64/vcvarsx86_amd64.bat (
echo rem placeholder for JDK configure script toolchain detection >%OJDKBUILD_DIR%/tools/toolchain/vs2010e/VC/bin/x86_amd64/vcvarsx86_amd64.bat
)
set CFGARGS=--enable-unlimited-crypto=yes
set CFGARGS=%CFGARGS% --with-conf-name=%OJDK_CONF%
set CFGARGS=%CFGARGS% --enable-debug-symbols=yes
set CFGARGS=%CFGARGS% --with-debug-level=%OJDK_DEBUG_LEVEL%
set CFGARGS=%CFGARGS% --with-boot-jdk=%OJDKBUILD_DIR%/tools/bootjdk7
set CFGARGS=%CFGARGS% --with-toolchain-path=%OJDKBUILD_DIR%/tools/toolchain
set CFGARGS=%CFGARGS% --with-toolchain-version=2010
set CFGARGS=%CFGARGS% --with-msvcr-dll=%OJDKBUILD_DIR%/tools/toolchain/msvcr100/amd64/msvcr100.dll
set CFGARGS=%CFGARGS% --with-freetype-include=%OJDKBUILD_DIR%/lookaside/freetype/include
set CFGARGS=%CFGARGS% --with-freetype-lib=%OJDKBUILD_DIR%/deps/freetype/build/bin
set CFGARGS=%CFGARGS% --with-num-cores=2
if defined EA_SUFFIX (
set CFGARGS=!CFGARGS! --with-milestone="ea"
set CFGARGS=!CFGARGS! --with-build-number=%OJDK_BUILD%
rem set CFGARGS=!CFGARGS! --with-user-release-suffix="ea"
) else (
set CFGARGS=!CFGARGS! --with-milestone="fcs"
set CFGARGS=!CFGARGS! --with-build-number=%OJDK_BUILD%
)
set CFGARGS=!CFGARGS! --with-update-version=%OJDK_UPDATE%
if defined JTREG_HOME (
set CFGARGS=!CFGARGS! --with-jtreg=%JTREG_HOME%
)
pushd "%OJDK_SRC_PATH%"
rem C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -c "dir . -R | foreach { $_.LastWriteTime = [System.DateTime]::Now }"
bash ./configure %CFGARGS% || exit /b 1
popd || exit /b 1
exit /b 0
:build_jdk
@echo *** build JDK
pushd "%OJDK_SRC_PATH%"
if ".%OJDK_DEBUG_LEVEL%" == ".slowdebug" (
set JDK_TARGETS=images
) else (
set JDK_TARGETS=images
)
make LOG=%LOG_LEVEL% CONF=%OJDK_CONF% %JDK_TARGETS% || exit /b 1
if defined BUILD_STATIC_LIBS (
@echo *** prepare JDK for JVMCI build
cd "%OJDK_SRC_PATH%/build/%OJDK_CONF%/images/"
bash -c "find . -name \*.diz -exec rm {} \;"
copy "%OJDK_SRC_PATH%/build/%OJDK_CONF%/jdk/objs\java_static.lib" "%OJDK_SRC_PATH%/build/%OJDK_CONF%/images/j2sdk-image/jre/lib/java.lib" || exit /b 1
copy "%OJDK_SRC_PATH%/build/%OJDK_CONF%/jdk/objs\net_static.lib" "%OJDK_SRC_PATH%/build/%OJDK_CONF%/images/j2sdk-image/jre/lib/net.lib" || exit /b 1
copy "%OJDK_SRC_PATH%/build/%OJDK_CONF%/jdk/objs\nio_static.lib" "%OJDK_SRC_PATH%/build/%OJDK_CONF%/images/j2sdk-image/jre/lib/nio.lib" || exit /b 1
copy "%OJDK_SRC_PATH%/build/%OJDK_CONF%/jdk/objs\zip_static.lib" "%OJDK_SRC_PATH%/build/%OJDK_CONF%/images/j2sdk-image/jre/lib/zip.lib" || exit /b 1
copy "%OJDK_SRC_PATH%/build/%OJDK_CONF%/jdk/objs\fdlibm.lib" "%OJDK_SRC_PATH%/build/%OJDK_CONF%/images/j2sdk-image/jre/lib/fdlibm.lib" || exit /b 1
)
if not defined BUILD_DEMOS (
rd /q/s "%OJDK_SRC_DIR:/=\%\build\%OJDK_CONF%\images\j2sdk-image\demo"
)
popd || exit /b 1
@echo *** JDK build completed: JDK in "%OJDK_SRC_DIR%/build/%OJDK_CONF%/images/j2sdk-image"
exit /b 0
:test_jdk
@echo *** testing the JDK
set JTREG_HOME=c:\w\jtreg
set JAVA_HOME=
set JDK_HOME=
if exist "%OJDK_SRC_PATH%/build/%OJDK_CONF%/images/%ZIP_DIR_NAME%" (
set JDK_HOME=%OJDK_SRC_PATH%/build/%OJDK_CONF%/images/%ZIP_DIR_NAME%
)
if exist "%OJDK_SRC_PATH%/build/%OJDK_CONF%/images/j2sdk-image" (
set JDK_HOME=%OJDK_SRC_PATH%/build/%OJDK_CONF%/images/j2sdk-image
)
if not defined JDK_HOME (
@echo *** no JDK_HOME found in %OJDK_SRC_PATH%/build/%OJDK_CONF%/images
exit /b 1
)
call :setsdkenv
rem the version of Cygwin can cause tests to fail; see LocalProviders.sh
path %JTREG_HOME%/bin;%OJDKBUILD_DIR%/tools/cygwin/bin;%PATH%
pushd "%OJDK_SRC_PATH%"
rem make CONF=%OJDK_CONF% test TEST="tier1" JT_HOME=%JTREG_HOME%
if not exist "%WORK_DIR%/jtreg" (
mkdir -p "%WORK_DIR%/jtreg"
)
rem example test
set TESTS=%OJDK_SRC_PATH%/jdk/test/javax/xml
set TESTS=%OJDK_SRC_PATH%/jdk/test/java/util/Locale/LocaleProviders.sh
set TESTS=%OJDK_SRC_PATH%/jdk/test/java/SAXParserTest.java
path %JDK_HOME%\bin;%PATH%
@echo *** testing JDK in %JDK_HOME%
bash -c "jtreg -w %WORK_DIR:\=/%/jtreg/work -r %WORK_DIR:\=/%/jtreg/report -jdk:%JDK_HOME:\=/% %TESTS%"
popd || exit /b 1
exit /b 0
:build_jdk_zip
@echo *** zip JDK release
if exist %source_dir%\%RELEASE_ZIPFILE% del %source_dir%\%RELEASE_ZIPFILE%
set JDK_IMAGE_DIR=j2sdk-image
pushd "%OJDK_SRC_PATH%/build/%OJDK_CONF%/images/"
if exist "%JDK_IMAGE_DIR%" (
if defined DELETE_DEBUG_FILES (
@echo *** remove .diz debug files
bash -c "find %JDK_IMAGE_DIR% -name \*.diz -exec rm {} \;"
@echo *** remove .pdb debug files
bash -c "find %JDK_IMAGE_DIR% -name \*.pdb -exec rm {} \;"
@echo *** remove .map debug files
bash -c "find %JDK_IMAGE_DIR% -name \*.map -exec rm {} \;"
)
if exist %ZIP_DIR_NAME% (
@echo *** remove existing %ZIP_DIR_NAME%
rd /q/s %ZIP_DIR_NAME% || exit /b 1
)
@echo *** rename %JDK_IMAGE_DIR% to %ZIP_DIR_NAME%
ren %JDK_IMAGE_DIR% %ZIP_DIR_NAME% || exit /b 1
)
if not exist "%ZIP_DIR_NAME%" (
@echo error: no jdk image found
exit /b 1
)
if exist %source_dir:/=\%\%RELEASE_ZIPFILE% (
del %source_dir:/=\%\%RELEASE_ZIPFILE%
)
bash -c "zip -r %source_dir:\=/%/%RELEASE_ZIPFILE% ./%ZIP_DIR_NAME%" || exit /b 1
rem restore the old directory name
ren %ZIP_DIR_NAME% %JDK_IMAGE_DIR% || exit /b 1
popd || exit /b 1
exit /b 0
:build_jre_zip
@echo *** zip JRE release
if exist %source_dir:/=\%\%RELEASE_JRE_ZIPFILE% del %source_dir:/=\%\%RELEASE_JRE_ZIPFILE%
pushd "%OJDK_SRC_PATH%/build/%OJDK_CONF%/images/" || exit /b 1
if exist j2re-image (
if defined DELETE_DEBUG_FILES (
@echo *** remove debug files
bash -c "find j2re-image -name \*.diz -exec rm {} \;"
bash -c "find j2re-image -name \*.pdb -exec rm {} \;"
bash -c "find j2re-image -name \*.map -exec rm {} \;"
)
if exist %ZIP_JRE_DIR_NAME% (
rd /q/s %ZIP_JRE_DIR_NAME% || exit /b 1
)
ren j2re-image %ZIP_JRE_DIR_NAME% || exit /b 1
)
if not exist "%ZIP_JRE_DIR_NAME%" (
@echo "no jre image found"
exit /b 1
)
if exist %source_dir:/=\%\%RELEASE_JRE_ZIPFILE% (
del %source_dir:/=\%\%RELEASE_JRE_ZIPFILE%
)
bash -c "zip -r %source_dir:\=/%/%RELEASE_JRE_ZIPFILE% ./%ZIP_JRE_DIR_NAME%" || exit /b 1
ren %ZIP_JRE_DIR_NAME% j2re-image || exit /b 1
popd || exit /b 1
exit /b 0
:remove_debug_files
@echo *** remove debug files
cd "%OJDK_SRC_PATH%/build/%OJDK_CONF%/images/"
bash -c "find j2sdk-image j2re-image -name \*.diz -exec rm {} \;"
bash -c "find j2sdk-image j2re-image -name \*.pdb -exec rm {} \;"
bash -c "find j2sdk-image j2re-image -name \*.map -exec rm {} \;"
exit /b 0
:build_freetype
@echo *** build freetype
if not exist "%OJDKBUILD_DIR%/deps/freetype/build" (
mkdir "%OJDKBUILD_DIR%/deps/freetype/build"
) else (
@echo *** %OJDKBUILD_DIR%/deps/freetype/build already exists ***
)
pushd "%OJDKBUILD_DIR%/deps/freetype/build"
call :setsdkenv
cmake -G "NMake Makefiles" -DOJDKBUILD_DIR=%OJDKBUILD_DIR% -Dopenjdk_EXE_VERSION=%OJDK_BUILD:b=% .. || exit /b 1
nmake || exit /b 1
popd
exit /b 0
:download_ojdkbuild
@echo *** fetch and check ojdkbuild
set m1=
set m2=
set m3=
set m4=
set modules=
if not exist %WORK_DIR%/ojdkbuild (
set OJDKBUILD_REPO=%OJDKBUILD_REPOBASE%/ojdkbuild.git
pushd "%WORK_DIR%" || exit /b 1
%GIT% clone -q !OJDKBUILD_REPO! ojdkbuild || exit /b 1
cd ojdkbuild || exit /b 1
%GIT% reset --hard %OJDKBUILD_TAG% || exit /b 1
popd
)
@echo *** fetch ojdkbuild submodules
cd "%OJDKBUILD_DIR%"
if defined BUILD_JDK (
set m1=deps/freetype external/freetype lookaside/freetype
set m2=tools/bootjdk7 tools/cmake tools/cygwin_jdk11 tools/make tools/zip
)
set m3=tools/toolchain/directx tools/toolchain/msvcr100 tools/toolchain/sdk71 tools/toolchain/vs2010e
set modules=%m1% %m2% %m3% %m4% %m5%
if not exist %OJDKBUILD_DIR%/deps mkdir %OJDKBUILD_DIR:/=\%\deps
if not exist %OJDKBUILD_DIR%/external mkdir %OJDKBUILD_DIR:/=\%\external
if not exist %OJDKBUILD_DIR%/lookaside mkdir %OJDKBUILD_DIR:/=\%\lookaside
if not exist %OJDKBUILD_DIR%/tools mkdir %OJDKBUILD_DIR:/=\%\tools
for %%G in (%modules%) do (
set module=%%G
set repo=!module:/=_!
rem if exist %%G rmdir /S/Q !module:/=\!
if not exist %%G/.git (
%GIT% clone -q %OJDKBUILD_REPOBASE%/!repo! %%G || exit /b 1
)
)
if not exist "%OJDKBUILD_DIR%/lookaside" mkdir "%OJDKBUILD_DIR%/lookaside"
@echo *** checkout and update freetype
rem pushd "%OJDKBUILD_DIR%/lookaside/freetype"
rem %GIT% checkout freetype-2.8-1 || exit /b 1
rem popd
@echo ** fix permissions
cd "%WORK_DIR%" || exit /b 1
rem takeown /f "%OJDKBUILD_DIR:/=\%" /r > nul || exit /b 1
rem icacls "%OJDKBUILD_DIR:/=\%" /reset /T /C /Q || exit /b 1
bash -c "chmod -R u+rwx ."
if defined CLAMSCAN %CLAMSCAN% --quiet --recursive ojdkbuild || exit /b 1
@echo ** tools checked out sucessfully
exit /b 0
:clean_jdk
@echo *** clean JDK
call :setsdkenv
pushd "%OJDK_SRC_PATH%"
make CONF=%OJDK_CONF% clean
popd || exit /b 1
exit /b 0
:download_boot_git
@rem this git is assumed to be on the system already, and will be used to download the ojdkbuild git.
PATH C:/cygwin64/bin;%PATH%
git config --global core.autocrlf input || exit /b 1
git config --global http.sslverify false || exit /b 1
set GIT="C:/cygwin64/bin/git.exe"
exit /b 0
:download_git
@rem this git was downloaded by the boot git, and will be used to download the JDK.
set GIT=call :git_cmd
%GIT% config --global core.autocrlf input || exit /b 1
%GIT% config --global http.sslverify false || exit /b 1
exit /b 0
:git_cmd
@echo calling git %*
set OLDPATH=%PATH%
PATH c:\cygwin64\bin;%PATH%
c:\cygwin64\bin\bash -c "/bin/git %*" || exit /b 1
PATH %OLDPATH%
exit /b 0
rem subroutines
:setsdkenv
@echo *** set MSVC environment
rem tools dirs
set VS=%OJDKBUILD_DIR%/tools/toolchain/vs2010e
set WINSDK=%OJDKBUILD_DIR%/tools/toolchain/sdk71
rem set compiler environment manually
set WINDOWSSDKDIR=%WINSDK%
set VS100COMNTOOLS=%VS%/Common7/Tools
set Configuration=Release
set WindowsSDKVersionOverride=v7.1
set ToolsVersion=4.0
set TARGET_CPU=x64
set CURRENT_CPU=x64
set PlatformToolset=Windows7.1SDK
set TARGET_PLATFORM=XP
set LIB=%VS%/VC/Lib/amd64;%WINSDK%/Lib/x64
set VS_LIB=%LIB%
set LIBPATH=%VS%/VC/Lib/amd64
set INCLUDE=%VS%/VC/INCLUDE;%WINSDK%/INCLUDE;%WINSDK%/INCLUDE/gl;
set VS_INCLUDE=%INCLUDE%
rem additional tools
set WINLD=%VS%/VC/Bin/x86_amd64/link.exe
set MT=%WINSDK%/Bin/mt.exe
set RC=%WINSDK%/Bin/rc.exe
set WINAR=%VS%/VC/Bin/x86_amd64/lib.exe
set DUMPBIN=%VS%/VC/Bin/x86_amd64/dumpbin.exe
rem misc vars
set CYGWIN=nodosfilewarning
set OBJCOPY=NOT_NEEDED_ON_WINDOWS
rem set path
set PATH=
set PATH=%PATH%;%OJDKBUILD_DIR%/tools/cygwin_jdk11/bin/path_prepend
set PATH=%PATH%;%OJDKBUILD_DIR%/tools/cygwin_jdk11/bin
set PATH=%PATH%;C:/WINDOWS/System32;C:/WINDOWS;C:/WINDOWS/System32/wbem
set PATH=%PATH%;%VS%/Common7/IDE;%VS%/Common7/Tools;%VS%/VC/Bin/x86_amd64;%VS%/VC/Bin;%VS%/VC/Bin/VCPackages
set PATH=%PATH%;%WINSDK%/Bin
set PATH=%PATH%;%OJDKBUILD_DIR%/tools/toolchain/msvcr100/amd64;%OJDKBUILD_DIR%/tools/toolchain/msvcr100/i586
set PATH=%PATH%;%VS%/Common7/IDE
set PATH=%PATH%;%OJDKBUILD_DIR%/tools/cmake/bin
set PATH=%PATH%;%OJDKBUILD_DIR%/tools/pkgconfig/bin
set PATH=%PATH%;%OJDKBUILD_DIR%/tools/nasm
set PATH=%PATH%;%OJDKBUILD_DIR%/tools/make
set PATH=%PATH%;%OJDKBUILD_DIR%/tools/perl520/perl/bin
set PATH=%PATH%;%OJDKBUILD_DIR%/resources/scripts
set PATH=%PATH%;C:/cygwin64/bin
exit /b 0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xhji/openjdk8-upstream-binaries.git
git@gitee.com:xhji/openjdk8-upstream-binaries.git
xhji
openjdk8-upstream-binaries
openjdk8-upstream-binaries
master

搜索帮助