From 11511445631a8247fa7e2abd28bfb839270b9421 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Mon, 5 Jun 2023 17:02:30 -0400 Subject: [PATCH] Update decision to build java-controller to Linux. (#27037) This is because current dependencies will validate that we use linux underneath and when compiling say esp32 on a vscode image with JAVA_PATH set, compilation would fail. Later on we can update/decide if java compilation should happen on mac as well. CI only compiles and validates linux. Co-authored-by: Andrei Litvin --- build/chip/java/config.gni | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/chip/java/config.gni b/build/chip/java/config.gni index 3e1f160da57b07..ca18c9231fef1d 100644 --- a/build/chip/java/config.gni +++ b/build/chip/java/config.gni @@ -16,7 +16,7 @@ java_path = getenv("JAVA_PATH") declare_args() { java_matter_controller_dependent_paths = [] matter_enable_java_compilation = false - if (java_path != "" && current_os != "android") { + if (java_path != "" && current_os == "linux") { java_matter_controller_dependent_paths += [ "${java_path}/include/" ] if (current_os == "mac") {