You've already forked ReZygisk
mirror of
https://github.com/PerformanC/ReZygisk.git
synced 2025-09-06 06:37:01 +00:00
improve: turn on CMAKE_EXPORT_COMPILE_COMMANDS
To make `clangd` work properly, one needs to make symbolic links ``` ln -sf $PWD/loader/build/tools/debug/arm64-v8a/compile_commands.json loader/build ```
This commit is contained in:
@@ -49,6 +49,7 @@ android {
|
|||||||
|
|
||||||
externalNativeBuild.cmake {
|
externalNativeBuild.cmake {
|
||||||
path("src/CMakeLists.txt")
|
path("src/CMakeLists.txt")
|
||||||
|
buildStagingDirectory = layout.buildDirectory.get().asFile
|
||||||
}
|
}
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
|
|||||||
@@ -3,6 +3,8 @@ project("loader")
|
|||||||
|
|
||||||
find_package(cxx REQUIRED CONFIG)
|
find_package(cxx REQUIRED CONFIG)
|
||||||
|
|
||||||
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||||
|
|
||||||
add_definitions(-DZKSU_VERSION=\"${ZKSU_VERSION}\")
|
add_definitions(-DZKSU_VERSION=\"${ZKSU_VERSION}\")
|
||||||
|
|
||||||
aux_source_directory(common COMMON_SRC_LIST)
|
aux_source_directory(common COMMON_SRC_LIST)
|
||||||
|
|||||||
Reference in New Issue
Block a user