|
I think Geir is already working on this.
Tools and launcher sources were moved from classlib to jdktools component, and jpda module was added there. Now jdktools can be built on Linux, but cannot be built on Windows, mostly because of lack of makefiles for JPDA module. I've prepared three patches to resolve this problem.
Patch '001_build_jdwp_on_windows.patch' provides missed makefiles and *.def files for JPDA module and adds workaround for macros _WINSOCKAPI_ used in JDWP transport.
Patch '002_build_other_modules_on_windows.patch' fixes paths in makefiles for other modules.
Patch '003_remove_copying_msvcr71_dll.patch' removes copying msvcr71.dll to ${hy.jdk}/jre/bin because it should be already there.
The attached 004.run-test.patch improves build files in jdktools/ to allow running the 'test' tagret of ant build.
I checked this patch on Windows 2003 with "-Dhy.hdk=../harmony-hdk-r468731" and manually created '..\working_vm\build\deploy\jdk\include' where jvmti*.h and jni*.h files were copied to from drlvm/ sources. All tools are built and tests run. There are issues with jpda tests - some tests are failed due to timeout; will investigate tomorrow. Checking the patch on Linux is yet in progress - I failed to build jdktools binaries. Again better i proceed with that tomorrow. This patch if for deploying new jni/jvmti headers to 'working_classlib/deploy/jdk/include' while building classlib. Current jni/jvmti headers in classlib/luni module should be replaced by DRLVM ones first.
I believe all of these issues are taken care of, so closing. If not, please open a new JIRA
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Only jdk/lib/tools.jar and jdk/jre/lib/jretools/jar are built in this version. Test and Doc targets should be added/corrected to correspond to the jdktools/ dir structure.
The scripts were checked on Windows 2003 only with cygwin/bash and ant 1.2.3.
harmony-hdk-r468731 was used as a base for that build checks; joint building classlib-and-jdktools was not checked yet.
Run
bash mv-2-jdktools.sh
to checkout and rearrange sources; then run
ant -f trunk\working_jdktools\build.xml -Dhy.hdk=${path-to-HDK}
to build jdk/lib/tools.jar and jdk/jre/lib/jretools/jar .