From 55546b21868d5b1e2ce43223a7ddbd94c88543f7 Mon Sep 17 00:00:00 2001 From: Wook Song Date: Fri, 10 May 2024 15:09:07 +0900 Subject: [PATCH] Externals/Gradle: Use dir.tfliteAndroid as an option to enable TFLite This patch makes the dir.tfliteAndroid property an option to enable TFLite. Signed-off-by: Wook Song --- externals/build.gradle.kts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/externals/build.gradle.kts b/externals/build.gradle.kts index 5ae8a09..0733b2b 100644 --- a/externals/build.gradle.kts +++ b/externals/build.gradle.kts @@ -56,12 +56,13 @@ tasks { // TensorFlow Lite val tfliteVersion = libs.versions.tensorflowLite.get() + val enabledTFLite = project.hasProperty("dir.tfliteAndroid") val tfliteDownloadable = Downloadable( "tensorflow-lite-$tfliteVersion.tar", project.properties["dir.tfliteAndroid"].toString(), "https://raw.githubusercontent.com/nnstreamer/nnstreamer-android-resource/master/external", - true, + enabledTFLite, ".xz" ) downloadables.add(tfliteDownloadable)