Skip to content

Commit

Permalink
added gdx-tests-iosmonotouch, not fully working yet, but it's a start
Browse files Browse the repository at this point in the history
  • Loading branch information
badlogic committed Sep 16, 2012
1 parent 154728d commit 9a8c19f
Show file tree
Hide file tree
Showing 21 changed files with 731 additions and 26 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,11 @@
/tests/gdx-tests-gwt/gwt-unitCache
/tests/gdx-tests-gwt/war

/tests/gdx-tests-iosmonotouch/gdx-tests-iosmonotouch/bin
/tests/gdx-tests-iosmonotouch/gdx-tests-iosmonotouch/target
/tests/gdx-tests-iosmonotouch/gdx-tests-iosmonotouch/obj
/tests/gdx-tests-iosmonotouch/gdx-tests-iosmonotouch/gdx-tests.dll

/tests/gdx-tests-jogl/bin

/tests/gdx-tests-lwjgl/bin
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<Properties>
<MonoDevelop.Ide.Workspace ActiveConfiguration="Debug|iPhoneSimulator" />
<MonoDevelop.Ide.Workbench ActiveDocument="gdx-vectorpinball-ios/Main.cs">
<MonoDevelop.Ide.Workbench ActiveDocument="gdx-vectorpinball-ios/Info.plist">
<Files>
<File FileName="gdx-vectorpinball-ios/Main.cs" Line="10" Column="17" />
<File FileName="gdx-vectorpinball-ios/Info.plist" />
</Files>
</MonoDevelop.Ide.Workbench>
<MonoDevelop.Ide.DebuggingService.Breakpoints>
Expand Down
46 changes: 46 additions & 0 deletions tests/gdx-tests-iosmonotouch/gdx-tests-iosmonotouch.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "gdx-tests-iosmonotouch", "gdx-tests-iosmonotouch\gdx-tests-iosmonotouch.csproj", "{D4C6163A-37F9-48B5-9A04-6362E83D4F67}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "superjumper-ios", "..\..\demos\superjumper\superjumper-ios\superjumper-ios\superjumper-ios.csproj", "{E9434FE8-789E-4EF9-AD1E-40F73DBA497B}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|iPhoneSimulator = Debug|iPhoneSimulator
Release|iPhoneSimulator = Release|iPhoneSimulator
Debug|iPhone = Debug|iPhone
Release|iPhone = Release|iPhone
Ad-Hoc|iPhone = Ad-Hoc|iPhone
AppStore|iPhone = AppStore|iPhone
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{D4C6163A-37F9-48B5-9A04-6362E83D4F67}.Ad-Hoc|iPhone.ActiveCfg = Ad-Hoc|iPhone
{D4C6163A-37F9-48B5-9A04-6362E83D4F67}.Ad-Hoc|iPhone.Build.0 = Ad-Hoc|iPhone
{D4C6163A-37F9-48B5-9A04-6362E83D4F67}.AppStore|iPhone.ActiveCfg = AppStore|iPhone
{D4C6163A-37F9-48B5-9A04-6362E83D4F67}.AppStore|iPhone.Build.0 = AppStore|iPhone
{D4C6163A-37F9-48B5-9A04-6362E83D4F67}.Debug|iPhone.ActiveCfg = Debug|iPhone
{D4C6163A-37F9-48B5-9A04-6362E83D4F67}.Debug|iPhone.Build.0 = Debug|iPhone
{D4C6163A-37F9-48B5-9A04-6362E83D4F67}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
{D4C6163A-37F9-48B5-9A04-6362E83D4F67}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
{D4C6163A-37F9-48B5-9A04-6362E83D4F67}.Release|iPhone.ActiveCfg = Release|iPhone
{D4C6163A-37F9-48B5-9A04-6362E83D4F67}.Release|iPhone.Build.0 = Release|iPhone
{D4C6163A-37F9-48B5-9A04-6362E83D4F67}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator
{D4C6163A-37F9-48B5-9A04-6362E83D4F67}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
{E9434FE8-789E-4EF9-AD1E-40F73DBA497B}.Ad-Hoc|iPhone.ActiveCfg = Ad-Hoc|iPhone
{E9434FE8-789E-4EF9-AD1E-40F73DBA497B}.Ad-Hoc|iPhone.Build.0 = Ad-Hoc|iPhone
{E9434FE8-789E-4EF9-AD1E-40F73DBA497B}.AppStore|iPhone.ActiveCfg = AppStore|iPhone
{E9434FE8-789E-4EF9-AD1E-40F73DBA497B}.AppStore|iPhone.Build.0 = AppStore|iPhone
{E9434FE8-789E-4EF9-AD1E-40F73DBA497B}.Debug|iPhone.ActiveCfg = Debug|iPhone
{E9434FE8-789E-4EF9-AD1E-40F73DBA497B}.Debug|iPhone.Build.0 = Debug|iPhone
{E9434FE8-789E-4EF9-AD1E-40F73DBA497B}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
{E9434FE8-789E-4EF9-AD1E-40F73DBA497B}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
{E9434FE8-789E-4EF9-AD1E-40F73DBA497B}.Release|iPhone.ActiveCfg = Release|iPhone
{E9434FE8-789E-4EF9-AD1E-40F73DBA497B}.Release|iPhone.Build.0 = Release|iPhone
{E9434FE8-789E-4EF9-AD1E-40F73DBA497B}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator
{E9434FE8-789E-4EF9-AD1E-40F73DBA497B}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
EndGlobalSection
GlobalSection(MonoDevelopProperties) = preSolution
StartupItem = gdx-tests-iosmonotouch\gdx-tests-iosmonotouch.csproj
EndGlobalSection
EndGlobal
16 changes: 16 additions & 0 deletions tests/gdx-tests-iosmonotouch/gdx-tests-iosmonotouch.userprefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<Properties>
<MonoDevelop.Ide.Workspace ActiveConfiguration="Debug|iPhoneSimulator" />
<MonoDevelop.Ide.Workbench ActiveDocument="gdx-tests-iosmonotouch/convert.xml">
<Files>
<File FileName="gdx-tests-iosmonotouch/AppDelegate.cs" Line="1" Column="1" />
<File FileName="../../demos/superjumper/superjumper-ios/superjumper-ios/Main.cs" Line="27" Column="1" />
<File FileName="gdx-tests-iosmonotouch/Main.cs" Line="8" Column="11" />
<File FileName="gdx-tests-iosmonotouch/Info.plist" />
<File FileName="gdx-tests-iosmonotouch/convert.xml" Line="15" Column="32" />
</Files>
</MonoDevelop.Ide.Workbench>
<MonoDevelop.Ide.DebuggingService.Breakpoints>
<BreakpointStore />
</MonoDevelop.Ide.DebuggingService.Breakpoints>
<MonoDevelop.Ide.DebuggingService.PinnedWatches />
</Properties>
28 changes: 28 additions & 0 deletions tests/gdx-tests-iosmonotouch/gdx-tests-iosmonotouch/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>MinimumOSVersion</key>
<string>3.2</string>
<key>UIDeviceFamily</key>
<array>
<integer>1</integer>
<integer>2</integer>
</array>
<key>UIStatusBarHidden</key>
<true/>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
</dict>
</plist>
27 changes: 27 additions & 0 deletions tests/gdx-tests-iosmonotouch/gdx-tests-iosmonotouch/Main.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
using System.Linq;

using MonoTouch.Foundation;
using MonoTouch.UIKit;
using com.badlogic.gdx.backends.ios;
using com.badlogic.gdx.tests.gwt;
using com.badlogic.gdx.tests;

namespace superjumperios
{
public class Application
{
[Register ("AppDelegate")]
public partial class AppDelegate : IOSApplication {
public AppDelegate(): base(new SpriteBatchShaderTest(), new IOSApplicationConfiguration()) {

}
}

static void Main (string[] args)
{
UIApplication.Main (args, null, "AppDelegate");
}
}
}
36 changes: 36 additions & 0 deletions tests/gdx-tests-iosmonotouch/gdx-tests-iosmonotouch/convert.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<project name="gdx" default="convert" basedir=".">
<property name="IKVM_HOME" value="${user.home}/ikvm-monotouch"/>
<property name="MONO_HOME" value="/Developer/MonoTouch/usr/lib/mono/2.1"/>
<property name="IN" value="-recurse:target/core/*.class"/>
<property name="OUT" value="gdx.dll"/>
<property name="SRC" value="src/"/>
<property name="CLASSPATH" value=""/>
<property name="EXCLUDE" value=""/>

<target name="compile">
<delete dir="target"/>
<mkdir dir="target"/>
<javac srcdir="${SRC}" destdir="target" classpath="${CLASSPATH}">
<include name="**/*.java"/>
<exclude name="${EXCLUDE}"/>
</javac>
</target>

<target name="convert">
<exec executable="mono">
<arg value="${IKVM_HOME}/bin/ikvmc.exe"/>
<arg value="-nostdlib"/>
<arg value="-target:library"/>
<arg value="-debug"/>
<arg value="-out:${OUT}"/>
<arg value="-r:${MONO_HOME}/mscorlib.dll"/>
<arg value="-r:${MONO_HOME}/System.dll"/>
<arg value="-r:${MONO_HOME}/System.Core.dll"/>
<arg value="-r:${MONO_HOME}/System.Data.dll"/>
<arg value="-r:${MONO_HOME}/OpenTK.dll"/>
<arg value="-r:${MONO_HOME}/monotouch.dll"/>
<arg value="-r:${MONO_HOME}/Mono.Data.Sqlite.dll"/>
<arg line="${IN}"/>
</exec>
</target>
</project>
Loading

0 comments on commit 9a8c19f

Please sign in to comment.