瀏覽代碼

Merge pull request #382 from elementc/rm-android-eclipse

remove eclipse project
Peter Robinson 8 年之前
父節點
當前提交
efe6a3492c
共有 31 個文件被更改,包括 1 次插入2437 次删除
  1. 1 1
      README.md
  2. 0 9
      engine/compilers/android/.classpath
  3. 0 56
      engine/compilers/android/.cproject
  4. 0 10
      engine/compilers/android/.externalToolBuilders/NDK Builder.launch
  5. 0 105
      engine/compilers/android/.project
  6. 0 66
      engine/compilers/android/.settings/org.eclipse.cdt.codan.core.prefs
  7. 0 11
      engine/compilers/android/.settings/org.eclipse.jdt.core.prefs
  8. 0 38
      engine/compilers/android/AndroidManifest.xml
  9. 0 469
      engine/compilers/android/NDKKeyboardBugFix/android_native_app_glue.c
  10. 二進制
      engine/compilers/android/assets/splash.png
  11. 0 92
      engine/compilers/android/build.xml
  12. 二進制
      engine/compilers/android/ic_launcher-web.png
  13. 0 589
      engine/compilers/android/jni/Android.mk
  14. 0 4
      engine/compilers/android/jni/Application.mk
  15. 0 3
      engine/compilers/android/lint.xml
  16. 0 15
      engine/compilers/android/project.properties
  17. 二進制
      engine/compilers/android/res/drawable-hdpi/ic_launcher.png
  18. 二進制
      engine/compilers/android/res/drawable-ldpi/ic_launcher.png
  19. 二進制
      engine/compilers/android/res/drawable-mdpi/ic_launcher.png
  20. 二進制
      engine/compilers/android/res/drawable-xhdpi/ic_launcher.png
  21. 0 3
      engine/compilers/android/res/menu/activity_main.xml
  22. 0 11
      engine/compilers/android/res/values-v11/styles.xml
  23. 0 12
      engine/compilers/android/res/values-v14/styles.xml
  24. 0 5
      engine/compilers/android/res/values/strings.xml
  25. 0 20
      engine/compilers/android/res/values/styles.xml
  26. 0 339
      engine/compilers/android/src/com/garagegames/torque2d/FileWalker.java
  27. 0 287
      engine/compilers/android/src/com/garagegames/torque2d/FontManager.java
  28. 0 9
      engine/compilers/android/src/com/garagegames/torque2d/MyNativeActivity.java
  29. 0 69
      engine/compilers/android/src/com/garagegames/torque2d/SplashScreen.java
  30. 0 75
      engine/compilers/android/src/com/garagegames/torque2d/StreamingAudioPlayer.java
  31. 0 139
      engine/compilers/android/src/com/garagegames/torque2d/T2DUtilities.java

+ 1 - 1
README.md

@@ -25,7 +25,7 @@ After downloading a copy of the source code, the following project files for eac
 * **OSX:** Xcode
 * **OSX:** Xcode
 * **Linux:** Make
 * **Linux:** Make
 * **iOS:** Xcode_iOS
 * **iOS:** Xcode_iOS
-* **Android:** Eclipse or Android Studio
+* **Android:** Android Studio
 * **Web:** Emscripten/Cmake
 * **Web:** Emscripten/Cmake
 
 
 See the [wiki](https://github.com/GarageGames/Torque2D/wiki) for available guides on platform setup and development.
 See the [wiki](https://github.com/GarageGames/Torque2D/wiki) for available guides on platform setup and development.

+ 0 - 9
engine/compilers/android/.classpath

@@ -1,9 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
-	<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
-	<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
-	<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
-	<classpathentry kind="src" path="src"/>
-	<classpathentry kind="src" path="gen"/>
-	<classpathentry kind="output" path="bin/classes"/>
-</classpath>

+ 0 - 56
engine/compilers/android/.cproject

@@ -1,56 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<?fileVersion 4.0.0?>
-
-<cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
-	<storageModule moduleId="org.eclipse.cdt.core.settings">
-		<cconfiguration id="com.android.toolchain.gcc.1442582075">
-			<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.android.toolchain.gcc.1442582075" moduleId="org.eclipse.cdt.core.settings" name="Default">
-				<externalSettings/>
-				<extensions>
-					<extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
-					<extension id="org.eclipse.cdt.core.VCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
-					<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
-					<extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
-					<extension id="org.eclipse.cdt.core.MakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
-					<extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
-					<extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
-					<extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
-				</extensions>
-			</storageModule>
-			<storageModule moduleId="cdtBuildSystem" version="4.0.0">
-				<configuration artifactName="${ProjName}" buildProperties="" description="" id="com.android.toolchain.gcc.1442582075" name="Default" parent="org.eclipse.cdt.build.core.emptycfg">
-					<folderInfo id="com.android.toolchain.gcc.1442582075.1056020003" name="/" resourcePath="">
-						<toolChain id="com.android.toolchain.gcc.1400756764" name="com.android.toolchain.gcc" superClass="com.android.toolchain.gcc">
-							<targetPlatform binaryParser="org.eclipse.cdt.core.ELF" id="com.android.targetPlatform.1302199400" isAbstract="false" superClass="com.android.targetPlatform"/>
-							<builder arguments="" command="ndk-build" id="com.android.builder.1818800065" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Android Builder" superClass="com.android.builder"/>
-							<tool id="com.android.gcc.compiler.1014866906" name="Android GCC Compiler" superClass="com.android.gcc.compiler">
-								<option id="com.android.gcc.option.includePath.100688008" superClass="com.android.gcc.option.includePath" valueType="includePath">
-									<listOptionValue builtIn="false" value="&quot;${workspace_loc:/Torque2D/jni/include/libpng}&quot;"/>
-									<listOptionValue builtIn="false" value="&quot;${workspace_loc:/Torque2D/jni/include/libjpeg}&quot;"/>
-									<listOptionValue builtIn="false" value="&quot;${NDK}/sources/cxx-stl/stlport/stlport&quot;"/>
-									<listOptionValue builtIn="false" value="&quot;${NDK}/platforms/android-14/arch-arm/usr/include&quot;"/>
-									<listOptionValue builtIn="false" value="&quot;${workspace_loc:/Torque2D/jni/torqueLibs/openal/Android}&quot;"/>
-								</option>
-								<inputType id="com.android.gcc.inputType.2067917403" superClass="com.android.gcc.inputType"/>
-							</tool>
-						</toolChain>
-					</folderInfo>
-				</configuration>
-			</storageModule>
-			<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
-		</cconfiguration>
-	</storageModule>
-	<storageModule moduleId="cdtBuildSystem" version="4.0.0">
-		<project id="Torque2D.null.1900297553" name="Torque2D"/>
-	</storageModule>
-	<storageModule moduleId="refreshScope" versionNumber="1">
-		<resource resourceType="PROJECT" workspacePath="/Torque2D"/>
-	</storageModule>
-	<storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/>
-	<storageModule moduleId="scannerConfiguration">
-		<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
-		<scannerConfigBuildInfo instanceId="com.android.toolchain.gcc.1442582075;com.android.toolchain.gcc.1442582075.1056020003;com.android.gcc.compiler.1014866906;com.android.gcc.inputType.2067917403">
-			<autodiscovery enabled="false" problemReportingEnabled="true" selectedProfileId="com.android.AndroidPerProjectProfile"/>
-		</scannerConfigBuildInfo>
-	</storageModule>
-</cproject>

+ 0 - 10
engine/compilers/android/.externalToolBuilders/NDK Builder.launch

@@ -1,10 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<launchConfiguration type="org.eclipse.ui.externaltools.ProgramBuilderLaunchConfigurationType">
-<stringAttribute key="org.eclipse.debug.core.ATTR_REFRESH_SCOPE" value="${working_set:&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;resources&gt;&#10;&lt;item path=&quot;/Torque2D/libs&quot; type=&quot;2&quot;/&gt;&#10;&lt;/resources&gt;}"/>
-<booleanAttribute key="org.eclipse.debug.ui.ATTR_LAUNCH_IN_BACKGROUND" value="false"/>
-<stringAttribute key="org.eclipse.ui.externaltools.ATTR_BUILD_SCOPE" value="${working_set:&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;resources&gt;&#10;&lt;item path=&quot;/Torque2D/jni&quot; type=&quot;2&quot;/&gt;&#10;&lt;/resources&gt;}"/>
-<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="/Users/timmgt/androidDev/android-ndk-r8d/ndk-build"/>
-<stringAttribute key="org.eclipse.ui.externaltools.ATTR_RUN_BUILD_KINDS" value="full,incremental,auto,"/>
-<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_TRIGGERS_CONFIGURED" value="true"/>
-<stringAttribute key="org.eclipse.ui.externaltools.ATTR_WORKING_DIRECTORY" value="${workspace_loc:/Torque2D}"/>
-</launchConfiguration>

+ 0 - 105
engine/compilers/android/.project

@@ -1,105 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
-	<name>Torque2D</name>
-	<comment></comment>
-	<projects>
-	</projects>
-	<buildSpec>
-		<buildCommand>
-			<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
-			<triggers>clean,full,incremental,</triggers>
-			<arguments>
-				<dictionary>
-					<key>?name?</key>
-					<value></value>
-				</dictionary>
-				<dictionary>
-					<key>org.eclipse.cdt.make.core.append_environment</key>
-					<value>true</value>
-				</dictionary>
-				<dictionary>
-					<key>org.eclipse.cdt.make.core.buildArguments</key>
-					<value></value>
-				</dictionary>
-				<dictionary>
-					<key>org.eclipse.cdt.make.core.buildCommand</key>
-					<value>ndk-build</value>
-				</dictionary>
-				<dictionary>
-					<key>org.eclipse.cdt.make.core.cleanBuildTarget</key>
-					<value>clean</value>
-				</dictionary>
-				<dictionary>
-					<key>org.eclipse.cdt.make.core.contents</key>
-					<value>org.eclipse.cdt.make.core.activeConfigSettings</value>
-				</dictionary>
-				<dictionary>
-					<key>org.eclipse.cdt.make.core.enableAutoBuild</key>
-					<value>false</value>
-				</dictionary>
-				<dictionary>
-					<key>org.eclipse.cdt.make.core.enableCleanBuild</key>
-					<value>true</value>
-				</dictionary>
-				<dictionary>
-					<key>org.eclipse.cdt.make.core.enableFullBuild</key>
-					<value>true</value>
-				</dictionary>
-				<dictionary>
-					<key>org.eclipse.cdt.make.core.stopOnError</key>
-					<value>true</value>
-				</dictionary>
-				<dictionary>
-					<key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key>
-					<value>false</value>
-				</dictionary>
-			</arguments>
-		</buildCommand>
-		<buildCommand>
-			<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
-			<arguments>
-			</arguments>
-		</buildCommand>
-		<buildCommand>
-			<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
-			<arguments>
-			</arguments>
-		</buildCommand>
-		<buildCommand>
-			<name>org.eclipse.jdt.core.javabuilder</name>
-			<arguments>
-			</arguments>
-		</buildCommand>
-		<buildCommand>
-			<name>com.android.ide.eclipse.adt.ApkBuilder</name>
-			<arguments>
-			</arguments>
-		</buildCommand>
-		<buildCommand>
-			<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
-			<triggers>full,incremental,</triggers>
-			<arguments>
-			</arguments>
-		</buildCommand>
-	</buildSpec>
-	<natures>
-		<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
-		<nature>org.eclipse.jdt.core.javanature</nature>
-		<nature>org.eclipse.cdt.core.cnature</nature>
-		<nature>org.eclipse.cdt.core.ccnature</nature>
-		<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
-		<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
-	</natures>
-	<linkedResources>
-		<link>
-			<name>jni/source</name>
-			<type>2</type>
-			<locationURI>WORKSPACE_LOC/engine/source</locationURI>
-		</link>
-		<link>
-			<name>jni/torqueLibs</name>
-			<type>2</type>
-			<locationURI>WORKSPACE_LOC/engine/lib</locationURI>
-		</link>
-	</linkedResources>
-</projectDescription>

+ 0 - 66
engine/compilers/android/.settings/org.eclipse.cdt.codan.core.prefs

@@ -1,66 +0,0 @@
-eclipse.preferences.version=1
-inEditor=false
-org.eclipse.cdt.codan.checkers.errnoreturn=Warning
-org.eclipse.cdt.codan.checkers.errnoreturn.params={implicit\=>false}
-org.eclipse.cdt.codan.checkers.errreturnvalue=Error
-org.eclipse.cdt.codan.checkers.errreturnvalue.params={}
-org.eclipse.cdt.codan.checkers.noreturn=Error
-org.eclipse.cdt.codan.checkers.noreturn.params={implicit\=>false}
-org.eclipse.cdt.codan.internal.checkers.AbstractClassCreation=Error
-org.eclipse.cdt.codan.internal.checkers.AbstractClassCreation.params={launchModes\=>{RUN_ON_FULL_BUILD\=>false,RUN_ON_INC_BUILD\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
-org.eclipse.cdt.codan.internal.checkers.AmbiguousProblem=Error
-org.eclipse.cdt.codan.internal.checkers.AmbiguousProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>false,RUN_ON_INC_BUILD\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
-org.eclipse.cdt.codan.internal.checkers.AssignmentInConditionProblem=Warning
-org.eclipse.cdt.codan.internal.checkers.AssignmentInConditionProblem.params={}
-org.eclipse.cdt.codan.internal.checkers.AssignmentToItselfProblem=Error
-org.eclipse.cdt.codan.internal.checkers.AssignmentToItselfProblem.params={}
-org.eclipse.cdt.codan.internal.checkers.CaseBreakProblem=Warning
-org.eclipse.cdt.codan.internal.checkers.CaseBreakProblem.params={no_break_comment\=>"no break",last_case_param\=>true,empty_case_param\=>false}
-org.eclipse.cdt.codan.internal.checkers.CatchByReference=Warning
-org.eclipse.cdt.codan.internal.checkers.CatchByReference.params={unknown\=>false,exceptions\=>()}
-org.eclipse.cdt.codan.internal.checkers.CircularReferenceProblem=Error
-org.eclipse.cdt.codan.internal.checkers.CircularReferenceProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>false,RUN_ON_INC_BUILD\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
-org.eclipse.cdt.codan.internal.checkers.FieldResolutionProblem=Error
-org.eclipse.cdt.codan.internal.checkers.FieldResolutionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>false,RUN_ON_INC_BUILD\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
-org.eclipse.cdt.codan.internal.checkers.FunctionResolutionProblem=Error
-org.eclipse.cdt.codan.internal.checkers.FunctionResolutionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>false,RUN_ON_INC_BUILD\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
-org.eclipse.cdt.codan.internal.checkers.InvalidArguments=Error
-org.eclipse.cdt.codan.internal.checkers.InvalidArguments.params={launchModes\=>{RUN_ON_FULL_BUILD\=>false,RUN_ON_INC_BUILD\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
-org.eclipse.cdt.codan.internal.checkers.InvalidTemplateArgumentsProblem=Error
-org.eclipse.cdt.codan.internal.checkers.InvalidTemplateArgumentsProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>false,RUN_ON_INC_BUILD\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
-org.eclipse.cdt.codan.internal.checkers.LabelStatementNotFoundProblem=Error
-org.eclipse.cdt.codan.internal.checkers.LabelStatementNotFoundProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>false,RUN_ON_INC_BUILD\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
-org.eclipse.cdt.codan.internal.checkers.MemberDeclarationNotFoundProblem=Error
-org.eclipse.cdt.codan.internal.checkers.MemberDeclarationNotFoundProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>false,RUN_ON_INC_BUILD\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
-org.eclipse.cdt.codan.internal.checkers.MethodResolutionProblem=Error
-org.eclipse.cdt.codan.internal.checkers.MethodResolutionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>false,RUN_ON_INC_BUILD\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
-org.eclipse.cdt.codan.internal.checkers.NamingConventionFunctionChecker=Info
-org.eclipse.cdt.codan.internal.checkers.NamingConventionFunctionChecker.params={pattern\=>"^[a-z]",macro\=>true,exceptions\=>()}
-org.eclipse.cdt.codan.internal.checkers.NonVirtualDestructorProblem=Warning
-org.eclipse.cdt.codan.internal.checkers.NonVirtualDestructorProblem.params={}
-org.eclipse.cdt.codan.internal.checkers.OverloadProblem=Error
-org.eclipse.cdt.codan.internal.checkers.OverloadProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>false,RUN_ON_INC_BUILD\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
-org.eclipse.cdt.codan.internal.checkers.RedeclarationProblem=Error
-org.eclipse.cdt.codan.internal.checkers.RedeclarationProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>false,RUN_ON_INC_BUILD\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
-org.eclipse.cdt.codan.internal.checkers.RedefinitionProblem=Error
-org.eclipse.cdt.codan.internal.checkers.RedefinitionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>false,RUN_ON_INC_BUILD\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
-org.eclipse.cdt.codan.internal.checkers.ReturnStyleProblem=Warning
-org.eclipse.cdt.codan.internal.checkers.ReturnStyleProblem.params={}
-org.eclipse.cdt.codan.internal.checkers.ScanfFormatStringSecurityProblem=-Warning
-org.eclipse.cdt.codan.internal.checkers.ScanfFormatStringSecurityProblem.params={}
-org.eclipse.cdt.codan.internal.checkers.StatementHasNoEffectProblem=Warning
-org.eclipse.cdt.codan.internal.checkers.StatementHasNoEffectProblem.params={macro\=>true,exceptions\=>()}
-org.eclipse.cdt.codan.internal.checkers.SuggestedParenthesisProblem=Warning
-org.eclipse.cdt.codan.internal.checkers.SuggestedParenthesisProblem.params={paramNot\=>false}
-org.eclipse.cdt.codan.internal.checkers.SuspiciousSemicolonProblem=Warning
-org.eclipse.cdt.codan.internal.checkers.SuspiciousSemicolonProblem.params={else\=>false,afterelse\=>false}
-org.eclipse.cdt.codan.internal.checkers.TypeResolutionProblem=Error
-org.eclipse.cdt.codan.internal.checkers.TypeResolutionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>false,RUN_ON_INC_BUILD\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
-org.eclipse.cdt.codan.internal.checkers.UnusedFunctionDeclarationProblem=Warning
-org.eclipse.cdt.codan.internal.checkers.UnusedFunctionDeclarationProblem.params={macro\=>true}
-org.eclipse.cdt.codan.internal.checkers.UnusedStaticFunctionProblem=Warning
-org.eclipse.cdt.codan.internal.checkers.UnusedStaticFunctionProblem.params={macro\=>true}
-org.eclipse.cdt.codan.internal.checkers.UnusedVariableDeclarationProblem=Warning
-org.eclipse.cdt.codan.internal.checkers.UnusedVariableDeclarationProblem.params={macro\=>true,exceptions\=>("@(\#)","$Id")}
-org.eclipse.cdt.codan.internal.checkers.VariableResolutionProblem=Warning
-org.eclipse.cdt.codan.internal.checkers.VariableResolutionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>false,RUN_ON_INC_BUILD\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}

+ 0 - 11
engine/compilers/android/.settings/org.eclipse.jdt.core.prefs

@@ -1,11 +0,0 @@
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
-org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
-org.eclipse.jdt.core.compiler.compliance=1.6
-org.eclipse.jdt.core.compiler.debug.lineNumber=generate
-org.eclipse.jdt.core.compiler.debug.localVariable=generate
-org.eclipse.jdt.core.compiler.debug.sourceFile=generate
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.6

+ 0 - 38
engine/compilers/android/AndroidManifest.xml

@@ -1,38 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<manifest package="com.garagegames.torque2d"
-    android:versionCode="1"
-    android:versionName="3.0" xmlns:android="http://schemas.android.com/apk/res/android">
-    
-    <uses-permission android:name="android.permission.INTERNET" />
-    <uses-permission android:name="com.android.vending.CHECK_LICENSE" />
-    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
-    <uses-permission android:name="android.permission.VIBRATE"/>
-
-    <uses-sdk
-        android:minSdkVersion="9"
-        android:targetSdkVersion="18" />   
-    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
-    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
-    <uses-feature android:glEsVersion="0x00010001" />
-
-    <application
-        android:allowBackup="true"
-        android:icon="@drawable/ic_launcher"
-        android:label="@string/app_name"
-        android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
-        android:hardwareAccelerated="true" android:hasCode="true">
-        <activity
-            android:name="com.garagegames.torque2d.MyNativeActivity"
-            android:label="@string/app_name"
-            android:screenOrientation="sensorLandscape" >
-            <!-- Tell NativeActivity the name of or .so -->
-            <meta-data android:name="android.app.lib_name"
-                    android:value="torque2d" />
-            <intent-filter>
-                <action android:name="android.intent.action.MAIN" />
-                <category android:name="android.intent.category.LAUNCHER" />
-            </intent-filter>
-        </activity>
-    </application>
-
-</manifest>

+ 0 - 469
engine/compilers/android/NDKKeyboardBugFix/android_native_app_glue.c

@@ -1,469 +0,0 @@
-/*
- * Copyright (C) 2010 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-#include <jni.h>
-
-#include <errno.h>
-#include <string.h>
-#include <unistd.h>
-#include <sys/resource.h>
-
-#include "android_native_app_glue.h"
-#include <android/log.h>
-
-#define LOGI(...) ((void)__android_log_print(ANDROID_LOG_INFO, "threaded_app", __VA_ARGS__))
-#define LOGE(...) ((void)__android_log_print(ANDROID_LOG_ERROR, "threaded_app", __VA_ARGS__))
-
-/* For debug builds, always enable the debug traces in this library */
-#ifndef NDEBUG
-#  define LOGV(...)  ((void)__android_log_print(ANDROID_LOG_VERBOSE, "threaded_app", __VA_ARGS__))
-#else
-#  define LOGV(...)  ((void)0)
-#endif
-
-static void free_saved_state(struct android_app* android_app) {
-    pthread_mutex_lock(&android_app->mutex);
-    if (android_app->savedState != NULL) {
-        free(android_app->savedState);
-        android_app->savedState = NULL;
-        android_app->savedStateSize = 0;
-    }
-    pthread_mutex_unlock(&android_app->mutex);
-}
-
-int8_t android_app_read_cmd(struct android_app* android_app) {
-    int8_t cmd;
-    if (read(android_app->msgread, &cmd, sizeof(cmd)) == sizeof(cmd)) {
-        switch (cmd) {
-            case APP_CMD_SAVE_STATE:
-                free_saved_state(android_app);
-                break;
-        }
-        return cmd;
-    } else {
-        LOGE("No data on command pipe!");
-    }
-    return -1;
-}
-
-static void print_cur_config(struct android_app* android_app) {
-    char lang[2], country[2];
-    AConfiguration_getLanguage(android_app->config, lang);
-    AConfiguration_getCountry(android_app->config, country);
-
-    LOGV("Config: mcc=%d mnc=%d lang=%c%c cnt=%c%c orien=%d touch=%d dens=%d "
-            "keys=%d nav=%d keysHid=%d navHid=%d sdk=%d size=%d long=%d "
-            "modetype=%d modenight=%d",
-            AConfiguration_getMcc(android_app->config),
-            AConfiguration_getMnc(android_app->config),
-            lang[0], lang[1], country[0], country[1],
-            AConfiguration_getOrientation(android_app->config),
-            AConfiguration_getTouchscreen(android_app->config),
-            AConfiguration_getDensity(android_app->config),
-            AConfiguration_getKeyboard(android_app->config),
-            AConfiguration_getNavigation(android_app->config),
-            AConfiguration_getKeysHidden(android_app->config),
-            AConfiguration_getNavHidden(android_app->config),
-            AConfiguration_getSdkVersion(android_app->config),
-            AConfiguration_getScreenSize(android_app->config),
-            AConfiguration_getScreenLong(android_app->config),
-            AConfiguration_getUiModeType(android_app->config),
-            AConfiguration_getUiModeNight(android_app->config));
-}
-
-void android_app_pre_exec_cmd(struct android_app* android_app, int8_t cmd) {
-    switch (cmd) {
-        case APP_CMD_INPUT_CHANGED:
-            LOGV("APP_CMD_INPUT_CHANGED\n");
-            pthread_mutex_lock(&android_app->mutex);
-            if (android_app->inputQueue != NULL) {
-                AInputQueue_detachLooper(android_app->inputQueue);
-            }
-            android_app->inputQueue = android_app->pendingInputQueue;
-            if (android_app->inputQueue != NULL) {
-                LOGV("Attaching input queue to looper");
-                AInputQueue_attachLooper(android_app->inputQueue,
-                        android_app->looper, LOOPER_ID_INPUT, NULL,
-                        &android_app->inputPollSource);
-            }
-            pthread_cond_broadcast(&android_app->cond);
-            pthread_mutex_unlock(&android_app->mutex);
-            break;
-
-        case APP_CMD_INIT_WINDOW:
-            LOGV("APP_CMD_INIT_WINDOW\n");
-            pthread_mutex_lock(&android_app->mutex);
-            android_app->window = android_app->pendingWindow;
-            pthread_cond_broadcast(&android_app->cond);
-            pthread_mutex_unlock(&android_app->mutex);
-            break;
-
-        case APP_CMD_TERM_WINDOW:
-            LOGV("APP_CMD_TERM_WINDOW\n");
-            pthread_cond_broadcast(&android_app->cond);
-            break;
-
-        case APP_CMD_RESUME:
-        case APP_CMD_START:
-        case APP_CMD_PAUSE:
-        case APP_CMD_STOP:
-            LOGV("activityState=%d\n", cmd);
-            pthread_mutex_lock(&android_app->mutex);
-            android_app->activityState = cmd;
-            pthread_cond_broadcast(&android_app->cond);
-            pthread_mutex_unlock(&android_app->mutex);
-            break;
-
-        case APP_CMD_CONFIG_CHANGED:
-            LOGV("APP_CMD_CONFIG_CHANGED\n");
-            AConfiguration_fromAssetManager(android_app->config,
-                    android_app->activity->assetManager);
-            print_cur_config(android_app);
-            break;
-
-        case APP_CMD_DESTROY:
-            LOGV("APP_CMD_DESTROY\n");
-            android_app->destroyRequested = 1;
-            break;
-    }
-}
-
-void android_app_post_exec_cmd(struct android_app* android_app, int8_t cmd) {
-    switch (cmd) {
-        case APP_CMD_TERM_WINDOW:
-            LOGV("APP_CMD_TERM_WINDOW\n");
-            pthread_mutex_lock(&android_app->mutex);
-            android_app->window = NULL;
-            pthread_cond_broadcast(&android_app->cond);
-            pthread_mutex_unlock(&android_app->mutex);
-            break;
-
-        case APP_CMD_SAVE_STATE:
-            LOGV("APP_CMD_SAVE_STATE\n");
-            pthread_mutex_lock(&android_app->mutex);
-            android_app->stateSaved = 1;
-            pthread_cond_broadcast(&android_app->cond);
-            pthread_mutex_unlock(&android_app->mutex);
-            break;
-
-        case APP_CMD_RESUME:
-            free_saved_state(android_app);
-            break;
-    }
-}
-
-void app_dummy() {
-
-}
-
-static void android_app_destroy(struct android_app* android_app) {
-    LOGV("android_app_destroy!");
-    free_saved_state(android_app);
-    pthread_mutex_lock(&android_app->mutex);
-    if (android_app->inputQueue != NULL) {
-        AInputQueue_detachLooper(android_app->inputQueue);
-    }
-    AConfiguration_delete(android_app->config);
-    android_app->destroyed = 1;
-    pthread_cond_broadcast(&android_app->cond);
-    pthread_mutex_unlock(&android_app->mutex);
-    // Can't touch android_app object after this.
-}
-
-static void process_input(struct android_app* app, struct android_poll_source* source) {
-    AInputEvent* event = NULL;
-    int processed = 0;
-    while (AInputQueue_getEvent(app->inputQueue, &event) >= 0) {
-        LOGV("New input event: type=%d\n", AInputEvent_getType(event));
-
-        if (AInputEvent_getType(event) == AINPUT_EVENT_TYPE_KEY) {
-
-            int action = AKeyEvent_getAction(event);
-            int key_val = AKeyEvent_getKeyCode(event);
-            int metastate = AKeyEvent_getMetaState(event);
-
-            if (key_val == AKEYCODE_BACK) {
-
-            	int32_t handled = 0;
-                if (app->onInputEvent != NULL) handled = app->onInputEvent(app, event);
-            	AInputQueue_finishEvent(app->inputQueue, event, handled);
-
-            	processed = 1;
-                continue;
-            }
-        }
-        if (AInputQueue_preDispatchEvent(app->inputQueue, event)) {
-            continue;
-        }
-        int32_t handled = 0;
-        if (app->onInputEvent != NULL) handled = app->onInputEvent(app, event);
-        AInputQueue_finishEvent(app->inputQueue, event, handled);
-        processed = 1;
-    }
-    if (processed == 0) {
-        LOGE("Failure reading next input event: %s\n", strerror(errno));
-    }
-}
-
-static void process_cmd(struct android_app* app, struct android_poll_source* source) {
-    int8_t cmd = android_app_read_cmd(app);
-    android_app_pre_exec_cmd(app, cmd);
-    if (app->onAppCmd != NULL) app->onAppCmd(app, cmd);
-    android_app_post_exec_cmd(app, cmd);
-}
-
-static void* android_app_entry(void* param) {
-    struct android_app* android_app = (struct android_app*)param;
-
-    android_app->config = AConfiguration_new();
-    AConfiguration_fromAssetManager(android_app->config, android_app->activity->assetManager);
-
-    print_cur_config(android_app);
-
-    android_app->cmdPollSource.id = LOOPER_ID_MAIN;
-    android_app->cmdPollSource.app = android_app;
-    android_app->cmdPollSource.process = process_cmd;
-    android_app->inputPollSource.id = LOOPER_ID_INPUT;
-    android_app->inputPollSource.app = android_app;
-    android_app->inputPollSource.process = process_input;
-
-    ALooper* looper = ALooper_prepare(ALOOPER_PREPARE_ALLOW_NON_CALLBACKS);
-    ALooper_addFd(looper, android_app->msgread, LOOPER_ID_MAIN, ALOOPER_EVENT_INPUT, NULL,
-            &android_app->cmdPollSource);
-    android_app->looper = looper;
-
-    pthread_mutex_lock(&android_app->mutex);
-    android_app->running = 1;
-    pthread_cond_broadcast(&android_app->cond);
-    pthread_mutex_unlock(&android_app->mutex);
-
-    android_main(android_app);
-
-    pthread_mutex_lock(&android_app->mutex);
-	android_app->running = 0;
-	pthread_cond_broadcast(&android_app->cond);
-	pthread_mutex_unlock(&android_app->mutex);
-
-    android_app_destroy(android_app);
-   //Hack to get the app to stil exit after keyboard work around
-    exit(0);
-    return NULL;
-}
-
-// --------------------------------------------------------------------
-// Native activity interaction (called from main thread)
-// --------------------------------------------------------------------
-
-static struct android_app* android_app_create(ANativeActivity* activity,
-        void* savedState, size_t savedStateSize) {
-    struct android_app* android_app = (struct android_app*)malloc(sizeof(struct android_app));
-    memset(android_app, 0, sizeof(struct android_app));
-    android_app->activity = activity;
-
-    pthread_mutex_init(&android_app->mutex, NULL);
-    pthread_cond_init(&android_app->cond, NULL);
-
-    if (savedState != NULL) {
-        android_app->savedState = malloc(savedStateSize);
-        android_app->savedStateSize = savedStateSize;
-        memcpy(android_app->savedState, savedState, savedStateSize);
-    }
-
-    int msgpipe[2];
-    if (pipe(msgpipe)) {
-        LOGE("could not create pipe: %s", strerror(errno));
-        return NULL;
-    }
-    android_app->msgread = msgpipe[0];
-    android_app->msgwrite = msgpipe[1];
-
-    pthread_attr_t attr; 
-    pthread_attr_init(&attr);
-    pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
-    pthread_create(&android_app->thread, &attr, android_app_entry, android_app);
-
-    // Wait for thread to start.
-    pthread_mutex_lock(&android_app->mutex);
-    while (!android_app->running) {
-        pthread_cond_wait(&android_app->cond, &android_app->mutex);
-    }
-    pthread_mutex_unlock(&android_app->mutex);
-
-    return android_app;
-}
-
-static void android_app_write_cmd(struct android_app* android_app, int8_t cmd) {
-    if (write(android_app->msgwrite, &cmd, sizeof(cmd)) != sizeof(cmd)) {
-        LOGE("Failure writing android_app cmd: %s\n", strerror(errno));
-    }
-}
-
-static void android_app_set_input(struct android_app* android_app, AInputQueue* inputQueue) {
-    pthread_mutex_lock(&android_app->mutex);
-    android_app->pendingInputQueue = inputQueue;
-    android_app_write_cmd(android_app, APP_CMD_INPUT_CHANGED);
-    while (android_app->inputQueue != android_app->pendingInputQueue) {
-        pthread_cond_wait(&android_app->cond, &android_app->mutex);
-    }
-    pthread_mutex_unlock(&android_app->mutex);
-}
-
-static void android_app_set_window(struct android_app* android_app, ANativeWindow* window) {
-    pthread_mutex_lock(&android_app->mutex);
-    if (android_app->pendingWindow != NULL) {
-        android_app_write_cmd(android_app, APP_CMD_TERM_WINDOW);
-    }
-    android_app->pendingWindow = window;
-    if (window != NULL) {
-        android_app_write_cmd(android_app, APP_CMD_INIT_WINDOW);
-    }
-    while (android_app->window != android_app->pendingWindow) {
-        pthread_cond_wait(&android_app->cond, &android_app->mutex);
-    }
-    pthread_mutex_unlock(&android_app->mutex);
-}
-
-static void android_app_set_activity_state(struct android_app* android_app, int8_t cmd) {
-    pthread_mutex_lock(&android_app->mutex);
-    android_app_write_cmd(android_app, cmd);
-    while (android_app->activityState != cmd) {
-        pthread_cond_wait(&android_app->cond, &android_app->mutex);
-    }
-    pthread_mutex_unlock(&android_app->mutex);
-}
-
-static void android_app_free(struct android_app* android_app) {
-    pthread_mutex_lock(&android_app->mutex);
-    android_app_write_cmd(android_app, APP_CMD_DESTROY);
-    while (!android_app->destroyed) {
-        pthread_cond_wait(&android_app->cond, &android_app->mutex);
-    }
-    pthread_mutex_unlock(&android_app->mutex);
-
-    close(android_app->msgread);
-    close(android_app->msgwrite);
-    pthread_cond_destroy(&android_app->cond);
-    pthread_mutex_destroy(&android_app->mutex);
-    free(android_app);
-}
-
-static void onDestroy(ANativeActivity* activity) {
-    LOGV("Destroy: %p\n", activity);
-    android_app_free((struct android_app*)activity->instance);
-}
-
-static void onStart(ANativeActivity* activity) {
-    LOGV("Start: %p\n", activity);
-    android_app_set_activity_state((struct android_app*)activity->instance, APP_CMD_START);
-}
-
-static void onResume(ANativeActivity* activity) {
-    LOGV("Resume: %p\n", activity);
-    android_app_set_activity_state((struct android_app*)activity->instance, APP_CMD_RESUME);
-}
-
-static void* onSaveInstanceState(ANativeActivity* activity, size_t* outLen) {
-    struct android_app* android_app = (struct android_app*)activity->instance;
-    void* savedState = NULL;
-
-    LOGV("SaveInstanceState: %p\n", activity);
-    pthread_mutex_lock(&android_app->mutex);
-    android_app->stateSaved = 0;
-    android_app_write_cmd(android_app, APP_CMD_SAVE_STATE);
-    while (!android_app->stateSaved) {
-        pthread_cond_wait(&android_app->cond, &android_app->mutex);
-    }
-
-    if (android_app->savedState != NULL) {
-        savedState = android_app->savedState;
-        *outLen = android_app->savedStateSize;
-        android_app->savedState = NULL;
-        android_app->savedStateSize = 0;
-    }
-
-    pthread_mutex_unlock(&android_app->mutex);
-
-    return savedState;
-}
-
-static void onPause(ANativeActivity* activity) {
-    LOGV("Pause: %p\n", activity);
-    android_app_set_activity_state((struct android_app*)activity->instance, APP_CMD_PAUSE);
-}
-
-static void onStop(ANativeActivity* activity) {
-    LOGV("Stop: %p\n", activity);
-    android_app_set_activity_state((struct android_app*)activity->instance, APP_CMD_STOP);
-}
-
-static void onConfigurationChanged(ANativeActivity* activity) {
-    struct android_app* android_app = (struct android_app*)activity->instance;
-    LOGV("ConfigurationChanged: %p\n", activity);
-    android_app_write_cmd(android_app, APP_CMD_CONFIG_CHANGED);
-}
-
-static void onLowMemory(ANativeActivity* activity) {
-    struct android_app* android_app = (struct android_app*)activity->instance;
-    LOGV("LowMemory: %p\n", activity);
-    android_app_write_cmd(android_app, APP_CMD_LOW_MEMORY);
-}
-
-static void onWindowFocusChanged(ANativeActivity* activity, int focused) {
-    LOGV("WindowFocusChanged: %p -- %d\n", activity, focused);
-    android_app_write_cmd((struct android_app*)activity->instance,
-            focused ? APP_CMD_GAINED_FOCUS : APP_CMD_LOST_FOCUS);
-}
-
-static void onNativeWindowCreated(ANativeActivity* activity, ANativeWindow* window) {
-    LOGV("NativeWindowCreated: %p -- %p\n", activity, window);
-    android_app_set_window((struct android_app*)activity->instance, window);
-}
-
-static void onNativeWindowDestroyed(ANativeActivity* activity, ANativeWindow* window) {
-    LOGV("NativeWindowDestroyed: %p -- %p\n", activity, window);
-    android_app_set_window((struct android_app*)activity->instance, NULL);
-}
-
-static void onInputQueueCreated(ANativeActivity* activity, AInputQueue* queue) {
-    LOGV("InputQueueCreated: %p -- %p\n", activity, queue);
-    android_app_set_input((struct android_app*)activity->instance, queue);
-}
-
-static void onInputQueueDestroyed(ANativeActivity* activity, AInputQueue* queue) {
-    LOGV("InputQueueDestroyed: %p -- %p\n", activity, queue);
-    android_app_set_input((struct android_app*)activity->instance, NULL);
-}
-
-void ANativeActivity_onCreate(ANativeActivity* activity,
-        void* savedState, size_t savedStateSize) {
-    LOGV("Creating: %p\n", activity);
-    activity->callbacks->onDestroy = onDestroy;
-    activity->callbacks->onStart = onStart;
-    activity->callbacks->onResume = onResume;
-    activity->callbacks->onSaveInstanceState = onSaveInstanceState;
-    activity->callbacks->onPause = onPause;
-    activity->callbacks->onStop = onStop;
-    activity->callbacks->onConfigurationChanged = onConfigurationChanged;
-    activity->callbacks->onLowMemory = onLowMemory;
-    activity->callbacks->onWindowFocusChanged = onWindowFocusChanged;
-    activity->callbacks->onNativeWindowCreated = onNativeWindowCreated;
-    activity->callbacks->onNativeWindowDestroyed = onNativeWindowDestroyed;
-    activity->callbacks->onInputQueueCreated = onInputQueueCreated;
-    activity->callbacks->onInputQueueDestroyed = onInputQueueDestroyed;
-
-    activity->instance = android_app_create(activity, savedState, savedStateSize);
-}

二進制
engine/compilers/android/assets/splash.png


+ 0 - 92
engine/compilers/android/build.xml

@@ -1,92 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project name="Torque2D" default="help">
-
-    <!-- The local.properties file is created and updated by the 'android' tool.
-         It contains the path to the SDK. It should *NOT* be checked into
-         Version Control Systems. -->
-    <property file="local.properties" />
-
-    <!-- The ant.properties file can be created by you. It is only edited by the
-         'android' tool to add properties to it.
-         This is the place to change some Ant specific build properties.
-         Here are some properties you may want to change/update:
-
-         source.dir
-             The name of the source directory. Default is 'src'.
-         out.dir
-             The name of the output directory. Default is 'bin'.
-
-         For other overridable properties, look at the beginning of the rules
-         files in the SDK, at tools/ant/build.xml
-
-         Properties related to the SDK location or the project target should
-         be updated using the 'android' tool with the 'update' action.
-
-         This file is an integral part of the build system for your
-         application and should be checked into Version Control Systems.
-
-         -->
-    <property file="ant.properties" />
-
-    <!-- if sdk.dir was not set from one of the property file, then
-         get it from the ANDROID_HOME env var.
-         This must be done before we load project.properties since
-         the proguard config can use sdk.dir -->
-    <property environment="env" />
-    <condition property="sdk.dir" value="${env.ANDROID_HOME}">
-        <isset property="env.ANDROID_HOME" />
-    </condition>
-
-    <!-- The project.properties file is created and updated by the 'android'
-         tool, as well as ADT.
-
-         This contains project specific properties such as project target, and library
-         dependencies. Lower level build properties are stored in ant.properties
-         (or in .classpath for Eclipse projects).
-
-         This file is an integral part of the build system for your
-         application and should be checked into Version Control Systems. -->
-    <loadproperties srcFile="project.properties" />
-
-    <!-- quick check on sdk.dir -->
-    <fail
-            message="sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through the ANDROID_HOME environment variable."
-            unless="sdk.dir"
-    />
-
-    <!--
-        Import per project custom build rules if present at the root of the project.
-        This is the place to put custom intermediary targets such as:
-            -pre-build
-            -pre-compile
-            -post-compile (This is typically used for code obfuscation.
-                           Compiled code location: ${out.classes.absolute.dir}
-                           If this is not done in place, override ${out.dex.input.absolute.dir})
-            -post-package
-            -post-build
-            -pre-clean
-    -->
-    <import file="custom_rules.xml" optional="true" />
-
-    <!-- Import the actual build file.
-
-         To customize existing targets, there are two options:
-         - Customize only one target:
-             - copy/paste the target into this file, *before* the
-               <import> task.
-             - customize it to your needs.
-         - Customize the whole content of build.xml
-             - copy/paste the content of the rules files (minus the top node)
-               into this file, replacing the <import> task.
-             - customize to your needs.
-
-         ***********************
-         ****** IMPORTANT ******
-         ***********************
-         In all cases you must update the value of version-tag below to read 'custom' instead of an integer,
-         in order to avoid having your file be overridden by tools such as "android update project"
-    -->
-    <!-- version-tag: 1 -->
-    <import file="${sdk.dir}/tools/ant/build.xml" />
-
-</project>

二進制
engine/compilers/android/ic_launcher-web.png


+ 0 - 589
engine/compilers/android/jni/Android.mk

@@ -1,589 +0,0 @@
-# Copyright (C) 2010 The Android Open Source Project
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-#      http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-#required for compiling on windows
-NDK_APP_SHORT_COMMANDS  := true
-LOCAL_SHORT_COMMANDS  := true
-
-MY_LOCAL_PATH := $(call my-dir)
-
-LOCAL_PATH := $(MY_LOCAL_PATH)
-# OpenAL Soft library must be a shared library since license is LGPLv3
-include $(CLEAR_VARS)
-
-LOCAL_MODULE    := libopenal-prebuilt
-LOCAL_SRC_FILES := ../../../lib/openal/Android/$(TARGET_ARCH_ABI)/libopenal.so
-LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../../lib/openal/Android/openal-soft-master/jni/OpenAL/include
-
-include $(PREBUILT_SHARED_LIBRARY)
-
-#freetype2 lib for generating fonts on device
-LOCAL_PATH := $(MY_LOCAL_PATH)
- 
-include $(CLEAR_VARS)
- 
-LOCAL_MODULE := freetype-prebuilt
-LOCAL_SRC_FILES := ../../../lib/freetype/android/lib/libfreetype.a
-LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../../lib/freetype/android/include $(LOCAL_PATH)/../../../lib/freetype/android/include/freetype2
- 
-include $(PREBUILT_STATIC_LIBRARY)
-
-LOCAL_PATH := $(MY_LOCAL_PATH)
-
-include $(CLEAR_VARS)
-
-LOCAL_MODULE    := torque2d
-LOCAL_C_INCLUDES := $(LOCAL_PATH) \
-					$(LOCAL_PATH)/../../../lib/ljpeg \
-					$(LOCAL_PATH)/../../../lib/lpng \
-    				$(LOCAL_PATH)/../../../source \
-    				$(LOCAL_PATH)/../../../source/2d \
-    				$(LOCAL_PATH)/../../../source/2d/assets \
-    				$(LOCAL_PATH)/../../../source/2d/controllers \
-    				$(LOCAL_PATH)/../../../source/2d/core \
-    				$(LOCAL_PATH)/../../../source/2d/experimental/composites \
-    				$(LOCAL_PATH)/../../../source/2d/gui \
-    				$(LOCAL_PATH)/../../../source/2d/sceneobject \
-    				$(LOCAL_PATH)/../../../source/2d/scene \
-    				$(LOCAL_PATH)/../../../source/algorithm \
-    				$(LOCAL_PATH)/../../../source/assets \
-    				$(LOCAL_PATH)/../../../source/audio \
-    				$(LOCAL_PATH)/../../../source/Box2D \
-    				$(LOCAL_PATH)/../../../source/Box2D/Collision \
-					$(LOCAL_PATH)/../../../source/Box2D/Collision/Shapes \
-					$(LOCAL_PATH)/../../../source/Box2D/Common \
-					$(LOCAL_PATH)/../../../source/Box2D/Dynamics \
-					$(LOCAL_PATH)/../../../source/Box2D/Dynamics/Contacts \
-					$(LOCAL_PATH)/../../../source/Box2D/Dynamics/Joints \
-					$(LOCAL_PATH)/../../../source/Box2D/Rope \
-    				$(LOCAL_PATH)/../../../source/collection \
-    				$(LOCAL_PATH)/../../../source/component \
-    				$(LOCAL_PATH)/../../../source/component/behaviors \
-    				$(LOCAL_PATH)/../../../source/console \
-    				$(LOCAL_PATH)/../../../source/debug \
-    				$(LOCAL_PATH)/../../../source/debug/remote \
-    				$(LOCAL_PATH)/../../../source/delegates \
-    				$(LOCAL_PATH)/../../../source/game \
-    				$(LOCAL_PATH)/../../../source/graphics \
-    				$(LOCAL_PATH)/../../../source/gui \
-    				$(LOCAL_PATH)/../../../source/gui/buttons \
-    				$(LOCAL_PATH)/../../../source/gui/containers \
-    				$(LOCAL_PATH)/../../../source/gui/editor \
-    				$(LOCAL_PATH)/../../../source/gui/language \
-    				$(LOCAL_PATH)/../../../source/input \
-    				$(LOCAL_PATH)/../../../source/io \
-    				$(LOCAL_PATH)/../../../source/io/resource \
-    				$(LOCAL_PATH)/../../../source/io/zip \
-    				$(LOCAL_PATH)/../../../source/math \
-    				$(LOCAL_PATH)/../../../source/memory \
-    				$(LOCAL_PATH)/../../../source/messaging \
-    				$(LOCAL_PATH)/../../../source/module \
-    				$(LOCAL_PATH)/../../../source/network \
-    				$(LOCAL_PATH)/../../../source/persistence \
-    				$(LOCAL_PATH)/../../../source/persistence/taml \
-    				$(LOCAL_PATH)/../../../source/persistence/taml/binary \
-    				$(LOCAL_PATH)/../../../source/persistence/taml/json \
-    				$(LOCAL_PATH)/../../../source/persistence/taml/xml \
-    				$(LOCAL_PATH)/../../../source/persistence/rapidjson/include \
-    				$(LOCAL_PATH)/../../../source/platform \
-    				$(LOCAL_PATH)/../../../source/platform/nativeDialogs \
-    				$(LOCAL_PATH)/../../../source/platformAndroid \
-    				$(LOCAL_PATH)/../../../source/sim \
-    				$(LOCAL_PATH)/../../../source/spine \
-    				$(LOCAL_PATH)/../../../source/string 
-#    				$(LOCAL_PATH)/../../../source/testing \
-#    				$(LOCAL_PATH)/../../../source/testing/tests \
-	    			
-	    			
-LOCAL_SRC_FILES :=  ../../../lib/ljpeg/jcapimin.c \
-					../../../lib/ljpeg/jcapistd.c \
-					../../../lib/ljpeg/jccoefct.c \
-					../../../lib/ljpeg/jccolor.c \
-					../../../lib/ljpeg/jcdctmgr.c \
-					../../../lib/ljpeg/jchuff.c \
-					../../../lib/ljpeg/jcinit.c \
-					../../../lib/ljpeg/jcmainct.c \
-					../../../lib/ljpeg/jcmarker.c \
-					../../../lib/ljpeg/jcmaster.c \
-					../../../lib/ljpeg/jcomapi.c \
-					../../../lib/ljpeg/jcparam.c \
-					../../../lib/ljpeg/jcphuff.c \
-					../../../lib/ljpeg/jcprepct.c \
-					../../../lib/ljpeg/jcsample.c \
-					../../../lib/ljpeg/jctrans.c \
-					../../../lib/ljpeg/jdapimin.c \
-					../../../lib/ljpeg/jdapistd.c \
-					../../../lib/ljpeg/jdatadst.c \
-					../../../lib/ljpeg/jdatasrc.c \
-					../../../lib/ljpeg/jdcoefct.c \
-					../../../lib/ljpeg/jdcolor.c \
-					../../../lib/ljpeg/jddctmgr.c \
-					../../../lib/ljpeg/jdhuff.c \
-					../../../lib/ljpeg/jdinput.c \
-					../../../lib/ljpeg/jdmainct.c \
-					../../../lib/ljpeg/jdmarker.c \
-					../../../lib/ljpeg/jdmaster.c \
-					../../../lib/ljpeg/jdmerge.c \
-					../../../lib/ljpeg/jdphuff.c \
-					../../../lib/ljpeg/jdpostct.c \
-					../../../lib/ljpeg/jdsample.c \
-					../../../lib/ljpeg/jdtrans.c \
-					../../../lib/ljpeg/jerror.c \
-					../../../lib/ljpeg/jfdctflt.c \
-					../../../lib/ljpeg/jfdctfst.c \
-					../../../lib/ljpeg/jfdctint.c \
-					../../../lib/ljpeg/jidctflt.c \
-					../../../lib/ljpeg/jidctfst.c \
-					../../../lib/ljpeg/jidctint.c \
-					../../../lib/ljpeg/jidctred.c \
-					../../../lib/ljpeg/jmemansi.c \
-					../../../lib/ljpeg/jmemmgr.c \
-					../../../lib/ljpeg/jquant1.c \
-					../../../lib/ljpeg/jquant2.c \
-					../../../lib/ljpeg/jutils.c \
-					../../../lib/lpng/png.c \
-					../../../lib/lpng/pngerror.c \
-					../../../lib/lpng/pngget.c \
-					../../../lib/lpng/pngmem.c \
-					../../../lib/lpng/pngpread.c \
-					../../../lib/lpng/pngread.c \
-					../../../lib/lpng/pngrio.c \
-					../../../lib/lpng/pngrtran.c \
-					../../../lib/lpng/pngrutil.c \
-					../../../lib/lpng/pngset.c \
-					../../../lib/lpng/pngtrans.c \
-					../../../lib/lpng/pngwio.c \
-					../../../lib/lpng/pngwrite.c \
-					../../../lib/lpng/pngwtran.c \
-					../../../lib/lpng/pngwutil.c \
-					../../../source/2d/assets/AnimationAsset.cc \
-					../../../source/2d/assets/ImageAsset.cc \
-					../../../source/2d/assets/ParticleAsset.cc \
-					../../../source/2d/assets/ParticleAssetEmitter.cc \
-					../../../source/2d/assets/ParticleAssetField.cc \
-					../../../source/2d/assets/ParticleAssetFieldCollection.cc \
-					../../../source/2d/assets/SkeletonAsset.cc \
-					../../../source/2d/controllers/AmbientForceController.cc \
-					../../../source/2d/controllers/BuoyancyController.cc \
-					../../../source/2d/controllers/core/GroupedSceneController.cc \
-					../../../source/2d/controllers/core/PickingSceneController.cc \
-					../../../source/2d/controllers/PointForceController.cc \
-					../../../source/2d/core/BatchRender.cc \
-					../../../source/2d/core/CoreMath.cc \
-					../../../source/2d/core/ImageFrameProvider.cc \
-					../../../source/2d/core/ImageFrameProviderCore.cc \
-					../../../source/2d/core/ParticleSystem.cc \
-					../../../source/2d/core/RenderProxy.cc \
-					../../../source/2d/core/SpriteBase.cc \
-					../../../source/2d/core/SpriteBatch.cc \
-					../../../source/2d/core/SpriteBatchItem.cc \
-					../../../source/2d/core/SpriteBatchQuery.cc \
-					../../../source/2d/core/Utility.cc \
-					../../../source/2d/core/Vector2.cc \
-					../../../source/2d/experimental/composites/WaveComposite.cc \
-					../../../source/2d/gui/guiImageButtonCtrl.cc \
-					../../../source/2d/gui/guiSceneObjectCtrl.cc \
-					../../../source/2d/gui/guiSpriteCtrl.cc \
-					../../../source/2d/gui/SceneWindow.cc \
-					../../../source/2d/sceneobject/CompositeSprite.cc \
-					../../../source/2d/sceneobject/ImageFont.cc \
-					../../../source/2d/sceneobject/ParticlePlayer.cc \
-					../../../source/2d/sceneobject/SceneObject.cc \
-					../../../source/2d/sceneobject/SceneObjectList.cc \
-					../../../source/2d/sceneobject/SceneObjectSet.cc \
-					../../../source/2d/sceneobject/Scroller.cc \
-					../../../source/2d/sceneobject/ShapeVector.cc \
-					../../../source/2d/sceneobject/SkeletonObject.cc \
-					../../../source/2d/sceneobject/Sprite.cc \
-					../../../source/2d/sceneobject/Trigger.cc \
-					../../../source/2d/scene/ContactFilter.cc \
-					../../../source/2d/scene/DebugDraw.cc \
-					../../../source/2d/scene/Scene.cc \
-					../../../source/2d/scene/SceneRenderFactories.cpp \
-					../../../source/2d/scene/SceneRenderQueue.cpp \
-					../../../source/2d/scene/WorldQuery.cc \
-					../../../source/algorithm/crc.cc \
-					../../../source/algorithm/hashFunction.cc \
-					../../../source/assets/assetBase.cc \
-					../../../source/assets/assetFieldTypes.cc \
-					../../../source/assets/assetManager.cc \
-					../../../source/assets/assetQuery.cc \
-					../../../source/assets/assetTagsManifest.cc \
-					../../../source/assets/declaredAssets.cc \
-					../../../source/assets/referencedAssets.cc \
-					../../../source/audio/AudioAsset.cc \
-					../../../source/Box2D/Collision/b2BroadPhase.cpp \
-					../../../source/Box2D/Collision/b2CollideCircle.cpp \
-					../../../source/Box2D/Collision/b2CollideEdge.cpp \
-					../../../source/Box2D/Collision/b2CollidePolygon.cpp \
-					../../../source/Box2D/Collision/b2Collision.cpp \
-					../../../source/Box2D/Collision/b2Distance.cpp \
-					../../../source/Box2D/Collision/b2DynamicTree.cpp \
-					../../../source/Box2D/Collision/b2TimeOfImpact.cpp \
-					../../../source/Box2D/Collision/Shapes/b2ChainShape.cpp \
-					../../../source/Box2D/Collision/Shapes/b2CircleShape.cpp \
-					../../../source/Box2D/Collision/Shapes/b2EdgeShape.cpp \
-					../../../source/Box2D/Collision/Shapes/b2PolygonShape.cpp \
-					../../../source/Box2D/Common/b2BlockAllocator.cpp \
-					../../../source/Box2D/Common/b2Draw.cpp \
-					../../../source/Box2D/Common/b2Math.cpp \
-					../../../source/Box2D/Common/b2Settings.cpp \
-					../../../source/Box2D/Common/b2StackAllocator.cpp \
-					../../../source/Box2D/Common/b2Timer.cpp \
-					../../../source/Box2D/Dynamics/b2Body.cpp \
-					../../../source/Box2D/Dynamics/b2ContactManager.cpp \
-					../../../source/Box2D/Dynamics/b2Fixture.cpp \
-					../../../source/Box2D/Dynamics/b2Island.cpp \
-					../../../source/Box2D/Dynamics/b2World.cpp \
-					../../../source/Box2D/Dynamics/b2WorldCallbacks.cpp \
-					../../../source/Box2D/Dynamics/Contacts/b2ChainAndCircleContact.cpp \
-					../../../source/Box2D/Dynamics/Contacts/b2ChainAndPolygonContact.cpp \
-					../../../source/Box2D/Dynamics/Contacts/b2CircleContact.cpp \
-					../../../source/Box2D/Dynamics/Contacts/b2Contact.cpp \
-					../../../source/Box2D/Dynamics/Contacts/b2ContactSolver.cpp \
-					../../../source/Box2D/Dynamics/Contacts/b2EdgeAndCircleContact.cpp \
-					../../../source/Box2D/Dynamics/Contacts/b2EdgeAndPolygonContact.cpp \
-					../../../source/Box2D/Dynamics/Contacts/b2PolygonAndCircleContact.cpp \
-					../../../source/Box2D/Dynamics/Contacts/b2PolygonContact.cpp \
-					../../../source/Box2D/Dynamics/Joints/b2DistanceJoint.cpp \
-					../../../source/Box2D/Dynamics/Joints/b2FrictionJoint.cpp \
-					../../../source/Box2D/Dynamics/Joints/b2GearJoint.cpp \
-					../../../source/Box2D/Dynamics/Joints/b2Joint.cpp \
-					../../../source/Box2D/Dynamics/Joints/b2MotorJoint.cpp \
-					../../../source/Box2D/Dynamics/Joints/b2MouseJoint.cpp \
-					../../../source/Box2D/Dynamics/Joints/b2PrismaticJoint.cpp \
-					../../../source/Box2D/Dynamics/Joints/b2PulleyJoint.cpp \
-					../../../source/Box2D/Dynamics/Joints/b2RevoluteJoint.cpp \
-					../../../source/Box2D/Dynamics/Joints/b2RopeJoint.cpp \
-					../../../source/Box2D/Dynamics/Joints/b2WeldJoint.cpp \
-					../../../source/Box2D/Dynamics/Joints/b2WheelJoint.cpp \
-					../../../source/Box2D/Rope/b2Rope.cpp \
-					../../../source/collection/bitTables.cc \
-					../../../source/collection/hashTable.cc \
-					../../../source/collection/nameTags.cpp \
-					../../../source/collection/undo.cc \
-					../../../source/collection/vector.cc \
-					../../../source/console/consoleBaseType.cc \
-					../../../source/console/consoleDictionary.cc \
-					../../../source/console/consoleExprEvalState.cc \
-					../../../source/console/consoleNamespace.cc \
-					../../../source/console/ConsoleTypeValidators.cc \
-					../../../source/console/metaScripting_ScriptBinding.cc \
-					../../../source/debug/profiler.cc \
-					../../../source/debug/remote/RemoteDebugger1.cc \
-					../../../source/debug/remote/RemoteDebuggerBase.cc \
-					../../../source/debug/remote/RemoteDebuggerBridge.cc \
-					../../../source/debug/telnetDebugger.cc \
-					../../../source/delegates/delegateSignal.cpp \
-					../../../source/game/defaultGame.cc \
-					../../../source/game/gameInterface.cc \
-					../../../source/graphics/bitmapBmp.cc \
-					../../../source/graphics/bitmapJpeg.cc \
-					../../../source/graphics/bitmapPng.cc \
-					../../../source/graphics/color.cc \
-					../../../source/graphics/dgl.cc \
-					../../../source/graphics/dglMatrix.cc \
-					../../../source/graphics/DynamicTexture.cc \
-					../../../source/graphics/gBitmap.cc \
-					../../../source/graphics/gFont.cc \
-					../../../source/graphics/gPalette.cc \
-					../../../source/graphics/PNGImage.cpp \
-					../../../source/graphics/splineUtil.cc \
-					../../../source/graphics/TextureDictionary.cc \
-					../../../source/graphics/TextureHandle.cc \
-					../../../source/graphics/TextureManager.cc \
-					../../../source/gui/containers/guiGridCtrl.cc \
-					../../../source/gui/guiArrayCtrl.cc \
-					../../../source/gui/guiBackgroundCtrl.cc \
-					../../../source/gui/guiBitmapBorderCtrl.cc \
-					../../../source/gui/guiBitmapCtrl.cc \
-					../../../source/gui/guiBubbleTextCtrl.cc \
-					../../../source/gui/guiCanvas.cc \
-					../../../source/gui/guiColorPicker.cc \
-					../../../source/gui/guiConsole.cc \
-					../../../source/gui/guiConsoleEditCtrl.cc \
-					../../../source/gui/guiConsoleTextCtrl.cc \
-					../../../source/gui/guiControl.cc \
-					../../../source/gui/guiDefaultControlRender.cc \
-					../../../source/gui/guiFadeinBitmapCtrl.cc \
-					../../../source/gui/guiInputCtrl.cc \
-					../../../source/gui/guiListBoxCtrl.cc \
-					../../../source/gui/guiMessageVectorCtrl.cc \
-					../../../source/gui/guiMLTextCtrl.cc \
-					../../../source/gui/guiMLTextEditCtrl.cc \
-					../../../source/gui/guiMouseEventCtrl.cc \
-					../../../source/gui/guiPopUpCtrl.cc \
-					../../../source/gui/guiPopUpCtrlEx.cc \
-					../../../source/gui/guiProgressCtrl.cc \
-					../../../source/gui/guiScriptNotifyControl.cc \
-					../../../source/gui/guiSliderCtrl.cc \
-					../../../source/gui/guiTabPageCtrl.cc \
-					../../../source/gui/guiTextCtrl.cc \
-					../../../source/gui/guiTextEditCtrl.cc \
-					../../../source/gui/guiTextEditSliderCtrl.cc \
-					../../../source/gui/guiTextListCtrl.cc \
-					../../../source/gui/guiTickCtrl.cc \
-					../../../source/gui/guiTreeViewCtrl.cc \
-					../../../source/gui/guiTypes.cc \
-					../../../source/gui/language/lang.cc \
-					../../../source/gui/messageVector.cc \
-					../../../source/input/actionMap.cc \
-					../../../source/io/bitStream.cc \
-					../../../source/io/bufferStream.cc \
-					../../../source/io/fileObject.cc \
-					../../../source/io/fileStream.cc \
-					../../../source/io/fileStreamObject.cc \
-					../../../source/io/fileSystem_ScriptBinding.cc \
-					../../../source/io/filterStream.cc \
-					../../../source/io/memStream.cc \
-					../../../source/io/nStream.cc \
-					../../../source/io/resizeStream.cc \
-					../../../source/io/resource/resourceDictionary.cc \
-					../../../source/io/resource/resourceManager.cc \
-					../../../source/io/streamObject.cc \
-					../../../source/io/zip/centralDir.cc \
-					../../../source/io/zip/compressor.cc \
-					../../../source/io/zip/deflate.cc \
-					../../../source/io/zip/extraField.cc \
-					../../../source/io/zip/fileHeader.cc \
-					../../../source/io/zip/stored.cc \
-					../../../source/io/zip/zipArchive.cc \
-					../../../source/io/zip/zipCryptStream.cc \
-					../../../source/io/zip/zipObject.cc \
-					../../../source/io/zip/zipSubStream.cc \
-					../../../source/io/zip/zipTempStream.cc \
-					../../../source/math/rectClipper.cpp \
-					../../../source/memory/dataChunker.cc \
-					../../../source/memory/frameAllocator_ScriptBinding.cc \
-					../../../source/messaging/dispatcher.cc \
-					../../../source/messaging/eventManager.cc \
-					../../../source/messaging/message.cc \
-					../../../source/messaging/messageForwarder.cc \
-					../../../source/messaging/scriptMsgListener.cc \
-					../../../source/module/moduleDefinition.cc \
-					../../../source/module/moduleManager.cc \
-					../../../source/module/moduleMergeDefinition.cc \
-					../../../source/network/connectionProtocol.cc \
-					../../../source/network/connectionStringTable.cc \
-					../../../source/network/httpObject.cc \
-					../../../source/network/netConnection.cc \
-					../../../source/network/netDownload.cc \
-					../../../source/network/netEvent.cc \
-					../../../source/network/netGhost.cc \
-					../../../source/network/netInterface.cc \
-					../../../source/network/netObject.cc \
-					../../../source/network/netStringTable.cc \
-					../../../source/network/netTest.cc \
-					../../../source/network/networkProcessList.cc \
-					../../../source/network/RemoteCommandEvent.cc \
-					../../../source/network/serverQuery.cc \
-					../../../source/network/tcpObject.cc \
-					../../../source/network/telnetConsole.cc \
-					../../../source/persistence/taml/binary/tamlBinaryReader.cc \
-					../../../source/persistence/taml/binary/tamlBinaryWriter.cc \
-					../../../source/persistence/taml/json/tamlJSONParser.cc \
-					../../../source/persistence/taml/json/tamlJSONReader.cc \
-					../../../source/persistence/taml/json/tamlJSONWriter.cc \
-					../../../source/persistence/taml/taml.cc \
-					../../../source/persistence/taml/tamlCustom.cc \
-					../../../source/persistence/taml/tamlWriteNode.cc \
-					../../../source/persistence/taml/xml/tamlXmlParser.cc \
-					../../../source/persistence/taml/xml/tamlXmlReader.cc \
-					../../../source/persistence/taml/xml/tamlXmlWriter.cc \
-					../../../source/persistence/tinyXML/tinystr.cpp \
-					../../../source/persistence/tinyXML/tinyxml.cpp \
-					../../../source/persistence/tinyXML/tinyxmlerror.cpp \
-					../../../source/persistence/tinyXML/tinyxmlparser.cpp \
-					../../../source/audio/audio.cc \
-					../../../source/audio/audioBuffer.cc \
-					../../../source/audio/audioDataBlock.cc \
-					../../../source/audio/audio_ScriptBinding.cc \
-					../../../source/audio/audioStreamSourceFactory.cc \
-					../../../source/audio/wavStreamSource.cc \
-					../../../source/component/dynamicConsoleMethodComponent.cpp \
-					../../../source/component/simComponent.cpp \
-					../../../source/component/behaviors/behaviorComponent.cpp \
-					../../../source/component/behaviors/behaviorInstance.cpp \
-					../../../source/component/behaviors/behaviorTemplate.cpp \
-					../../../source/console/astAlloc.cc \
-					../../../source/console/astNodes.cc \
-					../../../source/console/cmdgram.cc \
-					../../../source/console/CMDscan.cc \
-					../../../source/console/codeBlock.cc \
-					../../../source/console/compiledEval.cc \
-					../../../source/console/compiler.cc \
-					../../../source/console/console.cc \
-					../../../source/console/consoleDoc.cc \
-					../../../source/console/consoleFunctions.cc \
-					../../../source/console/consoleLogger.cc \
-					../../../source/console/consoleObject.cc \
-					../../../source/console/consoleParser.cc \
-					../../../source/console/consoleTypes.cc \
-					../../../source/game/gameConnection.cc \
-					../../../source/game/version.cc \
-					../../../source/math/math_ScriptBinding.cc \
-					../../../source/math/mathTypes.cc \
-					../../../source/math/mathUtils.cc \
-					../../../source/math/mBox.cc \
-					../../../source/math/mMath_C.cc \
-					../../../source/math/mMathAltivec.cc \
-					../../../source/math/mMathAMD.cc \
-					../../../source/math/mMathFn.cc \
-					../../../source/math/mMathSSE.cc \
-					../../../source/math/mMatrix.cc \
-					../../../source/math/mPlaneTransformer.cc \
-					../../../source/math/mQuadPatch.cc \
-					../../../source/math/mQuat.cc \
-					../../../source/math/mRandom.cc \
-					../../../source/math/mSolver.cc \
-					../../../source/math/mSplinePatch.cc \
-					../../../source/math/mPoint.cpp \
-					../../../source/persistence/SimXMLDocument.cpp \
-					../../../source/platform/CursorManager.cc \
-					../../../source/platform/nativeDialogs/fileDialog.cc \
-					../../../source/platform/platform.cc \
-					../../../source/platform/platformAssert.cc \
-					../../../source/platform/platformCPU.cc \
-					../../../source/platform/platformFileIO.cc \
-					../../../source/platform/platformFont.cc \
-					../../../source/platform/platformMemory.cc \
-					../../../source/platform/platformNetwork_ScriptBinding.cc \
-					../../../source/platform/platformString.cc \
-					../../../source/platform/platformVideo.cc \
-					../../../source/platform/platformNetAsync.unix.cc \
-					../../../source/platform/menus/popupMenu.cc \
-					../../../source/platform/nativeDialogs/msgBox.cpp \
-					../../../source/platform/Tickable.cc \
-					../../../source/platformAndroid/AndroidAlerts.cpp \
-					../../../source/platformAndroid/AndroidAudio.cpp \
-					../../../source/platformAndroid/AndroidConsole.cpp \
-					../../../source/platformAndroid/AndroidCPUInfo.cpp \
-					../../../source/platformAndroid/AndroidDialogs.cpp \
-					../../../source/platformAndroid/AndroidEvents.cpp \
-					../../../source/platformAndroid/AndroidFileio.cpp \
-					../../../source/platformAndroid/AndroidFont.cpp \
-					../../../source/platformAndroid/AndroidGL.cpp \
-					../../../source/platformAndroid/AndroidGL2ES.cpp \
-					../../../source/platformAndroid/AndroidInput.cpp \
-					../../../source/platformAndroid/AndroidMath.cpp \
-					../../../source/platformAndroid/AndroidMemory.cpp \
-					../../../source/platformAndroid/AndroidMutex.cpp \
-					../../../source/platformAndroid/AndroidNet.cpp \
-					../../../source/platformAndroid/AndroidOGLVideo.cpp \
-					../../../source/platformAndroid/AndroidOutlineGL.cpp \
-					../../../source/platformAndroid/AndroidPlatform.cpp \
-					../../../source/platformAndroid/AndroidProcessControl.cpp \
-					../../../source/platformAndroid/AndroidProfiler.cpp \
-					../../../source/platformAndroid/AndroidSemaphore.cpp \
-					../../../source/platformAndroid/AndroidStreamSource.cc \
-					../../../source/platformAndroid/AndroidStrings.cpp \
-					../../../source/platformAndroid/AndroidThread.cpp \
-					../../../source/platformAndroid/AndroidTime.cpp \
-					../../../source/platformAndroid/AndroidUtil.cpp \
-					../../../source/platformAndroid/AndroidWindow.cpp \
-					../../../source/platformAndroid/main.cpp \
-					../../../source/platformAndroid/T2DActivity.cpp \
-					../../../source/platformAndroid/menus/popupMenu.cpp \
-					../../../source/sim/scriptGroup.cc \
-					../../../source/sim/scriptObject.cc \
-					../../../source/sim/simBase.cc \
-					../../../source/sim/simConsoleEvent.cc \
-					../../../source/sim/simConsoleThreadExecEvent.cc \
-					../../../source/sim/simDatablock.cc \
-					../../../source/sim/simDictionary.cc \
-					../../../source/sim/simFieldDictionary.cc \
-					../../../source/sim/simManager.cc \
-					../../../source/sim/simObject.cc \
-					../../../source/sim/SimObjectList.cc \
-					../../../source/sim/simSerialize.cpp \
-					../../../source/sim/simSet.cc \
-					../../../source/spine/Animation.c \
-					../../../source/spine/AnimationState.c \
-					../../../source/spine/AnimationStateData.c \
-					../../../source/spine/Atlas.c \
-					../../../source/spine/AtlasAttachmentLoader.c \
-					../../../source/spine/Attachment.c \
-					../../../source/spine/AttachmentLoader.c \
-					../../../source/spine/Bone.c \
-					../../../source/spine/BoneData.c \
-					../../../source/spine/BoundingBoxAttachment.c \
-					../../../source/spine/Event.c \
-					../../../source/spine/EventData.c \
-					../../../source/spine/extension.c \
-					../../../source/spine/Json.c \
-					../../../source/spine/RegionAttachment.c \
-					../../../source/spine/Skeleton.c \
-					../../../source/spine/SkeletonBounds.c \
-					../../../source/spine/SkeletonData.c \
-					../../../source/spine/SkeletonJson.c \
-					../../../source/spine/Skin.c \
-					../../../source/spine/Slot.c \
-					../../../source/spine/SlotData.c \
-					../../../source/string/findMatch.cc \
-					../../../source/string/stringBuffer.cc \
-					../../../source/string/stringStack.cc \
-					../../../source/string/stringTable.cc \
-					../../../source/string/stringUnit.cpp \
-					../../../source/string/unicode.cc \
-					../../../source/gui/buttons/guiBitmapButtonCtrl.cc \
-					../../../source/gui/buttons/guiBorderButton.cc \
-					../../../source/gui/buttons/guiButtonBaseCtrl.cc \
-					../../../source/gui/buttons/guiButtonCtrl.cc \
-					../../../source/gui/buttons/guiCheckBoxCtrl.cc \
-					../../../source/gui/buttons/guiIconButtonCtrl.cc \
-					../../../source/gui/buttons/guiRadioCtrl.cc \
-					../../../source/gui/buttons/guiToolboxButtonCtrl.cc \
-					../../../source/gui/containers/guiAutoScrollCtrl.cc \
-					../../../source/gui/containers/guiCtrlArrayCtrl.cc \
-					../../../source/gui/containers/guiDragAndDropCtrl.cc \
-					../../../source/gui/containers/guiDynamicCtrlArrayCtrl.cc \
-					../../../source/gui/containers/guiFormCtrl.cc \
-					../../../source/gui/containers/guiFrameCtrl.cc \
-					../../../source/gui/containers/guiPaneCtrl.cc \
-					../../../source/gui/containers/guiRolloutCtrl.cc \
-					../../../source/gui/containers/guiScrollCtrl.cc \
-					../../../source/gui/containers/guiStackCtrl.cc \
-					../../../source/gui/containers/guiTabBookCtrl.cc \
-					../../../source/gui/containers/guiWindowCtrl.cc \
-					../../../source/gui/editor/guiControlListPopup.cc \
-					../../../source/gui/editor/guiDebugger.cc \
-					../../../source/gui/editor/guiEditCtrl.cc \
-					../../../source/gui/editor/guiFilterCtrl.cc \
-					../../../source/gui/editor/guiGraphCtrl.cc \
-					../../../source/gui/editor/guiImageList.cc \
-					../../../source/gui/editor/guiInspector.cc \
-					../../../source/gui/editor/guiInspectorTypes.cc \
-					../../../source/gui/editor/guiMenuBar.cc \
-					../../../source/gui/editor/guiSeparatorCtrl.cc 
-#					../../../source/testing/tests/platformFileIoTests.cc \
-#					../../../source/testing/tests/platformMemoryTests.cc \
-#					../../../source/testing/tests/platformStringTests.cc \
-#					../../../source/testing/unitTesting.cc
- 
-ifeq ($(APP_OPTIM),debug)
-	LOCAL_CFLAGS := -DENABLE_CONSOLE_MSGS -D__ANDROID__ -DTORQUE_DEBUG -DTORQUE_OS_ANDROID -DGL_GLEXT_PROTOTYPES -O0 -fsigned-char   
-else
-	LOCAL_CFLAGS := -DENABLE_CONSOLE_MSGS -D__ANDROID__ -DTORQUE_OS_ANDROID -DGL_GLEXT_PROTOTYPES -O3 -fsigned-char   
-endif				   
-LOCAL_LDLIBS    := -llog -landroid -lEGL -lGLESv1_CM -lz -lOpenSLES -L../../../lib/openal/Android/$(TARGET_ARCH_ABI)
-LOCAL_STATIC_LIBRARIES := android_native_app_glue freetype-prebuilt
-LOCAL_SHARED_LIBRARIES := libopenal-prebuilt
-
-LOCAL_ARM_MODE := arm
-
-include $(BUILD_SHARED_LIBRARY)
-
-$(call import-module,android/native_app_glue)
-

+ 0 - 4
engine/compilers/android/jni/Application.mk

@@ -1,4 +0,0 @@
-APP_PLATFORM := android-10
-APP_STL := stlport_static
-APP_OPTIM := release
-APP_ABI   := armeabi-v7a

+ 0 - 3
engine/compilers/android/lint.xml

@@ -1,3 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<lint>
-</lint>

+ 0 - 15
engine/compilers/android/project.properties

@@ -1,15 +0,0 @@
-# This file is automatically generated by Android Tools.
-# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
-#
-# This file must be checked in Version Control Systems.
-#
-# To customize properties used by the Ant build system edit
-# "ant.properties", and override values to adapt the script to your
-# project structure.
-#
-# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
-#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
-
-# Project target.
-target=android-18
-android.library=false

二進制
engine/compilers/android/res/drawable-hdpi/ic_launcher.png


二進制
engine/compilers/android/res/drawable-ldpi/ic_launcher.png


二進制
engine/compilers/android/res/drawable-mdpi/ic_launcher.png


二進制
engine/compilers/android/res/drawable-xhdpi/ic_launcher.png


+ 0 - 3
engine/compilers/android/res/menu/activity_main.xml

@@ -1,3 +0,0 @@
-<menu xmlns:android="http://schemas.android.com/apk/res/android" >
-
-</menu>

+ 0 - 11
engine/compilers/android/res/values-v11/styles.xml

@@ -1,11 +0,0 @@
-<resources>
-
-    <!--
-        Base application theme for API 11+. This theme completely replaces
-        AppBaseTheme from res/values/styles.xml on API 11+ devices.
-    -->
-    <style name="AppBaseTheme" parent="android:Theme.NoTitleBar.Fullscreen">
-        <!-- API 11 theme customizations can go here. -->
-    </style>
-
-</resources>

+ 0 - 12
engine/compilers/android/res/values-v14/styles.xml

@@ -1,12 +0,0 @@
-<resources>
-
-    <!--
-        Base application theme for API 14+. This theme completely replaces
-        AppBaseTheme from BOTH res/values/styles.xml and
-        res/values-v11/styles.xml on API 14+ devices.
-    -->
-    <style name="AppBaseTheme" parent="android:Theme.NoTitleBar.Fullscreen">
-        <!-- API 14 theme customizations can go here. -->
-    </style>
-
-</resources>

+ 0 - 5
engine/compilers/android/res/values/strings.xml

@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<resources>
-    <string name="app_name">Torque2D</string>
-
-</resources>

+ 0 - 20
engine/compilers/android/res/values/styles.xml

@@ -1,20 +0,0 @@
-<resources>
-
-    <!--
-        Base application theme, dependent on API level. This theme is replaced
-        by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
-    -->
-    <style name="AppBaseTheme" parent="android:Theme.NoTitleBar.Fullscreen">
-        <!--
-            Theme customizations available in newer API levels can go in
-            res/values-vXX/styles.xml, while customizations related to
-            backward-compatibility can go here.
-        -->
-    </style>
-
-    <!-- Application theme. -->
-    <style name="AppTheme" parent="AppBaseTheme">
-        <!-- All customizations that are NOT specific to a particular API-level can go here. -->
-    </style>
-
-</resources>

+ 0 - 339
engine/compilers/android/src/com/garagegames/torque2d/FileWalker.java

@@ -1,339 +0,0 @@
-package com.garagegames.torque2d;
-
-import java.io.IOException;
-import java.util.Hashtable;
-import java.util.Vector;
-
-import android.content.Context;
-import android.content.Intent;
-import android.content.res.AssetFileDescriptor;
-import android.content.res.AssetManager;
-import android.net.Uri;
-import android.util.Log;
-
-public class FileWalker
-{
-	public static Hashtable<String,Vector<String>> directories = new Hashtable<String,Vector<String>>();
-	public static Hashtable<String,Vector<String>> files = new Hashtable<String,Vector<String>>();
-	public static Vector<String> dumpPathVec = new Vector<String>();
-	public static Vector<String> dumpDirVec = new Vector<String>();
-	public static Vector<String> dumpDirList = new Vector<String>();
-	
-	public static void InitDirList(Context context, String dir)
-	{
-		AssetManager assetMgr = context.getAssets();
-		try {
-			String[] assets = assetMgr.list(dir);
-			if (directories.containsKey(dir))
-				directories.remove(dir);
-			directories.put(dir, new Vector<String>());
-			if (files.containsKey(dir))
-				files.remove(dir);
-			files.put(dir, new Vector<String>());
-			
-			for(String asset: assets) {
-				if (asset.indexOf('.') == -1)
-				{
-					directories.get(dir).add(asset);
-				}
-				else
-				{
-					files.get(dir).add(asset);
-				}
-			}
-		} catch (IOException e) {
-			e.printStackTrace();
-		}
-	}
-	
-	public static String[] DumpDirectories(Context context, String basePath, String path, boolean depth, boolean noBasePath)
-	{
-		double time = System.currentTimeMillis();
-	    dumpPathVec.clear();
-		dumpDirVec.clear();
-		
-		String dirPath = basePath;
-		
-		//remove any ./ from path since the apk code chokes on it
-		while (dirPath.contains("./"))
-			dirPath = dirPath.replace("./", "");
-		
-		//remove any ../ from path since the apk code chokes on it
-		String search = "/../";
-		while (dirPath.contains(search))
-		{
-			int pos = dirPath.indexOf(search);
-			int posStart = dirPath.lastIndexOf("/", pos-1);
-			dirPath = dirPath.substring(0, posStart+1) + dirPath.substring(pos+4);
-		}
-	    
-		if (dirPath.startsWith("/"))
-	    	dirPath = dirPath.substring(1);
-		
-		if (dirPath.endsWith("/"))
-	    	dirPath = dirPath.substring(0,dirPath.length()-1);
-	   
-	    if ( !noBasePath )
-	        dumpPathVec.add(dirPath);
-	   
-	    if (!path.equals(""))
-	    {
-		    dirPath = basePath + "/" + path; 
-		    
-		    if (dirPath.endsWith("/"))
-		    	dirPath = dirPath.substring(0,dirPath.length()-1);
-		   
-	    }
-		DumpDir2(context, dirPath);
-		
-		while (depth && dumpDirVec.size() > 0)
-		{
-			String newdir = dumpDirVec.remove(0);
-			DumpDir2(context,newdir);
-		}
-		
-		int size = dumpPathVec.size();
-		if (size > 500)
-			size = 500;
-		String[] retStringArray = new String[size];
-		int cnt = 0;
-		for(cnt = 0; cnt < size; cnt++)
-		{
-			String s = dumpPathVec.remove(0);
-			if (noBasePath)
-				s = s.replace(basePath + "/", "");
-			retStringArray[cnt] = "/" + s;
-		}
-		Log.i("torque2d", "time in dir java: " + (System.currentTimeMillis() - time) );
-		
-		return retStringArray;
-	}
-	
-	public static void DumpDir2(Context context, String dir)
-	{
-		for (String d : dumpDirList)
-		{
-			String d2 = d.substring(1);
-			if (d2.equals(dir))
-				continue;
-			
-			if (d2.length() < dir.length())
-				continue;
-			
-			String newdir = "";
-			if (dir.equals(""))
-			{
-				if (!d2.contains("/"))
-				{
-					dumpPathVec.add(d2);
-					newdir = d2;
-				}
-			}
-			else
-			{
-				if (d2.startsWith(dir))
-				{
-					String asset = d2.replace(dir, "").substring(1);
-					if (!asset.contains("/"))
-					{
-						dumpPathVec.add(d2);
-						newdir = d2;
-					}
-				}
-			}
-			
-			
-			if (!newdir.equals("")) {
-				dumpDirVec.add(newdir);
-			}
-		}
-	}
-	
-	public static String[] DumpPath(Context context, String dirPath, boolean depth)
-	{
-		double time = System.currentTimeMillis();
-		dumpPathVec.clear();
-		dumpDirVec.clear();
-		dumpDirList.clear();
-		
-		String dir = dirPath;
-		
-		//remove any ./ from path since the apk code chokes on it
-		while (dir.contains("./"))
-			dir = dir.replace("./", "");
-		
-		//remove any ../ from path since the apk code chokes on it
-		String search = "/../";
-		while (dir.contains(search))
-		{
-			int pos = dir.indexOf(search);
-			int posStart = dir.lastIndexOf("/", pos-1);
-			dir = dir.substring(0, posStart+1) + dir.substring(pos+4);
-		}
-		
-		if (dir.startsWith("/"))
-	    	dir = dir.substring(1);
-		
-		if (dir.endsWith("/"))
-	    	dir = dir.substring(0,dir.length()-1);
-	   
-		//Log.i("torque2d","path start: " + dir);
-		DumpDir(context, dir);
-		
-		while (depth && dumpDirVec.size() > 0)
-		{
-			String newdir = dumpDirVec.remove(0);
-			//Log.i("torque2d","newpath " + newdir);
-			DumpDir(context,newdir);
-		}
-		
-		int size = dumpPathVec.size();
-		if (size > 500)
-			size = 500;
-		//Log.i("torque2d","size " + size);
-		String[] retStringArray = new String[size];
-		int cnt = 0;
-		for(cnt = 0; cnt < size; cnt++)
-		{
-			String s = dumpPathVec.remove(0);
-			//Log.i("torque2d","file " + s);
-			retStringArray[cnt] = "/" + s;
-		}
-		Log.i("torque2d", "time in java: " + (System.currentTimeMillis() - time) );
-		return retStringArray;
-	}
-	
-	public static String[] getRestOfDump()
-	{
-		int size = dumpPathVec.size();
-		if (size > 500)
-			size = 500;
-		String[] retStringArray = new String[size];
-		int cnt = 0;
-		for(cnt = 0; cnt < size; cnt++)
-		{
-			String s = dumpPathVec.remove(0);
-			retStringArray[cnt] = "/" + s;
-		}
-		return retStringArray;
-	}
-	
-	public static void DumpDir(Context context, String dir)
-	{
-		AssetManager assetMgr = context.getAssets();
-		try {
-			String[] assets = assetMgr.list(dir);
-			for (String asset : assets)
-			{
-				if (asset.equals(".") || asset.equals(".."))
-					continue;
-				
-				if (dir.equals(""))
-				{
-					if (asset.equals("images") || asset.equals("webkit") || asset.equals("sounds") || asset.equals("kioskmode"))
-						continue;
-				}
-				
-				if (asset.contains("."))
-				{
-					if (dir.equals(""))
-						dumpPathVec.add(asset);
-					else
-						dumpPathVec.add(dir + "/" + asset);
-				}
-				else
-				{
-					String newdir = asset;
-					if (!dir.equals(""))
-						newdir = dir + "/" + asset;
-					
-					dumpDirVec.add(newdir);
-					if (newdir.startsWith("/"))
-						dumpDirList.add(newdir);
-					else
-						dumpDirList.add("/" + newdir);
-						
-				}
-			}
-				
-		} catch (IOException e) {
-			
-		}
-	}
-	
-	public static String GetNextDir(String dir)
-	{
-		if (directories.get(dir).size() == 0)
-			return null;
-		 
-		return directories.get(dir).remove(0);
-		
-	}
-	
-	public static String GetNextFile(String dir)
-	{
-		if (files.get(dir).size() == 0)
-			return null;
-		 
-		return files.get(dir).remove(0);
-	}
-	
-	public static boolean IsDir(Context context, String dir)
-	{
-		AssetManager assetMgr = context.getAssets();
-		String[] assets;
-		try {
-			assets = assetMgr.list(dir);
-			if (assets != null && assets.length > 0) 
-			{
-				return true;
-			}
-			
-			return false;
-		} catch (IOException e) {
-			e.printStackTrace();
-			return false;
-		}
-	}
-	
-	public static boolean IsFile(Context context, String dir)
-	{
-		AssetManager assetMgr = context.getAssets();
-		String[] assets;
-		try {
-			assets = assetMgr.list(dir);
-			if (assets != null && assets.length > 0) 
-			{
-				return false;
-			}
-			
-			return true;
-		} catch (IOException e) {
-			e.printStackTrace();
-			return false;
-		}
-	}
-	
-	public static int GetFileSize(Context context, String file)
-	{
-		int ret = 0;
-		try {
-			if (file.startsWith("/"))
-				file = file.substring(1);
-			
-			AssetFileDescriptor afd = context.getAssets().openFd(file);
-			ret = (int)afd.getLength();
-			
-			afd.close();
-		} catch (IOException e) {
-			e.printStackTrace();
-		}
-		return ret;
-	}
-	
-	public static void OpenURL(Context context, String url)
-	{
-		Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
-		context.startActivity(browserIntent);
-	}
-}

+ 0 - 287
engine/compilers/android/src/com/garagegames/torque2d/FontManager.java

@@ -1,287 +0,0 @@
-package com.garagegames.torque2d;
-/*
- * Copyright (C) 2011 George Yunaev @ Ulduzsoft
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- */
- 
-import java.io.File;
-import java.io.FileNotFoundException;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.RandomAccessFile;
-import java.util.HashMap;
-
-import android.content.Context;
-import android.content.res.AssetManager;
-import android.util.Log;
- 
-public class FontManager
-{
-	static private HashMap< String, String > fonts = null;
-    // This function enumerates all fonts on Android system and returns the HashMap with the font
-    // absolute file name as key, and the font literal name (embedded into the font) as value.
-    static public void enumerateFonts(Context context)
-    {
-        String[] fontdirs = { "/system/fonts", "/system/font", "/data/fonts" };
-        fonts = new HashMap< String, String >();
-        TTFAnalyzer analyzer = new TTFAnalyzer();
- 
-        for ( String fontdir : fontdirs )
-        {
-            File dir = new File( fontdir );
- 
-            if ( !dir.exists() )
-                continue;
- 
-            File[] files = dir.listFiles();
- 
-            if ( files == null )
-                continue;
- 
-            for ( File file : files )
-            {
-                String fontname = analyzer.getTtfFontName( file.getAbsolutePath() );
- 
-                if ( fontname != null )
-                    fonts.put( file.getAbsolutePath(), fontname );
-            }
-            
-        }
-        
-        AssetManager assetMgr = context.getAssets();
-        String[] customFonts;
-        try {
-			customFonts = assetMgr.list("fonts");
-			for (String customFont : customFonts)
-	        {
-				if (customFont.endsWith(".ttf"))
-				{
-					String customFontPath = copyCustomFontToCache(customFont, assetMgr, context);
-					String fontname = analyzer.getTtfFontName( customFontPath );
-					 
-	                if ( fontname != null )
-	                    fonts.put( customFontPath, fontname );
-				}
-	        }
-			
-			
-		} catch (IOException e) {
-			
-		}
-        
-    }
-    
-    static public String copyCustomFontToCache(String customFont, AssetManager assetMgr, Context context)
-    {
-    	InputStream fis = null;
-    	File tmpFile = null;
-    	String outFilePath = "";
-    	try {
-    	    fis = assetMgr.open("fonts/" + customFont);
-    	    // We'll create a file in the application's cache directory
-    	    File dir = context.getCacheDir();
-    	    dir.mkdirs();
-    	    tmpFile = new File(dir, customFont);
-    	    if (tmpFile.exists()) {
-    	        // Delete the temporary file if it already exists
-    	        tmpFile.delete();
-    	    }
-    	    FileOutputStream fos = null;
-    	    try {
-    	        // Write the asset file to the temporary location
-    	        fos = new FileOutputStream(tmpFile);
-    	        byte[] buffer = new byte[1024];
-    	        int bufferLen;
-    	        while ((bufferLen = fis.read(buffer)) != -1) {
-    	            fos.write(buffer, 0, bufferLen);
-    	        }
-    	    } finally {
-    	        if (fos != null) {
-    	            try {
-    	                fos.close();
-    	            } catch (IOException e) {}
-    	        }
-    	    }
-    	    
-    	    outFilePath = dir + "/" + customFont;
-    	    
-    	} catch (IOException e) {
-    	    Log.e("torque2d", "Failed reading asset", e);
-    	} finally {
-    	    if (fis != null) {
-    	        try {
-    	            fis.close();
-    	        } catch (IOException e) {}
-    	    }
-    	    
-    	}
-    	
-    	return outFilePath;
-    }
-    
-    static public void dumpFontList()
-    {
-    	//print list
-        for (String key : fonts.keySet())
-        {
-        	Log.i("torque2d", "font: " + fonts.get(key));
-        }
-    }
-    
-    static public String getFont(String fontName)
-    {
-    	for (String key : fonts.keySet())
-    	{
-    		String data = fonts.get(key);
-    		if (!fontName.contains("Italic") && !fontName.contains("Bold"))
-    		{
-    			if (data.contains(fontName) && !data.contains("Italic") && !data.contains("Bold"))
-    				return key;
-    		} else {
-    			if (data.contains(fontName))
-    				return key;
-    		}
-    	}
-    	
-    	return null;
-    }
-}
- 
-// The class which loads the TTF file, parses it and returns the TTF font name
-class TTFAnalyzer
-{
-    // This function parses the TTF file and returns the font name specified in the file
-    public String getTtfFontName( String fontFilename )
-    {
-        try
-        {
-            // Parses the TTF file format.
-            // See http://developer.apple.com/fonts/ttrefman/rm06/Chap6.html
-            m_file = new RandomAccessFile( fontFilename, "r" );
- 
-            // Read the version first
-            int version = readDword();
- 
-            // The version must be either 'true' (0x74727565) or 0x00010000
-            if ( version != 0x74727565 && version != 0x00010000 )
-                return null;
- 
-            // The TTF file consist of several sections called "tables", and we need to know how many of them are there.
-            int numTables = readWord();
- 
-            // Skip the rest in the header
-            readWord(); // skip searchRange
-            readWord(); // skip entrySelector
-            readWord(); // skip rangeShift
- 
-            // Now we can read the tables
-            for ( int i = 0; i < numTables; i++ )
-            {
-                // Read the table entry
-                int tag = readDword();
-                readDword(); // skip checksum
-                int offset = readDword();
-                int length = readDword();
- 
-                // Now here' the trick. 'name' field actually contains the textual string name.
-                // So the 'name' string in characters equals to 0x6E616D65
-                if ( tag == 0x6E616D65 )
-                {
-                    // Here's the name section. Read it completely into the allocated buffer
-                    byte[] table = new byte[ length ];
- 
-                    m_file.seek( offset );
-                    read( table );
- 
-                    // This is also a table. See http://developer.apple.com/fonts/ttrefman/rm06/Chap6name.html
-                    // According to Table 36, the total number of table records is stored in the second word, at the offset 2.
-                    // Getting the count and string offset - remembering it's big endian.
-                    int count = getWord( table, 2 );
-                    int string_offset = getWord( table, 4 );
- 
-                    // Record starts from offset 6
-                    for ( int record = 0; record < count; record++ )
-                    {
-                        // Table 37 tells us that each record is 6 words -> 12 bytes, and that the nameID is 4th word so its offset is 6.
-                        // We also need to account for the first 6 bytes of the header above (Table 36), so...
-                        int nameid_offset = record * 12 + 6;
-                        int platformID = getWord( table, nameid_offset );
-                        int nameid_value = getWord( table, nameid_offset + 6 );
- 
-                        // Table 42 lists the valid name Identifiers. We're interested in 4 but not in Unicode encoding (for simplicity).
-                        // The encoding is stored as PlatformID and we're interested in Mac encoding
-                        if ( nameid_value == 4 && platformID == 1 )
-                        {
-                            // We need the string offset and length, which are the word 6 and 5 respectively
-                            int name_length = getWord( table, nameid_offset + 8 );
-                            int name_offset = getWord( table, nameid_offset + 10 );
- 
-                            // The real name string offset is calculated by adding the string_offset
-                            name_offset = name_offset + string_offset;
- 
-                            // Make sure it is inside the array
-                            if ( name_offset >= 0 && name_offset + name_length < table.length )
-                                return new String( table, name_offset, name_length );
-                        }
-                    }
-                }
-            }
- 
-            return null;
-        }
-        catch (FileNotFoundException e)
-        {
-            // Permissions?
-            return null;
-        }
-        catch (IOException e)
-        {
-            // Most likely a corrupted font file
-            return null;
-        }
-    }
- 
-    // Font file; must be seekable
-    private RandomAccessFile m_file = null;
- 
-    // Helper I/O functions
-    private int readByte() throws IOException
-    {
-        return m_file.read() & 0xFF;
-    }
- 
-    private int readWord() throws IOException
-    {
-        int b1 = readByte();
-        int b2 = readByte();
- 
-        return b1 << 8 | b2;
-    }
- 
-    private int readDword() throws IOException
-    {
-        int b1 = readByte();
-        int b2 = readByte();
-        int b3 = readByte();
-        int b4 = readByte();
- 
-        return b1 << 24 | b2 << 16 | b3 << 8 | b4;
-    }
- 
-    private void read( byte [] array ) throws IOException
-    {
-        if ( m_file.read( array ) != array.length )
-            throw new IOException();
-    }
- 
-    // Helper
-    private int getWord( byte [] array, int offset )
-    {
-        int b1 = array[ offset ] & 0xFF;
-        int b2 = array[ offset + 1 ] & 0xFF;
- 
-        return b1 << 8 | b2;
-    }
-}

+ 0 - 9
engine/compilers/android/src/com/garagegames/torque2d/MyNativeActivity.java

@@ -1,9 +0,0 @@
-package com.garagegames.torque2d;
-
-import android.app.NativeActivity;
-
-public class MyNativeActivity extends NativeActivity {
-  static {
-    System.loadLibrary("openal"); 
-  }
-}

+ 0 - 69
engine/compilers/android/src/com/garagegames/torque2d/SplashScreen.java

@@ -1,69 +0,0 @@
-package com.garagegames.torque2d;
-
-import java.io.IOException;
-import java.io.InputStream;
-
-import android.app.Activity;
-import android.app.Dialog;
-import android.content.Context;
-import android.content.res.AssetManager;
-import android.graphics.Bitmap;
-import android.graphics.BitmapFactory;
-import android.graphics.Color;
-import android.view.Window;
-import android.view.WindowManager;
-import android.widget.ImageView;
-import android.widget.ImageView.ScaleType;
-
-public class SplashScreen extends Dialog {
-	
-	public SplashScreen(Context context, int theme) {
-		super(context, theme);
-	}
-
-	private static SplashScreen _instance = null;
-	
-	public static void ToggleSplashScreen(final Context context, final boolean show, final int screenWidth, final int screenHeight) 
-	{
-		if (show)
-		{
-			final Activity activity = (Activity)context;
-			activity.runOnUiThread(new Runnable() {			
-				@Override
-					public void run() {
-						
-						_instance = new SplashScreen(context, android.R.style.Theme_Black_NoTitleBar_Fullscreen);
-						
-						try {
-							AssetManager assetMgr = context.getAssets();
-							InputStream stream = assetMgr.open("splash.png");
-							Bitmap splashBitmap = Bitmap.createScaledBitmap(BitmapFactory.decodeStream(stream), screenWidth, screenHeight, true);
-							
-							ImageView view = new ImageView(context);
-							view.setPadding(0, 0, 0, 0);
-							view.setImageBitmap(splashBitmap);
-							view.setScaleType(ScaleType.FIT_CENTER);
-							view.setBackgroundColor(Color.BLACK);
-							_instance.getWindow().setFlags(WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM,
-							         WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM);
-							_instance.requestWindowFeature(Window.FEATURE_NO_TITLE); 
-							_instance.setCancelable(false);
-							_instance.setContentView(view);
-							_instance.show();
-							
-						} catch (IOException e) {
-							
-						}
-					}
-			});
-		} 
-		else
-		{
-			if (_instance != null)
-			{
-				_instance.dismiss();
-				_instance = null;
-			}
-		}
-	}
-}

+ 0 - 75
engine/compilers/android/src/com/garagegames/torque2d/StreamingAudioPlayer.java

@@ -1,75 +0,0 @@
-package com.garagegames.torque2d;
-
-import java.io.IOException;
-
-import android.content.Context;
-import android.content.res.AssetFileDescriptor;
-import android.media.MediaPlayer;
-import android.util.Log;
-
-public class StreamingAudioPlayer {
-	
-	private static MediaPlayer mediaPlayer = null;
-
-	public static void LoadMusicTrack(Context context, String filename)
-	{
-		mediaPlayer = new MediaPlayer();
-		AssetFileDescriptor fd;
-		try {
-			fd = context.getAssets().openFd(filename);
-			if (fd == null)
-				Log.i("torque2d", "failed to load music file " + filename);
-			
-			mediaPlayer.setDataSource(fd.getFileDescriptor(),fd.getStartOffset(),fd.getLength());
-			mediaPlayer.prepare();
-		} catch (IOException e) {
-			// TODO Auto-generated catch block
-			e.printStackTrace();
-		}
-	
-	}
-	
-	public static void UnLoadMusicTrack()
-	{
-		if (mediaPlayer == null)
-			return;
-		
-		mediaPlayer.stop();
-		mediaPlayer.release();
-		mediaPlayer = null;
-		
-	}
-	
-	public static boolean isMusicTrackPlaying()
-	{
-		if (mediaPlayer == null)
-			return false;
-		
-		return mediaPlayer.isPlaying();
-	}
-	
-	public static void startMusicTrack()
-	{
-		if (mediaPlayer == null)
-			return;
-		
-		mediaPlayer.start();
-	}
-	
-	public static void stopMusicTrack()
-	{
-		if (mediaPlayer == null)
-			return;
-		
-		mediaPlayer.stop();
-	}
-	
-	public static void setMusicTrackVolume(float volume)
-	{
-		if (mediaPlayer == null)
-			return;
-		
-		mediaPlayer.setVolume(volume, volume);
-	}
-	
-}

+ 0 - 139
engine/compilers/android/src/com/garagegames/torque2d/T2DUtilities.java

@@ -1,139 +0,0 @@
-package com.garagegames.torque2d;
-
-import android.app.Activity;
-import android.app.AlertDialog;
-import android.content.Context;
-import android.content.DialogInterface;
-import android.content.Intent;
-import android.net.Uri;
-
-public class T2DUtilities {
-		
-	public static void OpenURL(Context context, String url)
-	{
-		Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
-		context.startActivity(browserIntent);
-	}
-	
-	public static void DisplayAlertOK(final Context context, final String title, final String message)
-	{
-		final Activity activity = (Activity)context;
-		activity.runOnUiThread(new Runnable() {			
-			@Override
-				public void run() {
-					AlertDialog.Builder builder = new AlertDialog.Builder(context);
-					builder.setMessage(message);
-					builder.setTitle(title);
-					builder.setCancelable(false);
-					builder.setNeutralButton("OK", new DialogInterface.OnClickListener() {
-					           public void onClick(DialogInterface dialog, int id) {
-					        	   alert = null; 
-					           }
-					       });
-					AlertDialog alert = builder.create();
-					alert.show();
-				}
-		});
-	}
-	
-	private static int retValue = -1;
-	private static AlertDialog alert = null;
-	
-	public static void DisplayAlertOKCancel(final Context context, final String title, final String message)
-	{
-		retValue = -1;
-		final Activity activity = (Activity)context;
-		activity.runOnUiThread(new Runnable() {			
-			@Override
-				public void run() {
-					AlertDialog.Builder builder = new AlertDialog.Builder(context);
-					builder.setMessage(message);
-					builder.setTitle(title);
-					builder.setPositiveButton("OK", new DialogInterface.OnClickListener() {
-				           public void onClick(DialogInterface dialog, int id) {
-				                retValue = 1;
-				                alert = null;
-				           }
-				       });
-					builder.setNegativeButton("Cancel", new DialogInterface.OnClickListener() {
-				           public void onClick(DialogInterface dialog, int id) {
-				                retValue = 0;
-				                alert = null;
-				           }
-				       });
-					alert = builder.create();
-					alert.show();
-				}
-		});
-	}
-	
-	public static int CheckAlert()
-	{
-		if (alert == null && retValue == -1)
-			return -1;
-		
-		if (retValue == -1)
-			return -1;
-		
-		if (alert != null && alert.isShowing())
-			return -1;
-		
-		return retValue;
-	}
-	
-	public static void DisplayAlertRetry(final Context context, final String title, final String message)
-	{
-		retValue = -1;
-		final Activity activity = (Activity)context;
-		activity.runOnUiThread(new Runnable() {			
-			@Override
-				public void run() {
-					AlertDialog.Builder builder = new AlertDialog.Builder(context);
-					builder.setMessage(message);
-					builder.setTitle(title);
-					builder.setPositiveButton("Retry", new DialogInterface.OnClickListener() {
-				           public void onClick(DialogInterface dialog, int id) {
-				                retValue = 1;
-				                alert = null;
-				           }
-				       });
-					builder.setNegativeButton("Cancel", new DialogInterface.OnClickListener() {
-				           public void onClick(DialogInterface dialog, int id) {
-				                retValue = 0;
-				                alert = null;
-				           }
-				       });
-					AlertDialog alert = builder.create();
-					alert.show();
-				}
-		});
-	}
-	
-	public static void DisplayAlertYesNo(final Context context, final String title, final String message)
-	{
-		retValue = -1;
-		final Activity activity = (Activity)context;
-		activity.runOnUiThread(new Runnable() {			
-			@Override
-				public void run() {
-					AlertDialog.Builder builder = new AlertDialog.Builder(context);
-					builder.setMessage(message);
-					builder.setTitle(title);
-					builder.setPositiveButton("Yes", new DialogInterface.OnClickListener() {
-				           public void onClick(DialogInterface dialog, int id) {
-				                retValue = 1;
-				                alert = null;
-				           }
-				       });
-					builder.setNegativeButton("No", new DialogInterface.OnClickListener() {
-				           public void onClick(DialogInterface dialog, int id) {
-				                retValue = 0;
-				                alert = null;
-				           }
-				       });
-					AlertDialog alert = builder.create();
-					alert.show();
-				}
-		});
-	}
-}