mirror of
https://github.com/chiteroman/PlayIntegrityFix.git
synced 2025-04-29 17:42:11 +08:00
use libcxx prefab
This commit is contained in:
parent
94eb9d3d5f
commit
72ca4a62db
@ -11,6 +11,9 @@ android {
|
||||
excludes += "**/libdobby.so"
|
||||
}
|
||||
}
|
||||
buildFeatures {
|
||||
prefab = true
|
||||
}
|
||||
|
||||
defaultConfig {
|
||||
applicationId = "es.chiteroman.playintegrityfix"
|
||||
@ -61,4 +64,8 @@ android {
|
||||
|
||||
ndkVersion = "26.1.10909125"
|
||||
buildToolsVersion = "34.0.0"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation("dev.rikka.ndk.thirdparty:cxx:1.2.0")
|
||||
}
|
@ -1,29 +1,29 @@
|
||||
cmake_minimum_required(VERSION 3.22.1)
|
||||
project(zygisk)
|
||||
|
||||
include_directories(D:/libcxx_build/jni/libcxx/include)
|
||||
|
||||
link_libraries(D:/libcxx_build/obj/local/${CMAKE_ANDROID_ARCH_ABI}/libcxx.a)
|
||||
find_package(cxx REQUIRED CONFIG)
|
||||
|
||||
if ((${CMAKE_ANDROID_ARCH_ABI} STREQUAL "arm64-v8a"))
|
||||
|
||||
file(GLOB shadowhook_src shadowhook/*.c shadowhook/arch/arm64/*.c shadowhook/common/*.c shadowhook/third_party/*/*.c)
|
||||
add_library(${CMAKE_PROJECT_NAME} SHARED main.cpp ${shadowhook_src})
|
||||
target_include_directories(${CMAKE_PROJECT_NAME} PRIVATE shadowhook shadowhook/arch/arm64 shadowhook/common shadowhook/include shadowhook/third_party/bsd shadowhook/third_party/lss shadowhook/third_party/xdl)
|
||||
target_link_libraries(${CMAKE_PROJECT_NAME} PRIVATE log)
|
||||
target_link_libraries(${CMAKE_PROJECT_NAME} PRIVATE log cxx::cxx)
|
||||
|
||||
elseif (${CMAKE_ANDROID_ARCH_ABI} STREQUAL "armeabi-v7a")
|
||||
|
||||
file(GLOB shadowhook_src shadowhook/*.c shadowhook/arch/arm/*.c shadowhook/common/*.c shadowhook/third_party/*/*.c)
|
||||
add_library(${CMAKE_PROJECT_NAME} SHARED main.cpp ${shadowhook_src})
|
||||
target_include_directories(${CMAKE_PROJECT_NAME} PRIVATE shadowhook shadowhook/arch/arm shadowhook/common shadowhook/include shadowhook/third_party/bsd shadowhook/third_party/lss shadowhook/third_party/xdl)
|
||||
target_link_libraries(${CMAKE_PROJECT_NAME} PRIVATE log)
|
||||
target_link_libraries(${CMAKE_PROJECT_NAME} PRIVATE log cxx::cxx)
|
||||
|
||||
else ()
|
||||
|
||||
add_library(${CMAKE_PROJECT_NAME} SHARED main.cpp)
|
||||
add_subdirectory(Dobby)
|
||||
SET_OPTION(Plugin.Android.BionicLinkerUtil ON)
|
||||
target_link_libraries(${CMAKE_PROJECT_NAME} PRIVATE log dobby_static)
|
||||
target_link_libraries(dobby cxx::cxx)
|
||||
target_link_libraries(dobby_static cxx::cxx)
|
||||
target_link_libraries(${CMAKE_PROJECT_NAME} PRIVATE log dobby_static cxx::cxx)
|
||||
|
||||
endif ()
|
Loading…
Reference in New Issue
Block a user