From 2260fe5b626a25db9207bbca0fa1fcbfd69bb705 Mon Sep 17 00:00:00 2001 From: Kostiantyn Zghirovskyi Date: Sat, 9 May 2020 01:57:16 +0200 Subject: [PATCH] Fix filament-utils-android build on Windows (#2508) * Fix filament-utils-android build on Windows * Update build.gradle * nit: use char version instead * Fix No signature of method: java.lang.String.replace() is applicable for argument types: (Character, String) values: [\, /] --- android/build.gradle | 3 +++ 1 file changed, 3 insertions(+) diff --git a/android/build.gradle b/android/build.gradle index c134ea3482..aa3d0b003a 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -27,6 +27,9 @@ buildscript { if (project.hasProperty("filament_dist_dir")) { filamentPath = file(project.property("filament_dist_dir")).absolutePath } + // Our CMake scripts require a forward-slash path for the FILAMENT_DIST_DIR + // variable, so here we convert the native path to a forward-slash path. + filamentPath = filamentPath.replace(File.separator, '/') def hasVulkan = project.hasProperty("filament_supports_vulkan")