From f98269d78c07a201edf128347c5123e65b76bfdc Mon Sep 17 00:00:00 2001 From: Greg Spencer Date: Tue, 5 Mar 2024 12:57:01 -0800 Subject: [PATCH] Skip configuration dependency if unit tests are disabled (flutter/engine#51179) ## Description This makes the GTK dependency only active if unit tests are enabled, so that it won't create an undesired dependency on embedded platforms. ## Related Issues - Fixes https://github.com/flutter/flutter/issues/144421 --- engine/src/flutter/testing/BUILD.gn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/flutter/testing/BUILD.gn b/engine/src/flutter/testing/BUILD.gn index a6e20e72b9..4ac720dca4 100644 --- a/engine/src/flutter/testing/BUILD.gn +++ b/engine/src/flutter/testing/BUILD.gn @@ -51,7 +51,7 @@ source_set("testing") { sources = [ "run_all_unittests.cc" ] - if (is_linux) { + if (enable_unittests && is_linux) { # So that we can call gtk_init in main(). configs += [ "//flutter/shell/platform/linux/config:gtk" ] }