Skip to content

Commit

Permalink
switch to a gradle-specific syntax
Browse files Browse the repository at this point in the history
latekvo committed Jan 15, 2025
1 parent 72eb32c commit 5992c3b
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -186,18 +186,16 @@ android {
}

if (isGHExampleApp()) {
tasks.withType(ExternalNativeBuildJsonTask).tap {
configureEach {
compileTask ->
compileTask.doLast {
def rootDir = new File("${project.projectDir}/..")
def generated = new File("${compileTask.abi.getCxxBuildFolder()}/compile_commands.json")
def output = new File("${rootDir}/compile_commands.json")
output.text = generated.text

println("Generated clangd metadata.")
}
}
tasks.withType(ExternalNativeBuildJsonTask).configureEach {
compileTask ->
compileTask.doLast {
def rootDir = new File("${project.projectDir}/..")
def generated = new File("${compileTask.abi.getCxxBuildFolder()}/compile_commands.json")
def output = new File("${rootDir}/compile_commands.json")
output.text = generated.text

println("Generated clangd metadata.")
}
}
}
}

0 comments on commit 5992c3b

Please sign in to comment.