Skip to content

Commit

Permalink
added objectal build script
Browse files Browse the repository at this point in the history
  • Loading branch information
badlogic committed Sep 7, 2013
1 parent 598fb8b commit 1b1cf78
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -40,6 +40,7 @@ libgdx-*.zip
#core & extension libs/ folders that have no 3rd party dependencies in them
/gdx/libs
/backends/gdx-backend-jglfw/libs/
/backends/gdx-backend-robovm/libs/
/extensions/gdx-audio/libs/
/extensions/gdx-bullet/libs/
/extensions/gdx-controllers/gdx-controllers-desktop/libs/
Expand Down
11 changes: 11 additions & 0 deletions backends/gdx-backend-robovm/build-objectal.sh
@@ -0,0 +1,11 @@
#!/bin/bash
curl https://codeload.github.com/kstenerud/ObjectAL-for-iPhone/legacy.tar.gz/master -o objectal.tar.gz
tar xvfz objectal.tar.gz
cd kstenerud-ObjectAL-for-iPhone-73c211a/ObjectAL
xcodebuild -arch armv7 -sdk iphoneos
xcodebuild -arch i386 -sdk iphonesimulator
lipo build/Release-iphoneos/libObjectAL.a build/Release-iphonesimulator/libObjectAL.a -create -output build/libObjectAL.a
cp build/libObjectAL.a ../../../../gdx/libs/ios32/
cd ../..
rm objectal.tar.gz
rm -r kstenerud-ObjectAL-for-iPhone-73c211a/
12 changes: 6 additions & 6 deletions fetch.xml
@@ -1,7 +1,7 @@
<!-- Call this to fetch all the natives from the build server -->
<project name="fetch-natives" default="all">
<property name="domain" value="http://libgdx.badlogicgames.com/nightlies/dist"/>
<property name="robovm" value="http://libgdx.badlogicgames.com/robovm/robovm/lib/">
<property name="robovm" value="http://libgdx.badlogicgames.com/robovm/robovm/lib/"/>
<target name="fetch">
<!-- create a temporary directory for all android and ios natives, to be distributed
across demos and tests. The xxx-natives.jar files are put into the respective
Expand Down Expand Up @@ -30,11 +30,11 @@
<get src="${domain}/ios/gdx-backend-ios.dll.mdb" dest="backends/gdx-backend-iosmonotouch/libs/ios32"/>

<!-- robovm snapshot jars for robovm backend -->
<mkdir dir="backends/backends/gdx-backend-robovm/libs/"/>
<get src="${robovm}/robovm-cacerts-full.jar" dest="backends/backends/gdx-backend-robovm/libs/"/>
<get src="${robovm}/robovm-cocoatouch.jar" dest="backends/backends/gdx-backend-robovm/libs/"/>
<get src="${robovm}/robovm-objc.jar" dest="backends/backends/gdx-backend-robovm/libs/"/>
<get src="${robovm}/robovm-rt.jar" dest="backends/backends/gdx-backend-robovm/libs/"/>
<mkdir dir="backends/gdx-backend-robovm/libs/"/>
<get src="${robovm}/robovm-cacerts-full.jar" dest="backends/gdx-backend-robovm/libs/"/>
<get src="${robovm}/robovm-cocoatouch.jar" dest="backends/gdx-backend-robovm/libs/"/>
<get src="${robovm}/robovm-objc.jar" dest="backends/gdx-backend-robovm/libs/"/>
<get src="${robovm}/robovm-rt.jar" dest="backends/gdx-backend-robovm/libs/"/>

<!-- audio natives -->
<mkdir dir="extensions/gdx-audio/libs/ios32"/>
Expand Down

0 comments on commit 1b1cf78

Please sign in to comment.