Skip to content

Commit

Permalink
Merge pull request #181 from FalsinSoft/main
Browse files Browse the repository at this point in the history
Added compilation params for Android
  • Loading branch information
utelle authored Nov 17, 2024
2 parents 45df8a4 + 105f7ea commit 1919339
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,14 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Linux"
list(APPEND SQLITE3MC_LINK_LIBRARIES "-framework Security")
endif()
set(SHARED_LIB_EXPORT_DEFINITION "__attribute__((visibility(\"default\")))")
elseif (CMAKE_SYSTEM_NAME STREQUAL "Android")
if (ANDROID_ABI STREQUAL "arm64-v8a")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=armv8-a+crypto")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=armv8-a+crypto")
elseif (ANDROID_ABI STREQUAL "x86_64")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mvaes")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mvaes")
endif()
else()
if (CMAKE_C_COMPILER_ID STREQUAL "GNU")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -msse4.2 -maes")
Expand Down

0 comments on commit 1919339

Please sign in to comment.