1From 2252a85e59669b5826019f60a98b7a69939dacfd Mon Sep 17 00:00:00 2001 2From: Greg Spencer <gspencer@google.com> 3Date: Mon, 4 Mar 2024 12:30:41 -0800 4Subject: [PATCH] Skip configuration dependency if unit tests are disabled. 5 6Commit 88baf62f made gtk+-3.0 an unconditional requirement, see: 7 8Issue: https://github.com/flutter/flutter/issues/144421 9Upstream: Merged. https://github.com/flutter/engine/pull/51179 10 11Signed-off-by: Greg Spencer <gspencer@google.com> 12Signed-off-by: Adam Duskett <adam.duskett@amarulasolutions.com> 13--- 14 flutter/testing/BUILD.gn | 2 +- 15 1 file changed, 1 insertion(+), 1 deletion(-) 16 17diff --git a/flutter/testing/BUILD.gn b/flutter/testing/BUILD.gn 18index 9eac29452..a7d094695 100644 19--- a/flutter/testing/BUILD.gn 20+++ b/flutter/testing/BUILD.gn 21@@ -51,7 +51,7 @@ source_set("testing") { 22 23 sources = [ "run_all_unittests.cc" ] 24 25- if (is_linux) { 26+ if (enable_unittests && is_linux) { 27 # So that we can call gtk_init in main(). 28 configs += [ "//flutter/shell/platform/linux/config:gtk" ] 29 } 30-- 312.44.0 32 33