summaryrefslogtreecommitdiffstats
path: root/make
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-11-05 07:28:03 -0800
committerSven Gothel <[email protected]>2012-11-05 07:28:03 -0800
commit5cf70309b054bca4317230af2e432576a20060c5 (patch)
tree6dede1ba26a9d838ecb78cb4fe3d11222200d1ec /make
parent232963f5e2069eaf339c0e8f61b192db8214853e (diff)
parent2420f0e3352a46c8deb9c5827f78add65cb9d1a4 (diff)
Merge pull request #3 from xranby/openal-soft
Build and bundle a openal-soft fallback on all arch.
Diffstat (limited to 'make')
-rwxr-xr-xmake/build.xml13
1 files changed, 12 insertions, 1 deletions
diff --git a/make/build.xml b/make/build.xml
index f6fda25..f06f315 100755
--- a/make/build.xml
+++ b/make/build.xml
@@ -378,7 +378,7 @@
</sequential>
</macrodef>
- <target name="c.build.joal" depends="init, gluegen.cpptasks.detect.os, gluegen.cpptasks.setup.compiler">
+ <target name="c.build.joal" depends="init, c.build.openal.soft, gluegen.cpptasks.detect.os, gluegen.cpptasks.setup.compiler">
<echo message="compiler.cfg.id.base: ${compiler.cfg.id.base}"/>
<echo message="linker.cfg.id.base: ${linker.cfg.id.base}"/>
<c.build compiler.cfg.id="${compiler.cfg.id.base}"
@@ -393,9 +393,20 @@
<fileset dir="lib/${os.and.arch}" erroronmissingdir="false">
<include name="*.${native.library.suffix}" />
</fileset>
+ <fileset dir="${build}/openal-soft" erroronmissingdir="false">
+ <include name="*.${native.library.suffix}" />
+ </fileset>
</jar>
</target>
+ <target name="c.build.openal.soft" depends="init, gluegen.cpptasks.detect.os, gluegen.cpptasks.setup.compiler">
+ <mkdir dir="${build}/openal-soft" />
+ <exec dir="${build}/openal-soft" executable="cmake">
+ <arg value="../../../openal-soft"/>
+ </exec>
+ <exec dir="${build}/openal-soft" executable="make" />
+ </target>
+
<!-- ================================================================== -->
<!--
- Build the joal.jar file.