Code Search for Developers
 
 
  

build_fmod3.xml from Lightweight Java Game Library at Krugle


Show build_fmod3.xml syntax highlighted

<?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"/>

	<fail message="Missing FMOD path environment property" unless="env.FMOD"/>
	
	<target name="clean">
		<delete>
			<fileset dir="." includes="*.o"/>
			<fileset dir="." includes="*.so"/>
		</delete>
	</target>
	
    <target name="compile">
		<exec executable="uname" outputproperty="hwplatform">
			<arg value="-m"/>
		</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${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>





See more files for this project here

Lightweight Java Game Library

A Java Game Library extension: 1. Handles the graphics, sound, and input simply 2. Wraps OpenGL, OpenAL, fmod3 and DevIL 3. Hires timers LWJGL currently supports Linux, Mac OS X (10.2 and above) and Windows (98 and above).

Project homepage: http://sourceforge.net/projects/java-game-lib
Programming language(s): C,Java
License: other

  build.xml
  build_devil.xml
  build_fmod3.xml