Fix build if JavaFX is missing (v2)

"Starting with JDK 8u33, JavaFX Embedded is removed from the ARM bundle and is not supported." Note: there is an OpenJFX project, but this would probably have to be an external compile-time dependency.
This commit is contained in:
gohai
2015-07-27 18:57:34 +02:00
parent 3c4b68a361
commit dcc7223edb

View File

@@ -32,6 +32,11 @@
</condition>
<!--<echo message="compiler is ${build.compiler}" />-->
<!-- JavaFX got removed from the Oracle's JDK for arm -->
<condition property="fx.unavailable" value="true">
<equals arg1="${os.arch}" arg2="arm" />
</condition>
<!-- link against apple.jar for the ThinkDifferent class -->
<mkdir dir="bin" />
<javac source="1.7"
@@ -39,13 +44,16 @@
encoding="UTF-8"
includeAntRuntime="false"
debug="true"
srcdir="src" destdir="bin"
destdir="bin"
classpath="apple.jar;
library/jogl-all.jar;
library/gluegen-rt.jar"
nowarn="true">
<!-- kinda gross, but if not using the JDT, this just ignored anyway -->
<compilerclasspath path="${jdt.jar}; ../java/mode/jdtCompilerAdapter.jar" />
<src path="src" />
<include name="processing/**" />
<exclude name="processing/javafx/**" if="fx.unavailable" />
</javac>
<!-- Copy the jnilib to the bin folder so it's included. -->