From b04715ad13c5df325f81ce0523171ce0690f61bc Mon Sep 17 00:00:00 2001 From: juwens <> Date: Fri, 20 Feb 2026 12:52:02 +0100 Subject: [PATCH] adjust CMakeLists.txt to generate Android 16kB compatible lib --- litehtml-maui-native/CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/litehtml-maui-native/CMakeLists.txt b/litehtml-maui-native/CMakeLists.txt index 76d9708..c26df71 100644 --- a/litehtml-maui-native/CMakeLists.txt +++ b/litehtml-maui-native/CMakeLists.txt @@ -30,8 +30,6 @@ endif() # Add source to this project's executable. - - add_library (litehtml-maui ${LIB_TYPE} "src/litehtml-maui.cpp" "src/litehtml-maui.h" "src/litehtml-maui-container.h" "src/litehtml-maui-container.cpp") set_target_properties(litehtml-maui PROPERTIES @@ -40,6 +38,9 @@ set_target_properties(litehtml-maui PROPERTIES PUBLIC_HEADER "src/litehtml-maui.h" ) +# Android 16kb page size +target_link_options(litehtml-maui PRIVATE "-Wl,-z,max-page-size=16384") + target_link_libraries(litehtml-maui litehtml)