Skip to content

Commit 3f70327

Browse files
committed
add gradle task to build native libs
1 parent cfdd938 commit 3f70327

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

build.gradle.kts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,16 @@ kotlin {
4848

4949
}
5050

51+
val buildWin: TaskProvider<Exec> = tasks.register<Exec>("buildNativeWin") {
52+
onlyIf { System.getProperty("os.name").startsWith("Windows") }
53+
workingDir(rootDir.resolve("winlib"))
54+
commandLine("cmd", "/c", "build.bat")
55+
}
56+
57+
tasks.register("buildNativeLibraries") {
58+
dependsOn(buildWin)
59+
}
60+
5161
mavenPublishing {
5262
coordinates(
5363
groupId = "io.github.kdroidfilter",

0 commit comments

Comments
 (0)