Skip to content

Commit

Permalink
Externals/Gradle: Use dir.tfliteAndroid as an option to enable TFLite
Browse files Browse the repository at this point in the history
This patch makes the dir.tfliteAndroid property an option to enable
TFLite.

Signed-off-by: Wook Song <wook16.song@samsung.com>
  • Loading branch information
wooksong authored and jaeyun-jung committed May 13, 2024
1 parent ed19a2c commit 55546b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion externals/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 55546b2

Please sign in to comment.