summaryrefslogtreecommitdiffstats
path: root/make/build.xml
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2013-04-23 23:55:14 +0200
committerSven Gothel <[email protected]>2013-04-23 23:55:14 +0200
commit12319be6d524c966c1f2c709675e9d05b04c56db (patch)
treef8f61602b3a17c8303530a11b1026ccb660b7f9b /make/build.xml
parent8204cf51c707d3dca0c7476711bb7d4642519b93 (diff)
Use new toolchain (gluegen 3b7ea9f67487be8f133c19b493b632fc579c5049); Compile openal-soft w/ arm arch & float options if crosscompiled.
Diffstat (limited to 'make/build.xml')
-rwxr-xr-xmake/build.xml37
1 files changed, 36 insertions, 1 deletions
diff --git a/make/build.xml b/make/build.xml
index f326ea0..d22113d 100755
--- a/make/build.xml
+++ b/make/build.xml
@@ -187,6 +187,21 @@
<property name="archive.name" value="joal-${joal.version}-${os.and.arch}" />
<property name="archive" value="${build}/${archive.name}" />
+
+ <condition property="useLinuxARMv6SFOptions">
+ <and>
+ <istrue value="isLinuxARMv6"/>
+ <istrue value="isAbiEabiGnuArmel"/>
+ <istrue value="isCrosscompilation"/>
+ </and>
+ </condition>
+ <condition property="useLinuxARMv6HFOptions">
+ <and>
+ <istrue value="isLinuxARMv6"/>
+ <istrue value="isAbiEabiGnuArmhf"/>
+ <istrue value="isCrosscompilation"/>
+ </and>
+ </condition>
</target>
<!-- ================================================================== -->
@@ -503,6 +518,26 @@
<exec dir="${build}/openal-soft" executable="make" logError="true" failonerror="false" failifexecutionfails="false" />
</target>
+ <target name="c.build.openal.soft.gcc.armv6.soft" if="useLinuxARMv6SFOptions" unless="c.build.openal.soft.done">
+ <property name="c.build.openal.soft.done" value="true" />
+ <mkdir dir="${build}/openal-soft" />
+ <exec dir="${build}/openal-soft" executable="cmake" logError="true" failonerror="false" failifexecutionfails="false">
+ <arg value="../../openal-soft"/>
+ <arg value="-DCMAKE_TOOLCHAIN_FILE=../../openal-soft/cmake/toolchain.gcc-armv6.cmake"/>
+ </exec>
+ <exec dir="${build}/openal-soft" executable="make" logError="true" failonerror="false" failifexecutionfails="false" />
+ </target>
+
+ <target name="c.build.openal.soft.gcc.armv6.hard" if="useLinuxARMv6HFOptions" unless="c.build.openal.soft.done">
+ <property name="c.build.openal.soft.done" value="true" />
+ <mkdir dir="${build}/openal-soft" />
+ <exec dir="${build}/openal-soft" executable="cmake" logError="true" failonerror="false" failifexecutionfails="false">
+ <arg value="../../openal-soft"/>
+ <arg value="-DCMAKE_TOOLCHAIN_FILE=../../openal-soft/cmake/toolchain.gcc-armv6hf.cmake"/>
+ </exec>
+ <exec dir="${build}/openal-soft" executable="make" logError="true" failonerror="false" failifexecutionfails="false" />
+ </target>
+
<target name="c.build.openal.soft.gcc.default" unless="c.build.openal.soft.done">
<property name="c.build.openal.soft.done" value="true" />
<mkdir dir="${build}/openal-soft" />
@@ -524,7 +559,7 @@
</target>
<target name="c.build.openal.soft"
- depends="init, gluegen.cpptasks.detect.os, gluegen.cpptasks.setup.compiler, c.build.openal.use-blobs, c.build.openal.soft.windows, c.build.openal.soft.android, c.build.openal.soft.gcc.x86_32, c.build.openal.soft.gcc.default">
+ depends="init, gluegen.cpptasks.detect.os, gluegen.cpptasks.setup.compiler, c.build.openal.use-blobs, c.build.openal.soft.windows, c.build.openal.soft.android, c.build.openal.soft.gcc.x86_32, c.build.openal.soft.gcc.armv6.soft, c.build.openal.soft.gcc.armv6.hard, c.build.openal.soft.gcc.default">
<copy todir="../${rootrel.build}/obj" failonerror="false">
<fileset dir="${build}/openal-soft" erroronmissingdir="false">
<include name="*openal.${native.library.suffix}" />