Skip to content

Commit

Permalink
Small style cleanups in JVM Gradle plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
thunderbiscuit committed Jun 5, 2023
1 parent 49e8fe4 commit 90606b2
Showing 1 changed file with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,14 @@ internal class UniFfiJvmPlugin : Plugin<Project> {
val cargoArgs: List<String> = listOf("build", "--profile", "release-smaller", "--target", "aarch64-apple-darwin")
args(cargoArgs)
}
} else if(operatingSystem == OS.LINUX) {
} else if (operatingSystem == OS.LINUX) {
exec {
workingDir("${project.projectDir}/../../bdk-ffi")
executable("cargo")
val cargoArgs: List<String> = listOf("build", "--profile", "release-smaller", "--target", "x86_64-unknown-linux-gnu")
args(cargoArgs)
}
}
else if(operatingSystem == OS.WINDOWS) {
} else if (operatingSystem == OS.WINDOWS) {
exec {
workingDir("${project.projectDir}/../../bdk-ffi")
executable("cargo")
Expand Down Expand Up @@ -88,13 +87,8 @@ internal class UniFfiJvmPlugin : Plugin<Project> {
)
}
val libName = when (operatingSystem) {
OS.WINDOWS -> {
"bdkffi"
}

else -> {
"libbdkffi"
}
OS.WINDOWS -> "bdkffi"
else -> "libbdkffi"
}

libsToCopy.forEach {
Expand Down

0 comments on commit 90606b2

Please sign in to comment.