(Android) Split up project into native / phoenix - phoenix now doesn't

show main screen/rom browser (sigh)
This commit is contained in:
twinaphex 2012-10-14 05:18:53 +02:00
parent 96f5c78304
commit 6e730dab47
62 changed files with 143 additions and 77 deletions

View File

View File

@ -1,53 +0,0 @@
RARCH_VERSION = "0.9.7"
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
APP_OPTIM := debug
LOCAL_MODULE := retroarch
LOCAL_SRC_FILES = ../../retroarch.c \
../../file.c \
../../file_path.c \
../../hash.c \
../../driver.c \
../../settings.c \
../../dynamic.c \
../../message.c \
../../rewind.c \
../../gfx/gfx_common.c \
../../input/input_common.c \
../../patch.c \
../../fifo_buffer.c \
../../compat/compat.c \
../../audio/null.c \
../../audio/utils.c \
../../audio/hermite.c \
../../gfx/null.c \
../../gfx/gl.c \
../../gfx/scaler/scaler.c \
../../gfx/scaler/pixconv.c \
../../gfx/scaler/scaler_int.c \
../../gfx/scaler/filter.c \
../../gfx/gfx_context.c \
../../gfx/context/androidegl_ctx.c \
../../gfx/math/matrix.c \
../../gfx/shader_glsl.c \
../../gfx/fonts/null_fonts.c \
../../gfx/state_tracker.c \
../../input/null.c \
../../screenshot.c \
../../conf/config_file.c \
../../autosave.c \
../../thread.c \
../../console/rzlib/rzlib.c \
main.c
LOCAL_CFLAGS = -marm -DANDROID -DHAVE_DYNAMIC -DHAVE_OPENGL -DHAVE_OPENGLES -DHAVE_OPENGLES2 -DHAVE_GLSL -DHAVE_ZLIB -DHAVE_RARCH_MAIN_WRAP -DINLINE=inline -DLSB_FIRST -D__LIBRETRO__ -DHAVE_CONFIGFILE=1 -DPACKAGE_VERSION=\"$(RARCH_VERSION)\" -std=gnu99
LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib -landroid -lEGL -lGLESv2 -llog -ldl -lz
LOCAL_STATIC_LIBRARIES := android_native_app_glue
include $(BUILD_SHARED_LIBRARY)
$(call import-module,android/native_app_glue)

33
android/native/.project Normal file
View File

@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>android.app.NativeActivity</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<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>
</buildSpec>
<natures>
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>

View File

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- BEGIN_INCLUDE(manifest) -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.retroarch.retroarch"
android:versionCode="1"
android:versionName="1.0">
<!-- This is the platform API where NativeActivity was introduced. -->
<uses-sdk android:minSdkVersion="9" />
<!-- This .apk has no Java code itself, so set hasCode to false. -->
<application android:label="@string/app_name" android:hasCode="false">
<!-- Our activity is the built-in NativeActivity framework class.
This will take care of integrating with our NDK code. -->
<activity android:name="android.app.NativeActivity"
android:label="@string/app_name"
android:configChanges="orientation|keyboardHidden">
<!-- Tell NativeActivity the name of or .so -->
<meta-data android:name="android.app.lib_name"
android:value="retroarch" />
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
<!-- END_INCLUDE(manifest) -->

View File

@ -0,0 +1,54 @@
RARCH_VERSION = "0.9.7"
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
APP_OPTIM := debug
LOCAL_MODULE := retroarch
RARCH_PATH := ../../..
LOCAL_SRC_FILES = $(RARCH_PATH)/retroarch.c \
$(RARCH_PATH)/file.c \
$(RARCH_PATH)/file_path.c \
$(RARCH_PATH)/hash.c \
$(RARCH_PATH)/driver.c \
$(RARCH_PATH)/settings.c \
$(RARCH_PATH)/dynamic.c \
$(RARCH_PATH)/message.c \
$(RARCH_PATH)/rewind.c \
$(RARCH_PATH)/gfx/gfx_common.c \
$(RARCH_PATH)/input/input_common.c \
$(RARCH_PATH)/patch.c \
$(RARCH_PATH)/fifo_buffer.c \
$(RARCH_PATH)/compat/compat.c \
$(RARCH_PATH)/audio/null.c \
$(RARCH_PATH)/audio/utils.c \
$(RARCH_PATH)/audio/hermite.c \
$(RARCH_PATH)/gfx/null.c \
$(RARCH_PATH)/gfx/gl.c \
$(RARCH_PATH)/gfx/scaler/scaler.c \
$(RARCH_PATH)/gfx/scaler/pixconv.c \
$(RARCH_PATH)/gfx/scaler/scaler_int.c \
$(RARCH_PATH)/gfx/scaler/filter.c \
$(RARCH_PATH)/gfx/gfx_context.c \
$(RARCH_PATH)/gfx/context/androidegl_ctx.c \
$(RARCH_PATH)/gfx/math/matrix.c \
$(RARCH_PATH)/gfx/shader_glsl.c \
$(RARCH_PATH)/gfx/fonts/null_fonts.c \
$(RARCH_PATH)/gfx/state_tracker.c \
$(RARCH_PATH)/input/null.c \
$(RARCH_PATH)/screenshot.c \
$(RARCH_PATH)/conf/config_file.c \
$(RARCH_PATH)/autosave.c \
$(RARCH_PATH)/thread.c \
main.c
LOCAL_CFLAGS = -marm -DANDROID -DHAVE_DYNAMIC -DHAVE_OPENGL -DHAVE_OPENGLES -DHAVE_OPENGLES2 -DHAVE_GLSL -DHAVE_ZLIB -DHAVE_RARCH_MAIN_WRAP -DINLINE=inline -DLSB_FIRST -D__LIBRETRO__ -DHAVE_CONFIGFILE=1 -DPACKAGE_VERSION=\"$(RARCH_VERSION)\" -std=gnu99
LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib -landroid -lEGL -lGLESv2 -llog -ldl -lz
LOCAL_STATIC_LIBRARIES := android_native_app_glue
include $(BUILD_SHARED_LIBRARY)
$(call import-module,android/native_app_glue)

View File

@ -0,0 +1 @@
APP_PLATFORM := android-9

View File

@ -25,7 +25,7 @@
#include <android/log.h>
#include <android_native_app_glue.h>
#include "../../general.h"
#include "../../../general.h"
JNIEXPORT jint JNICALL JNI_OnLoad( JavaVM *vm, void *pvt)
{

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 938 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

View File

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

View File

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

View File

@ -4,11 +4,11 @@
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="15" />
<uses-sdk android:minSdkVersion="9" />
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" android:debuggable="true">
android:label="@string/app_name">
<activity
android:name=".main"
android:label="@string/app_name" >
@ -18,7 +18,12 @@
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:label="@string/app_name" android:name="rombrowser" />
<activity android:label="@string/app_name" android:name="com.retroarch.fileio.FileChooser" />
<activity android:label="@string/app_name" android:name="rombrowser" />
<!--
<activity android:name="android.app.NativeActivity" android:label="retroarch">
<meta-data android:name="android.app.lib_name" android:value="retroarch" />
</activity>
-->
</application>
</manifest>

View File

Before

Width:  |  Height:  |  Size: 729 B

After

Width:  |  Height:  |  Size: 729 B

View File

Before

Width:  |  Height:  |  Size: 312 B

After

Width:  |  Height:  |  Size: 312 B

View File

Before

Width:  |  Height:  |  Size: 725 B

After

Width:  |  Height:  |  Size: 725 B

View File

Before

Width:  |  Height:  |  Size: 774 B

After

Width:  |  Height:  |  Size: 774 B

View File

Before

Width:  |  Height:  |  Size: 578 B

After

Width:  |  Height:  |  Size: 578 B

View File

Before

Width:  |  Height:  |  Size: 614 B

After

Width:  |  Height:  |  Size: 614 B

View File

Before

Width:  |  Height:  |  Size: 608 B

After

Width:  |  Height:  |  Size: 608 B

View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

Before

Width:  |  Height:  |  Size: 349 B

After

Width:  |  Height:  |  Size: 349 B

View File

Before

Width:  |  Height:  |  Size: 188 B

After

Width:  |  Height:  |  Size: 188 B

View File

Before

Width:  |  Height:  |  Size: 406 B

After

Width:  |  Height:  |  Size: 406 B

View File

Before

Width:  |  Height:  |  Size: 415 B

After

Width:  |  Height:  |  Size: 415 B

View File

Before

Width:  |  Height:  |  Size: 281 B

After

Width:  |  Height:  |  Size: 281 B

View File

Before

Width:  |  Height:  |  Size: 306 B

After

Width:  |  Height:  |  Size: 306 B

View File

Before

Width:  |  Height:  |  Size: 304 B

After

Width:  |  Height:  |  Size: 304 B

View File

Before

Width:  |  Height:  |  Size: 925 B

After

Width:  |  Height:  |  Size: 925 B

View File

Before

Width:  |  Height:  |  Size: 472 B

After

Width:  |  Height:  |  Size: 472 B

View File

Before

Width:  |  Height:  |  Size: 234 B

After

Width:  |  Height:  |  Size: 234 B

View File

Before

Width:  |  Height:  |  Size: 506 B

After

Width:  |  Height:  |  Size: 506 B

View File

Before

Width:  |  Height:  |  Size: 579 B

After

Width:  |  Height:  |  Size: 579 B

View File

Before

Width:  |  Height:  |  Size: 407 B

After

Width:  |  Height:  |  Size: 407 B

View File

Before

Width:  |  Height:  |  Size: 418 B

After

Width:  |  Height:  |  Size: 418 B

View File

Before

Width:  |  Height:  |  Size: 395 B

After

Width:  |  Height:  |  Size: 395 B

View File

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

Before

Width:  |  Height:  |  Size: 729 B

After

Width:  |  Height:  |  Size: 729 B

View File

Before

Width:  |  Height:  |  Size: 312 B

After

Width:  |  Height:  |  Size: 312 B

View File

Before

Width:  |  Height:  |  Size: 725 B

After

Width:  |  Height:  |  Size: 725 B

View File

Before

Width:  |  Height:  |  Size: 774 B

After

Width:  |  Height:  |  Size: 774 B

View File

Before

Width:  |  Height:  |  Size: 578 B

After

Width:  |  Height:  |  Size: 578 B

View File

Before

Width:  |  Height:  |  Size: 614 B

After

Width:  |  Height:  |  Size: 614 B

View File

Before

Width:  |  Height:  |  Size: 608 B

After

Width:  |  Height:  |  Size: 608 B

View File

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

View File

@ -71,6 +71,10 @@ public class main extends Activity
if(requestCode == ACTIVITY_LOAD_ROM)
{
/*
Intent myIntent = new Intent(this, NativeActivity.class);
startActivity(myIntent);
*/
/*
rruntime.settings_set_defaults();
rruntime.load_game(data.getStringExtra("PATH"), 0);

View File

@ -1,20 +0,0 @@
# To enable ProGuard in your project, edit project.properties
# to define the proguard.config property as described in that file.
#
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in ${sdk.dir}/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the ProGuard
# include property in project.properties.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# Add any project specific keep options here:
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}