diff --git a/MagicEarth/Android.mk b/MagicEarth/Android.mk index 75ca5b381e976cf7cb15fc405480c3f0b1feae00..bf232e2ab0c78f22573c2c6bb913bfa222efc53b 100644 --- a/MagicEarth/Android.mk +++ b/MagicEarth/Android.mk @@ -4,12 +4,27 @@ LOCAL_MODULE_TAGS := optional LOCAL_MODULE := MagicEarth ifeq ($(TARGET_CPU_ABI), arm64-v8a) - LOCAL_SRC_FILES := MagicEarth-arm64.apk + LOCAL_SRC_FILES := MagicEarth-arm64.apk else - LOCAL_SRC_FILES := MagicEarth-arm.apk + LOCAL_SRC_FILES := MagicEarth-arm.apk endif LOCAL_MODULE_CLASS := APPS LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX) LOCAL_CERTIFICATE := PRESIGNED +LOCAL_REQUIRED_MODULES := libMagicEarthNative.so +include $(BUILD_PREBUILT) + + +include $(CLEAR_VARS) + +LOCAL_MODULE := libMagicEarthNative.so +LOCAL_MODULE_CLASS := SHARED_LIBRARIES +ifeq ($(TARGET_CPU_ABI), arm64-v8a) + LOCAL_MODULE_PATH := $(TARGET_OUT)/lib64 + LOCAL_SRC_FILES := arm64-v8a/libMagicEarthNative.so +else + LOCAL_MODULE_PATH := $(TARGET_OUT)/lib + LOCAL_SRC_FILES := armeabi-v7a/libMagicEarthNative.so +endif include $(BUILD_PREBUILT) diff --git a/MagicEarth/arm64-v8a/libMagicEarthNative.so b/MagicEarth/arm64-v8a/libMagicEarthNative.so new file mode 100644 index 0000000000000000000000000000000000000000..95d7771ad7d4c1efe5b8b529242fab66407b2b7c Binary files /dev/null and b/MagicEarth/arm64-v8a/libMagicEarthNative.so differ diff --git a/MagicEarth/armeabi-v7a/libMagicEarthNative.so b/MagicEarth/armeabi-v7a/libMagicEarthNative.so new file mode 100644 index 0000000000000000000000000000000000000000..addb9ec6ad4f6ea270fa744673e4bbddbc9340dd Binary files /dev/null and b/MagicEarth/armeabi-v7a/libMagicEarthNative.so differ