OSDN Git Service

[added] README for jni directory
authorbadlogicgames <badlogicgames@6c4fd544-2939-11df-bb46-9574ba5d0bfa>
Fri, 17 Dec 2010 12:32:44 +0000 (12:32 +0000)
committerbadlogicgames <badlogicgames@6c4fd544-2939-11df-bb46-9574ba5d0bfa>
Fri, 17 Dec 2010 12:32:44 +0000 (12:32 +0000)
gdx/jni/README [new file with mode: 0644]
gdx/jni/build-win64.xml

diff --git a/gdx/jni/README b/gdx/jni/README
new file mode 100644 (file)
index 0000000..34e5a92
--- /dev/null
@@ -0,0 +1,26 @@
+This folder contains 4 ant files responsible for building the gdx shared libs for win32, win64, lin32 and lin64. They are
+intended to be used with ant >= 1.8.1 as well as the common multilib gcc toolchain for linux (x86 and x86_64 targets) and
+the mingw w64 linux port (http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Automated%20Builds/mingw-w64-bin_i686-linux_20101216.tar.bz2/download).
+We currently don't support building on Windows directly. If you want to do this you have to change the build-winxxx.xml files.
+just replace the prefix with whatever your local Windows MinGW install uses (e.g. the empty string...). Otherwise go this route:
+
+1) Install a nice new and shiny Ubuntu 10.10 (just as an example) 64-bit
+2) Install the gcc toolchain via apt
+3) Install gcc-multilib via apt for gcc and g++ (package gcc-multilib should suffice and install the correct versions)
+4) Install gcc-mingw32 (needed for targeting win32)
+5) Fetch MinGW w64 targeting win64 from http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Automated%20Builds/mingw-w64-bin_i686-linux_20101216.tar.bz2/download
+6) unpack it and put it in an accessible directory, e.g. /opt/mingw-w64, then export PATH=$PATH:/opt/mingw-w64/bin
+7) Download the latest ant binaries (>= 1.8.1) and extract them to say /opt/ant, then export PATH=$PATH:/opt/ant/bin
+8) invoke ant in the directory gdx/jni
+9) ...
+10) Profit!
+
+This will compile the natives for win32 (gdx.dll), win64 (gdx-64.dll), lin32 (libgdx.so) and lin64 (libgdx-64) and put them
+in the respective gdx/${platform} directories. It will also pack them into the gdx-natives.jar which is placed in backends/dependencies
+and used by all the other projects in the SVN trunk (except the demos). The ant build script in gdx/ will use this jar to package
+a distribution. 
+
+Why the separate ant files? Cause i like copy & pasting... I'll write a more generic ant script that can be used by any platform as soon
+as time permits. 
+
+MacOSX lovers, i'm afraid you are shit out of luck. Seems like Apple doesn't want people to write software for the super awesome OS. 
index b516ac7..cbcbe5c 100644 (file)
@@ -1,14 +1,8 @@
-<!-- install the package gcc-mingw32 on ubuntu and away you go. Oh and put that in /usr/bin/\r
-  \r
-     http://files.quickmediasolutions.com/amd64-mingw32msvc-g++.tar.bz2\r
-\r
-     will only run on a 64-bit Ubuntu 10.10 flavor though :p (Ya nasty nasty...)\r
--->\r
 <project name="gdx-natives" basedir="." default="link">\r
        <!-- include the environment -->\r
        <property environment="env"/>   \r
 \r
-       <property name="prefix" value="x86_64-linux-gnu-"/>     \r
+       <property name="prefix" value="x86_64-w64-mingw32-"/>   \r
 \r
        <!-- defined build directory where object files and shared lib will be placed in -->\r
        <property name="builddir" value="../windows64"/>\r