Skip to content

Commit

Permalink
Initial work to make MAME work on Android [Miodrag Milanovic]
Browse files Browse the repository at this point in the history
  • Loading branch information
mmicko committed Mar 27, 2016
1 parent 5640305 commit 158c90c
Show file tree
Hide file tree
Showing 37 changed files with 2,197 additions and 58 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
/*
/*/
!/3rdparty/
!/android-project/
!/benchmarks/
!/artwork/
!/bgfx/
Expand Down
7 changes: 7 additions & 0 deletions android-project/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.idea
.gradle
local.properties
*.iml
*.so
*.apk
build
29 changes: 29 additions & 0 deletions android-project/app/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 18
buildToolsVersion "22.0.1"

defaultConfig {
applicationId "org.mamedev.mame"
minSdkVersion 18
targetSdkVersion 18

ndk {
moduleName 'main'
}

}

sourceSets.main {
jni.srcDirs = []
jniLibs.srcDir 'src/main/libs'
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
53 changes: 53 additions & 0 deletions android-project/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Replace org.libsdl.app with the identifier of your game below, e.g.
com.gamemaker.game
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.mamedev.mame"
android:versionCode="1"
android:versionName="0.137"
android:installLocation="auto">

<!-- Android 4.0 -->
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="14" />

<!-- OpenGL ES 2.0 -->
<uses-feature android:glEsVersion="0x00020000" />

<!-- Allow writing to external storage -->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

<!-- Create a Java class extending SDLActivity and place it in a
directory under src matching the package, e.g.
src/com/gamemaker/game/MyGame.java
then replace "SDLActivity" with the name of your class (e.g. "MyGame")
in the XML below.
An example Java class can be found in README-android.txt
-->
<application android:label="@string/app_name"
android:icon="@drawable/ic_launcher"
android:allowBackup="true"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
android:hardwareAccelerated="true" >
<activity android:name="MAME"
android:label="@string/app_name"
android:configChanges="keyboardHidden|orientation"
>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<!-- Drop file event -->
<!--
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="*/*" />
</intent-filter>
-->
</activity>
</application>

</manifest>
Loading

0 comments on commit 158c90c

Please sign in to comment.