Skip to content

Commit a247100

Browse files
authored
Merge pull request #2573 from joliver82/android-16kb-fix
Android 16kb fix
2 parents 827aa3e + c4ca9d1 commit a247100

File tree

7 files changed

+14
-5
lines changed

7 files changed

+14
-5
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ jobs:
9999
name: Build natives for android
100100
runs-on: ubuntu-latest
101101
container:
102-
image: ghcr.io/cirruslabs/android-sdk:35-ndk
102+
image: ghcr.io/cirruslabs/android-sdk:36-ndk
103103

104104
steps:
105105
- name: Clone the repo

jme3-android-native/src/native/jme_bufferallocator/Android.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ LOCAL_PATH := $(call my-dir)
3939

4040
include $(CLEAR_VARS)
4141

42-
LOCAL_CFLAGS := -DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=true
4342
LOCAL_LDLIBS := -llog -Wl,-s
4443

4544
LOCAL_MODULE := bufferallocatorjme

jme3-android-native/src/native/jme_bufferallocator/Application.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,5 @@ APP_PLATFORM := android-19
3737
# change this to 'debug' to see android logs
3838
APP_OPTIM := release
3939
APP_ABI := armeabi-v7a,arm64-v8a,x86,x86_64
40+
APP_SUPPORT_FLEXIBLE_PAGE_SIZES := true
41+

jme3-android-native/src/native/jme_decode/Android.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ LOCAL_C_INCLUDES:= \
1010
$(LOCAL_PATH) \
1111
$(LOCAL_PATH)/Tremor
1212

13-
LOCAL_CFLAGS := -std=gnu99 -DLIMIT_TO_64kHz -O0 -DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=true
13+
LOCAL_CFLAGS := -std=gnu99 -DLIMIT_TO_64kHz -O0
1414
LOCAL_LDLIBS := -lz -llog -Wl,-s
1515

1616
ifeq ($(TARGET_ARCH),arm)
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
APP_PLATFORM := android-9
22
APP_OPTIM := release
33
APP_ABI := armeabi-v7a,arm64-v8a,x86,x86_64
4+
APP_SUPPORT_FLEXIBLE_PAGE_SIZES := true
5+

jme3-android-native/src/native/jme_openalsoft/Android.mk

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,15 @@ LOCAL_CFLAGS := -ffast-math \
3838
-DAL_ALEXT_PROTOTYPES \
3939
-fcommon \
4040
-O0 \
41-
-DRESTRICT="" \
42-
-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=true
41+
-DRESTRICT=""
4342

4443
LOCAL_LDLIBS := -lOpenSLES -llog -Wl,-s -lc++_static -lc++abi
44+
ifeq ($(TARGET_ARCH_ABI),arm64-v8a)
45+
LOCAL_LDFLAGS += "-Wl,-z,max-page-size=16384"
46+
endif
47+
ifeq ($(TARGET_ARCH_ABI),x86_64)
48+
LOCAL_LDFLAGS += "-Wl,-z,max-page-size=16384"
49+
endif
4550
LOCAL_STATIC_LIBRARIES := openalsoft_prebuilt
4651
# (or LOCAL_WHOLE_STATIC_LIBRARIES if you need every object pulled in)
4752

jme3-android-native/src/native/jme_openalsoft/Application.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ APP_PLATFORM := android-19
22
APP_OPTIM := release
33
APP_ABI := armeabi-v7a,arm64-v8a,x86,x86_64
44
APP_STL := c++_static
5+
APP_SUPPORT_FLEXIBLE_PAGE_SIZES := true
56

0 commit comments

Comments
 (0)