aboutsummaryrefslogtreecommitdiffstats
path: root/make/gluegen-cpptasks-base.xml
diff options
context:
space:
mode:
authorWade Walker <[email protected]>2018-12-28 09:45:06 -0600
committerSven Gothel <[email protected]>2019-08-16 23:59:35 +0200
commit760295dc597b3a91bf011115dd7bfad9c0c37f82 (patch)
treef8f3ae67f5d1c24daf730defa6104f76aa84c0bd /make/gluegen-cpptasks-base.xml
parent93121714758f89a394993f0740c6929f48fb887b (diff)
Fixed java.home directory and removed obsolete tools.jar
In Java 9+, there's no longer a "jre" directory in the installation, so removed references to it. The tools.jar file also no longer exists in Java installations (it's now stored in a secret non-JAR format), so removed that as well.
Diffstat (limited to 'make/gluegen-cpptasks-base.xml')
-rwxr-xr-xmake/gluegen-cpptasks-base.xml27
1 files changed, 9 insertions, 18 deletions
diff --git a/make/gluegen-cpptasks-base.xml b/make/gluegen-cpptasks-base.xml
index 7aee9c9..83e80cb 100755
--- a/make/gluegen-cpptasks-base.xml
+++ b/make/gluegen-cpptasks-base.xml
@@ -1008,22 +1008,13 @@
<!-- ================================================================== -->
<!--
- - Set up java.home.dir appropriately on all platforms.
+ - Set up java.home.dir appropriately on all platforms. Used to differ
+ - across platforms, and used to be the directory above java.home,
+ - but is now the same in JDK 9 and later since there is no more '<java-install-dir>/jre'
+ - directory and the directory layout is the same across platforms.
-->
- <target name="setup.java.home.dir.nonmacosx" unless="isOSX">
- <!-- java home dir is up one directory as java.home points to '<java-install-dir>/jre' -->
- <property name="java.home.dir" value="${java.home}/.." />
- </target>
- <target name="setup.java.home.dir.macosx" if="isOSX">
- <!-- Java7 std location -->
- <condition property="java.home.dir"
- value="${java.home}/..">
- <available file="${java.home}/../include/jni.h"/>
- </condition>
- <!-- Fallback value Java6 -->
- <property name="java.home.dir" value="/System/Library/Frameworks/JavaVM.framework/Home" />
- </target>
- <target name="setup.java.home.dir" depends="setup.java.home.dir.nonmacosx,setup.java.home.dir.macosx">
+ <target name="setup.java.home.dir">
+ <property name="java.home.dir" value="${java.home}" />
<property name="java.includes.dir" value="${gluegen.root.abs-path}/make/stub_includes/jni" />
<echo message="java.home.dir ${java.home.dir}" />
<echo message="java.includes.dir ${java.includes.dir}" />
@@ -1579,7 +1570,7 @@
<echo message="Win64.MingW" />
<property name="compiler.cfg.id.base" value="compiler.cfg.win64.mingw" />
<property name="linker.cfg.id.base" value="linker.cfg.win64.mingw" />
- <property name="java.lib.dir.platform" value="${java.home.dir}/jre/bin" /> <!-- link against dll directly (not lib)-->
+ <property name="java.lib.dir.platform" value="${java.home.dir}/bin" /> <!-- link against dll directly (not lib)-->
</target>
<target name="gluegen.cpptasks.declare.compiler.win32" depends="gluegen.cpptasks.declare.compiler.win32.vc6,gluegen.cpptasks.declare.compiler.win32.vc7,gluegen.cpptasks.declare.compiler.win32.vc8,gluegen.cpptasks.declare.compiler.win32.vc8_x64,gluegen.cpptasks.declare.compiler.win32.vc9,gluegen.cpptasks.declare.compiler.win32.mingw,gluegen.cpptasks.declare.compiler.win64.mingw" if="isWindows">
@@ -1725,8 +1716,8 @@
<property name="linker.cfg.id.base" value="linker.cfg.macosx" />
<property name="java.includes.dir.platform" value="${java.includes.dir}/macosx" />
<condition property="java.lib.dir.platform"
- value="${java.home.dir}/jre/lib">
- <available file="${java.home.dir}/jre/lib/libjawt.dylib"/>
+ value="${java.home.dir}/lib">
+ <available file="${java.home.dir}/lib/libjawt.dylib"/>
</condition>
<!-- Fallback value Java6 -->
<property name="java.lib.dir.platform" value="/System/Library/Frameworks/JavaVM.framework/Libraries" />