diff --git a/nnstreamer-api/build.gradle.kts b/nnstreamer-api/build.gradle.kts index 81aa61b..668ba7f 100644 --- a/nnstreamer-api/build.gradle.kts +++ b/nnstreamer-api/build.gradle.kts @@ -118,6 +118,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") + } } } @@ -133,4 +144,4 @@ afterEvaluate { compileJavaTask.dependsOn(nativeBuildTask) } } -} \ No newline at end of file +}