Skip to content

Commit

Permalink
Update build script
Browse files Browse the repository at this point in the history
  • Loading branch information
yujincheng08 committed Feb 18, 2024
1 parent 1726816 commit 5dbc9ff
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lsplant/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import java.nio.file.Paths

plugins {
alias(libs.plugins.agp.lib)
alias(libs.plugins.lsplugin.jgit)
Expand Down Expand Up @@ -96,7 +94,7 @@ cmaker {
arguments += "-DLSPLANT_STANDALONE=ON"
}
}
arguments += "-DDEBUG_SYMBOLS_PATH=${project.buildDir.absolutePath}/symbols/${it.name}"
arguments += "-DDEBUG_SYMBOLS_PATH=${project.layout.buildDirectory.file("symbols/${it.name}").get().asFile.absolutePath}"
}
}

Expand All @@ -105,14 +103,14 @@ dependencies {
}

val symbolsReleaseTask = tasks.register<Jar>("generateReleaseSymbolsJar") {
from("${project.buildDir.absolutePath}/symbols/release")
from(project.layout.buildDirectory.file("symbols/release"))
exclude("**/dex_builder")
archiveClassifier.set("symbols")
archiveBaseName.set("release")
}

val symbolsStandaloneTask = tasks.register<Jar>("generateStandaloneSymbolsJar") {
from("${project.buildDir.absolutePath}/symbols/standalone")
from(project.layout.buildDirectory.file("symbols/standalone"))
exclude("**/dex_builder")
archiveClassifier.set("symbols")
archiveBaseName.set("standalone")
Expand Down

0 comments on commit 5dbc9ff

Please sign in to comment.