For Android, this means building the library into the Love Android app. I added the gme code into the jni directory along with a simple Android.mk.
Code: Select all
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := libgme
FILE_LIST := $(wildcard $(LOCAL_PATH)/gme/*.cpp)
LOCAL_SRC_FILES := $(FILE_LIST:$(LOCAL_PATH)/%=%)
include $(BUILD_SHARED_LIBRARY)
Then I tested on Galaxy Note 5 (SM-N920V) with Android 6.0 and Galaxy Note 10.1 (GT-N8013) with 4.1.2.
On SM-N920V it works perfectly. On GT-N8013 there's an error on starting:
Code: Select all
Cannot load library: load_library[1094]: Library 'libgme.so' not found
How can I use this library in a way that's compatible with all supported Android versions?