Skip to content

Commit

Permalink
build(gradle): Fix error on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
ktgw0316 committed Mar 21, 2024
1 parent 98427b8 commit 09694d3
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -72,18 +72,26 @@ subprojects {
register<Exec> ("cleanProducts") {
commandLine(MAKE, "-C", "products", "-j", "-s", "clean")
}
register<Exec> ("jni") {
dependsOn("classes")
commandLine(MAKE, "-C", "jnisrc")
}
register<Exec> ("cleanJni") {
commandLine(MAKE, "-C", "jnisrc", "-j", "-s", "distclean")
}
getByName("build") {
dependsOn("jni", "products")
dependsOn("products")
}
getByName("clean") {
dependsOn("cleanProducts", "cleanJni")
dependsOn("cleanProducts")
}
if (file("jnisrc").exists()) {
register<Exec> ("jni") {
dependsOn("classes")
commandLine(MAKE, "-C", "jnisrc")
}
register<Exec> ("cleanJni") {
commandLine(MAKE, "-C", "jnisrc", "-j", "-s", "distclean")
}
getByName("build") {
dependsOn("jni")
}
getByName("clean") {
dependsOn("cleanJni")
}
}
}
}

0 comments on commit 09694d3

Please sign in to comment.