diff --git a/README.md b/README.md index 6ea9d7afc..8bde5db32 100644 --- a/README.md +++ b/README.md @@ -31,15 +31,9 @@ Tools required: From project root directory: ``` -cd shell\android\xperia +export ANDROID_NDK=\ <-Type the full path to your NDK here -rm -rf libs - -android update project -p . --target "android-9" - -ndk-build -j4 - -cd ..\ +cd shell\android android update project -p . --target "android-19" diff --git a/shell/android/custom_rules.xml b/shell/android/custom_rules.xml index 871abf69a..26c710374 100644 --- a/shell/android/custom_rules.xml +++ b/shell/android/custom_rules.xml @@ -8,16 +8,6 @@ - - - - - - diff --git a/shell/android/jni/Android.mk b/shell/android/jni/Android.mk index 8b3e8042e..dbda2857f 100644 --- a/shell/android/jni/Android.mk +++ b/shell/android/jni/Android.mk @@ -28,7 +28,9 @@ endif include $(LOCAL_PATH)/../../core/core.mk -LOCAL_SRC_FILES := $(RZDCY_FILES) $(wildcard $(LOCAL_PATH)/jni/src/*.cpp) +LOCAL_SRC_FILES := $(RZDCY_FILES) +LOCAL_SRC_FILES += $(wildcard $(LOCAL_PATH)/jni/src/Android.cpp) +LOCAL_SRC_FILES += $(wildcard $(LOCAL_PATH)/jni/src/utils.cpp) LOCAL_CXXFLAGS := $(RZDCY_CXXFLAGS) LOCAL_SHARED_LIBRARIES:= libcutils libutils @@ -63,3 +65,18 @@ LOCAL_ARM_MODE := arm include $(BUILD_SHARED_LIBRARY) $(call import-module,android/native_app_glue) + +LOCAL_CERTIFICATE := shared + +LOCAL_PATH:= $(call my-dir)/.. + +include $(CLEAR_VARS) + +LOCAL_MODULE := sexplay +LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/jni/src/XperiaPlay.c) +LOCAL_LDLIBS := -llog -landroid -lEGL -lGLESv1_CM +LOCAL_STATIC_LIBRARIES := android_native_app_glue + +include $(BUILD_SHARED_LIBRARY) + +$(call import-module,android/native_app_glue) diff --git a/shell/android/xperia/jni/XperiaPlay.c b/shell/android/jni/src/XperiaPlay.c similarity index 100% rename from shell/android/xperia/jni/XperiaPlay.c rename to shell/android/jni/src/XperiaPlay.c diff --git a/shell/android/res/layout/configure_fragment.xml b/shell/android/res/layout/configure_fragment.xml index fdf642e97..2df510fae 100644 --- a/shell/android/res/layout/configure_fragment.xml +++ b/shell/android/res/layout/configure_fragment.xml @@ -323,19 +323,6 @@ - - -