summaryrefslogtreecommitdiffstats
path: root/make/build.xml
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2019-08-19 06:27:34 +0200
committerSven Gothel <[email protected]>2019-08-19 06:27:34 +0200
commitc155194545769b9dada9408116b3f72aa53f583f (patch)
tree08bb67285fc571c45bd0dd5b080f11a07493471a /make/build.xml
parentc84e8e221dd7ba2f8608afcb0efee2276a2b2011 (diff)
Bug 1363: Java 11: Validated build on Java11
Note: On Windows w/ CMake 3.15.2 and MingW64 8.1.0 openal-soft still doesn't build through yet (no regression, didn't build before). I added the <arg line="-G 'MinGW Makefiles'"/> and had to replace \cygwin\bin\sh.exe with a symbolic link to \cygwin\bin\bash.exe to make it pass .. still WIP. Compilation setup also claimed DSOUND headers were n/a.
Diffstat (limited to 'make/build.xml')
-rwxr-xr-xmake/build.xml16
1 files changed, 15 insertions, 1 deletions
diff --git a/make/build.xml b/make/build.xml
index 5137ae3..8ab752f 100755
--- a/make/build.xml
+++ b/make/build.xml
@@ -128,6 +128,9 @@
<property name="src.java" value="${project.root}/${rootrel.src.java}" />
<property name="build" value="${project.root}/${rootrel.build}" />
<property name="tempdir" value="${project.root}/build-temp" />
+ <delete includeEmptyDirs="true" failonerror="false">
+ <fileset dir="${tempdir}" />
+ </delete>
<mkdir dir="${tempdir}" />
<!-- The generated source directories. -->
@@ -363,6 +366,7 @@
debug="${javacdebug}" debuglevel="${javacdebuglevel}">
<src path="${src.java}" />
<src path="${src.generated.java}" />
+ <!-- compilerarg line="release ${target.releaselevel}"/ -->
</javac>
</target>
@@ -531,6 +535,7 @@
<copy file="lib/bsinc_inc.h" todir="${build}/openal-soft" overwrite="true"/>
<exec dir="${build}/openal-soft" executable="cmake" logError="true" failonerror="false" failifexecutionfails="false">
<env key="PATH" value="${env.PATH}"/>
+ <arg line="-G 'MinGW Makefiles'"/>
<arg value="../../openal-soft"/>
<arg value="-DCMAKE_TOOLCHAIN_FILE=../../openal-soft/cmake/toolchain.windows.cmake"/>
</exec>
@@ -874,11 +879,18 @@
<!--
- Clean up all that is built.
-->
+ <target name="clean-temp" depends="init">
+ <delete includeEmptyDirs="true" failonerror="false">
+ <fileset dir="${tempdir}" />
+ </delete>
+ </target>
+
<target name="clean" depends="init">
<delete includeEmptyDirs="true" quiet="true">
<fileset dir="${build}" />
<fileset dir="${javadoc}" />
<fileset dir="${javadoc.dev}" />
+ <fileset dir="${tempdir}" />
</delete>
<ant antfile="build-test.xml" target="clean"/>
</target>
@@ -887,7 +899,9 @@
<!--
- Build everything.
-->
- <target name="all" depends="joal.build, test.compile, tag.build, developer-zip-archive"/>
+ <target name="all" depends="joal.build, test.compile, tag.build, developer-zip-archive">
+ <antcall target="clean-temp" inheritAll="true" inheritRefs="true" />
+ </target>
<target name="joal.build" depends="init">
<!-- Generate and compile the Java sources. -->