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 18, 2024
1 parent ed0bd92 commit 36cbfbc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,14 @@ subprojects {
}
register<Exec> ("jni") {
dependsOn("classes")
commandLine(MAKE, "-C", "jnisrc")
if (file("jnisrc").exists()) {
commandLine(MAKE, "-C", "jnisrc")
}
}
register<Exec> ("cleanJni") {
commandLine(MAKE, "-C", "jnisrc", "-j", "-s", "distclean")
if (file("jnisrc").exists()) {
commandLine(MAKE, "-C", "jnisrc", "-j", "-s", "distclean")
}
}
getByName("build") {
dependsOn("jni", "products")
Expand Down

0 comments on commit 36cbfbc

Please sign in to comment.