cmake_minimum_required(VERSION 3.22.1)
project(o20010_06_android LANGUAGES C CXX)

set(HTP_BUILD_TESTS OFF CACHE BOOL "" FORCE)
set(HTP_BUILD_N3N ON CACHE BOOL "" FORCE)
add_subdirectory("${CMAKE_CURRENT_LIST_DIR}/../../../../../core" "${CMAKE_CURRENT_BINARY_DIR}/htp-core")

add_library(o20010_06 SHARED native_bridge.cpp)
target_include_directories(o20010_06 PRIVATE "${CMAKE_CURRENT_LIST_DIR}/../../../../../core/include")
target_link_libraries(o20010_06 PRIVATE htp_n3n android log)
target_link_options(o20010_06 PRIVATE
    "-Wl,-z,max-page-size=16384"
    "-Wl,-z,common-page-size=16384")
