Skip to content

Commit

Permalink
Api/Gradle: Add a Gradle task for cleaning all
Browse files Browse the repository at this point in the history
This patch adds cleanAll, a Gradle task that removes all generated
resources.

Signed-off-by: Wook Song <wook16.song@samsung.com>
  • Loading branch information
wooksong committed May 3, 2024
1 parent 0438a51 commit c6faddb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions nnstreamer-api/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,17 @@ android {
dependsOn("genNnsSrc")
dependsOn("genJniSrc")
}

register("cleanAll", Delete::class) {
val generatedDirs = listOf("gst-android-build", "src")

for (genDir in generatedDirs) {
project.projectDir.toPath().resolve(genDir).apply {
delete(this)
}
}
dependsOn("clean")
}
}
}

Expand Down

0 comments on commit c6faddb

Please sign in to comment.