Android: Add 16 KiB page size support

So far, Dolphin hasn't been able to run on Android devices that use a
16 KiB page size. 16 KiB page sizes are a very new Android feature that
no phones have shipped with so far, so we're still compatible with the
phones that exist out there, but let's get this fixed before phones
start shipping with 16 KiB page sizes.

Because I couldn't get Android Studio's emulator to work, I haven't been
able to confirm that this change actually makes Dolphin fully compatible
with devices that use a 16 KiB page size. But I have confirmed that this
doesn't break anything on a regular 4 KiB page size device.
This commit is contained in:
JosJuice 2024-09-28 12:08:01 +02:00
parent 2cb124bd3a
commit 14a802b58b
2 changed files with 7 additions and 3 deletions

@ -1 +1 @@
Subproject commit f4ce3c9618e7ecfcdd238b17dad9a0b888f5de90
Subproject commit 8fae8ce254dfc1344527e05301e43f37dea2df80

View File

@ -101,8 +101,12 @@ android {
defaultConfig {
externalNativeBuild {
cmake {
arguments("-DANDROID_STL=c++_static", "-DCMAKE_BUILD_TYPE=RelWithDebInfo")
arguments(
"-DANDROID_STL=c++_static",
"-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON",
"-DCMAKE_BUILD_TYPE=RelWithDebInfo"
// , "-DENABLE_GENERIC=ON"
)
abiFilters("arm64-v8a", "x86_64") //, "armeabi-v7a", "x86"
// Uncomment the line below if you don't want to build the C++ unit tests