DevelopmentBuilds - daudo/ojdkbuild GitHub Wiki
Goal
Build ojdkbuild allowing to choose different make targets and allowing to run fast partial builds repeatedly after adding changes to OpenJDK source code.
Outline:
Prerequisites
- development setup on Windows 2012 that allows to run one-off builds using
run.batlauncher (see Win2012DevSetup)
Process
Note: to build 32-bit binaries and/or jdk9 it may be convenient to checkout all modules using git submodule update --init
-
In terminal emulator in
ojdkbuildroot directory run the following to setup the development environment forjdk8-x86_64builds:call "resources/scripts/set-compile-env-vs10-x86_64.bat" -
Go to
builddirectory and cleanup possible existing build artifacts:cd build creset -
Configure overall CMake project (that contains OpenJDK and dependencies) specifying
DEV_MODEoption:cmake ../src/java-1.8.0-openjdk -Dopenjdk_DEV_MODE=ON -
Run default
nmaketarget to build all the dependencies (FreeType, NSS etc):nmake -
Run
openjdktarget. In development mode this target will runconfigurefor OpenJDK, but won't runmake:nmake openjdk -
Now
bashcommand line with configured OpenJDK build environment is provided to the user:uname -a > CYGWIN_NT-6.2-WOW64 WIN-QBOE15UKBPJ 1.7.17(0.262/5/3) 2012-10-19 14:39 i686 Cygwin
OpenJDK Build Targets
Following OpenJDK make targets can be run repeatably in configured shell:
make: default target that will buildexploded-imageinojdkbuild/build/java-1.8.0-openjdk/windows-x86_64-normal-server-(release|debug)/jdkdirectorymake clean: cleans all OpenJDK build artifacts; OpenJDK build dependencies that were built by thenmakewill be left intactmake images: build OpenJDK and bundlejdkimage inojdkbuild/build/java-1.8.0-openjdk/windows-x86_64-normal-server-(release|debug)/images/j2sdk-imagedirectorymake all: build jdk image and additionally generate apidocs for it