Compile against android-10 while we still care about Gingerbread ... nom nom nom

This commit is contained in:
Aaron Culliney 2015-09-27 15:04:10 -07:00
parent 286012c991
commit 7f32e14a6e
4 changed files with 13 additions and 5 deletions

View File

@ -1,3 +1,8 @@
APP_ABI := armeabi armeabi-v7a ## TODO : x86
APP_PLATFORM := android-21
# Do not change APP_PLATFORM if we care about Gingerbread (2.3.3) devices! We must compile against android-10,
# otherwise we may encounter runtime load-library errors from symbols that should have been inlined against older
# Bionic. e.g., getpagesize()
APP_PLATFORM := android-10
APP_STL := gnustl_static

View File

@ -23,7 +23,7 @@ LOCAL_CPP_EXTENSION := .C
LOCAL_CPPFLAGS := -std=gnu++11
LOCAL_MODULE := libapple2ix
LOCAL_SRC_FILES := $(APPLE2_SRC_PATH)/breakpad.C jnicrash.c
LOCAL_SRC_FILES := jnicrash.c $(APPLE2_SRC_PATH)/breakpad.C
#LOCAL_ARM_MODE := arm
LOCAL_CFLAGS := $(APPLE2_BASE_CFLAGS) $(BREAKPAD_CFLAGS)
LOCAL_LDLIBS := $(APPLE2_BASE_LDLIBS)

View File

@ -102,6 +102,8 @@ void Java_org_deadc0de_apple2ix_Apple2Activity_nativeOnCreate(JNIEnv *env, jobje
return;
}
// Do not remove this deadc0de ... it forces a runtime load-library/link error on Gingerbread devices if we have
// incorrectly compiled the app against a later version of the NDK!!!
int pagesize = getpagesize();
LOG("PAGESIZE IS : %d", pagesize);

View File

@ -14,6 +14,7 @@
#android.library.reference.1=${sdk.dir}/extras/android/support/v7/appcompat
android.library.reference.1=../../../../Android/Sdk/extras/android/support/v7/appcompat
# Project target.
##target=android-10
target=android-21
# Do not change target if we care about Gingerbread (2.3.3) devices! We must compile against android-10, otherwise we
# may encounter runtime load-library errors from symbols that should have been inlined against older Bionic. e.g.,
# getpagesize()
target=android-10