mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-02-25 00:55:02 +01:00
linux ant build files
This commit is contained in:
parent
0be9f21397
commit
ea4373698d
49
platform_build/linux_ant/build_devil.xml
Normal file
49
platform_build/linux_ant/build_devil.xml
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
<?xml version="1.0"?>
|
||||
|
||||
<project name="devil" basedir="../../bin/devil" default="compile">
|
||||
<property name="native" location="../../src/native"/>
|
||||
<property name="libname32" value="liblwjgl-devil.so"/>
|
||||
<property name="libname64" value="liblwjgl64-devil.so"/>
|
||||
<property name="libs32" value="-lpthread"/>
|
||||
<property name="libs64" value="-lpthread"/>
|
||||
<property name="cflags" value="-O2 -Wall -c -fPIC -std=c99 -pthread"/>
|
||||
|
||||
<target name="clean">
|
||||
<delete>
|
||||
<fileset dir="." includes="*.o"/>
|
||||
<fileset dir="." includes="*.so"/>
|
||||
</delete>
|
||||
</target>
|
||||
|
||||
<target name="compile">
|
||||
<exec executable="uname" outputproperty="hwplatform">
|
||||
<arg value="-i"/>
|
||||
</exec>
|
||||
<condition property="libs" value="${libs64}" else="${libs32}">
|
||||
<equals arg1="${hwplatform}" arg2="x86_64"/>
|
||||
</condition>
|
||||
<condition property="libname" value="${libname64}" else="${libname32}">
|
||||
<equals arg1="${hwplatform}" arg2="x86_64"/>
|
||||
</condition>
|
||||
<property name="linker_flags" value="-Wl,--version-script=${native}/linux/lwjgl.map -shared -O2 -Wall -o ${libname} ${libs}"/>
|
||||
<apply dir="." executable="cc" dest="." skipemptyfilesets="true" failonerror="true">
|
||||
<arg line="${cflags}"/>
|
||||
<arg value="-I${java.home}/include"/>
|
||||
<arg value="-I${java.home}/include/linux"/>
|
||||
<arg value="-I${native}/common"/>
|
||||
<arg value="-I${native}/common/devil"/>
|
||||
<mapper type="glob" from="*.c" to="*.o"/>
|
||||
<fileset dir="${native}/common" includes="*common*.c"/>
|
||||
<fileset dir="${native}/common/devil" includes="*.c"/>
|
||||
</apply>
|
||||
<apply dir="." parallel="true" executable="cc" failonerror="true">
|
||||
<srcfile/>
|
||||
<arg line="${linker_flags}"/>
|
||||
<fileset dir="." includes="*.o"/>
|
||||
</apply>
|
||||
<apply dir="." parallel="true" executable="strip" failonerror="true">
|
||||
<fileset file="${libname}"/>
|
||||
</apply>
|
||||
</target>
|
||||
</project>
|
||||
|
||||
52
platform_build/linux_ant/build_fmod3.xml
Normal file
52
platform_build/linux_ant/build_fmod3.xml
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
<?xml version="1.0"?>
|
||||
|
||||
<project name="fmod3" basedir="../../bin/fmod3" default="compile">
|
||||
<property name="native" location="../../src/native"/>
|
||||
<property environment="env"/>
|
||||
<property name="fmod.home" location="${env.FMOD}"/>
|
||||
<property name="libname32" value="liblwjgl-fmod3.so"/>
|
||||
<property name="libname64" value="liblwjgl64-fmod3.so"/>
|
||||
<property name="libs32" value="-lpthread"/>
|
||||
<property name="libs64" value="-lpthread"/>
|
||||
<property name="cflags" value="-O2 -Wall -c -fPIC -std=c99 -pthread"/>
|
||||
|
||||
<target name="clean">
|
||||
<delete>
|
||||
<fileset dir="." includes="*.o"/>
|
||||
<fileset dir="." includes="*.so"/>
|
||||
</delete>
|
||||
</target>
|
||||
|
||||
<target name="compile">
|
||||
<exec executable="uname" outputproperty="hwplatform">
|
||||
<arg value="-i"/>
|
||||
</exec>
|
||||
<condition property="libs" value="${libs64}" else="${libs32}">
|
||||
<equals arg1="${hwplatform}" arg2="x86_64"/>
|
||||
</condition>
|
||||
<condition property="libname" value="${libname64}" else="${libname32}">
|
||||
<equals arg1="${hwplatform}" arg2="x86_64"/>
|
||||
</condition>
|
||||
<property name="linker_flags" value="-Wl,--version-script=${native}/linux/lwjgl.map -shared -O2 -Wall -o ${libname} ${libs}"/>
|
||||
<apply dir="." executable="cc" dest="." skipemptyfilesets="true" failonerror="true">
|
||||
<arg line="${cflags}"/>
|
||||
<arg value="-I${java.home}/include"/>
|
||||
<arg value="-I${java.home}/include/linux"/>
|
||||
<arg value="-I${fmod.home}/api/inc"/>
|
||||
<arg value="-I${native}/common"/>
|
||||
<arg value="-I${native}/common/fmod3"/>
|
||||
<mapper type="glob" from="*.c" to="*.o"/>
|
||||
<fileset dir="${native}/common" includes="*common*.c"/>
|
||||
<fileset dir="${native}/common/fmod3" includes="*.c"/>
|
||||
</apply>
|
||||
<apply dir="." parallel="true" executable="cc" failonerror="true">
|
||||
<srcfile/>
|
||||
<arg line="${linker_flags}"/>
|
||||
<fileset dir="." includes="*.o"/>
|
||||
</apply>
|
||||
<apply dir="." parallel="true" executable="strip" failonerror="true">
|
||||
<fileset file="${libname}"/>
|
||||
</apply>
|
||||
</target>
|
||||
</project>
|
||||
|
||||
Loading…
Reference in a new issue