Improvements to the TFLite Bindings Build.gradle #6864
- Drops unnecessary build of the compiler from host tools
- Updates Gradle to latest version
- removes extraneous `/` from path (causes weird path combinations like `.././...`)
diff --git a/bindings/tflite/java/build.gradle b/bindings/tflite/java/build.gradle
index 4e5b9ac..fe521a1 100644
--- a/bindings/tflite/java/build.gradle
+++ b/bindings/tflite/java/build.gradle
@@ -11,13 +11,13 @@
}
dependencies {
- classpath 'com.android.tools.build:gradle:4.0.0'
+ classpath 'com.android.tools.build:gradle:4.2.0'
}
}
apply plugin: 'com.android.library'
-def cmakeListDir = "${rootDir}/../../../"
+def cmakeListDir = "${rootDir}/../../.."
def hostBuildDir = "${cmakeListDir}/../iree-build-host"
def hostInstallDir = "${hostBuildDir}/install"
@@ -80,7 +80,7 @@
"-B", hostBuildDir ,
"-DIREE_TARGET_BACKENDS_TO_BUILD=vmvx",
"-DIREE_HAL_DRIVERS_TO_BUILD=vmvx",
- "-DIREE_BUILD_COMPILER=ON",
+ "-DIREE_BUILD_COMPILER=OFF",
"-DIREE_BUILD_TESTS=OFF ",
"-DIREE_BUILD_SAMPLES=OFF",
"-DCMAKE_INSTALL_PREFIX=${hostInstallDir}",