diff options
author | Xerxes Rånby <[email protected]> | 2012-10-25 21:01:26 +0200 |
---|---|---|
committer | Xerxes Rånby <[email protected]> | 2012-10-25 21:01:26 +0200 |
commit | 2420f0e3352a46c8deb9c5827f78add65cb9d1a4 (patch) | |
tree | 6dede1ba26a9d838ecb78cb4fe3d11222200d1ec /make | |
parent | 232963f5e2069eaf339c0e8f61b192db8214853e (diff) |
Build and bundle a openal-soft fallback on all arch.
Tested using a native linux-armv6 build.
TODO: Add cross-compile support.
TODO: Add openal-soft cmake configure options.
TODO: Strip the libopenal.so from debug symbols to reduce size.
Signed-off-by: Xerxes Rånby <[email protected]>
Diffstat (limited to 'make')
-rwxr-xr-x | make/build.xml | 13 |
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. |