Code Search for Developers
 
 
  

build.xml from Lightweight Java Game Library at Krugle


Show build.xml syntax highlighted

<?xml version="1.0"?>

<project name="lwjgl native code, linux" basedir="../../bin/lwjgl" default="compile">
	<property name="native" location="../../src/native"/>
	<property name="libname32" value="liblwjgl.so"/>
	<property name="libname64" value="liblwjgl64.so"/>
	<property name="libs32" value="-L/usr/X11R6/lib -L/usr/X11/lib -lm -lX11 -lXext -lXcursor -lXrandr -lpthread -L${java.home}/lib/i386 -ljawt -Wl,-static,-lXxf86vm,-call_shared"/>
	<property name="libs64" value="-L/usr/X11R6/lib64 -L/usr/X11/lib64 -lm -lX11 -lXext -lXcursor -lXrandr -lXxf86vm -lpthread -L${java.home}/lib/amd64 -ljawt"/>
	<property name="cflags" value="-O2 -Wall -c -fPIC -std=c99 -pthread -Wunused"/>
	
	<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${native}/common"/>
			<arg value="-I${native}/linux"/>
			<mapper type="glob" from="*.c" to="*.o"/>
			<fileset dir="${native}/linux" includes="*.c"/>
			<fileset dir="${native}/generated" includes="*.c"/>
			<fileset dir="${native}/common" 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