Skip to content

Commit

Permalink
compile oboe with 16kb page sizes (#2126)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertwu1 authored Dec 17, 2024
1 parent aa616aa commit c77c7e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ option(OBOE_DO_NOT_DEFINE_OPENSL_ES_CONSTANTS "Do not define OpenSLES constants"
target_compile_definitions(oboe PRIVATE $<$<BOOL:${OBOE_DO_NOT_DEFINE_OPENSL_ES_CONSTANTS}>:DO_NOT_DEFINE_OPENSL_ES_CONSTANTS=1>)

target_link_libraries(oboe PRIVATE log OpenSLES)
target_link_options(oboe PRIVATE "-Wl,-z,max-page-size=16384")

# When installing oboe put the libraries in the lib/<ABI> folder e.g. lib/arm64-v8a
install(TARGETS oboe
Expand Down
1 change: 1 addition & 0 deletions build_all_android.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ function build_oboe {
-DANDROID_ABI=${ABI} \
-DCMAKE_ARCHIVE_OUTPUT_DIRECTORY=${STAGING_DIR}/lib/${ABI} \
-DANDROID_PLATFORM=android-${MINIMUM_API_LEVEL}\
-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON \
${CMAKE_ARGS}

pushd ${ABI_BUILD_DIR}
Expand Down

0 comments on commit c77c7e3

Please sign in to comment.