Skip to content

Commit

Permalink
update cmake min version
Browse files Browse the repository at this point in the history
  • Loading branch information
chiteroman committed Jan 20, 2025
1 parent ecc71d8 commit 23c0a4f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
14 changes: 13 additions & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,18 @@ android {

arguments(
"-DCMAKE_BUILD_TYPE=MinSizeRel",
"-DANDROID_STL=none"
"-DANDROID_STL=none",
"-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON",
"-DANDROID_ALLOW_UNDEFINED_SYMBOLS=ON",
"-DCMAKE_CXX_STANDARD=23",
"-DCMAKE_C_STANDARD=23",
"-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON",
"-DCMAKE_VISIBILITY_INLINES_HIDDEN=ON",
"-DCMAKE_CXX_VISIBILITY_PRESET=hidden",
"-DCMAKE_C_VISIBILITY_PRESET=hidden",
"-DCMAKE_ANDROID_EXCEPTIONS=OFF",
"-DCMAKE_ANDROID_RTTI=OFF",
"-DANDROID_CPP_FEATURES='no-rtti no-exceptions'"
)

cFlags(
Expand Down Expand Up @@ -77,6 +88,7 @@ android {
externalNativeBuild {
cmake {
path = file("src/main/cpp/CMakeLists.txt")
version = "3.31.1"
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.31.1)

project("playintegrityfix")

Expand All @@ -10,4 +10,4 @@ add_library(${CMAKE_PROJECT_NAME} SHARED main.cpp)

add_subdirectory(Dobby)

target_link_libraries(${CMAKE_PROJECT_NAME} PRIVATE log dobby_static)
target_link_libraries(${CMAKE_PROJECT_NAME} PRIVATE log dobby_static)
2 changes: 1 addition & 1 deletion app/src/main/cpp/Dobby
Submodule Dobby updated 1 files
+178 −178 CMakeLists.txt

0 comments on commit 23c0a4f

Please sign in to comment.