From: <eli...@us...> - 2006-07-12 18:09:25
|
Revision: 2497 Author: elias_naur Date: 2006-07-12 11:09:11 -0700 (Wed, 12 Jul 2006) ViewCVS: http://svn.sourceforge.net/java-game-lib/?rev=2497&view=rev Log Message: ----------- Windows: move natives from src/native/win32 to src/native/windows because the source really is bitness neutral, not 32 bit specific. Modified Paths: -------------- trunk/LWJGL/build.xml trunk/LWJGL/platform_build/windows_ant/build.xml Added Paths: ----------- trunk/LWJGL/src/native/windows/ Removed Paths: ------------- trunk/LWJGL/src/native/win32/ Modified: trunk/LWJGL/build.xml =================================================================== --- trunk/LWJGL/build.xml 2006-07-12 16:55:05 UTC (rev 2496) +++ trunk/LWJGL/build.xml 2006-07-12 18:09:11 UTC (rev 2497) @@ -153,7 +153,7 @@ <fileset id="lwjgl.source.fileset" dir="."> <include name="build.xml" /> <include name="src/**" /> - <include name="platform_build/win32_ms_cmdline/*.bat" /> + <include name="platform_build/**/*" /> </fileset> <!-- files in the base package --> @@ -201,7 +201,7 @@ <uptodate property="lwjgl.main.built" targetfile="${lwjgl.lib}/win32/lwjgl.dll" > <srcfiles dir= "${lwjgl.src.native}/common" includes="*.c*"/> <srcfiles dir= "${lwjgl.src.native}/generated" includes="*.c"/> - <srcfiles dir= "${lwjgl.src.native}/win32" includes="*.cpp"/> + <srcfiles dir= "${lwjgl.src.native}/windows" includes="*.c"/> </uptodate> <uptodate property="lwjgl.fmod.built" targetfile="${lwjgl.lib}/win32/lwjgl-fmod3.dll" > @@ -356,9 +356,20 @@ <target name="runtest" depends="all"> <fail message="test.mainclass is not set. Use 'ant -Dtest.mainclass=<main-class> runtest'" unless="test.mainclass"/> + <condition property="native_path" value="libs/win32"> + <os family="windows" /> + </condition> + + <condition property="native_path" value="libs/linux"> + <os name="Linux" /> + </condition> + + <condition property="native_path" value="libs/macosx"> + <os name="Mac OS X" /> + </condition> <java classname="${test.mainclass}" classpath="${lwjgl.lib}/lwjgl.jar:${lwjgl.lib}/lwjgl_util.jar:${lwjgl.lib}/lwjgl_test.jar" fork="true"> <jvmarg value="-Dorg.lwjgl.util.Debug=true"/> - <jvmarg value="-Djava.library.path=libs/linux:libs/win32:libs/macosx"/> + <jvmarg value="-Djava.library.path=${native_path}"/> </java> </target> @@ -507,7 +518,7 @@ <class name="org.lwjgl.opengl.LinuxCanvasImplementation" /> </javah> - <javah classpath="${lwjgl.bin}" destdir="${lwjgl.src.native}/win32" force="yes"> + <javah classpath="${lwjgl.bin}" destdir="${lwjgl.src.native}/windows" force="yes"> <class name="org.lwjgl.opengl.WindowsKeyboard" /> <class name="org.lwjgl.opengl.WindowsDirectInput8" /> <class name="org.lwjgl.opengl.WindowsDirectInputDevice8" /> Modified: trunk/LWJGL/platform_build/windows_ant/build.xml =================================================================== --- trunk/LWJGL/platform_build/windows_ant/build.xml 2006-07-12 16:55:05 UTC (rev 2496) +++ trunk/LWJGL/platform_build/windows_ant/build.xml 2006-07-12 18:09:11 UTC (rev 2497) @@ -18,9 +18,9 @@ <arg value="/I${java.home}\..\include"/> <arg value="/I${java.home}\..\include\win32"/> <arg value="/I${native}\common"/> - <arg value="/I${native}\win32"/> + <arg value="/I${native}\windows"/> <srcfile/> - <fileset dir="${native}/win32" includes="*.c"/> + <fileset dir="${native}/windows" includes="*.c"/> <fileset dir="${native}/common" includes="*.c"/> <fileset dir="${native}/generated" includes="*.c"/> <mapper type="glob" from="*.c" to="*.obj"/> Copied: trunk/LWJGL/src/native/windows (from rev 2495, trunk/LWJGL/src/native/win32) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |