33 lines
1.0 KiB
Diff
33 lines
1.0 KiB
Diff
From 2252a85e59669b5826019f60a98b7a69939dacfd Mon Sep 17 00:00:00 2001
|
|
From: Greg Spencer <gspencer@google.com>
|
|
Date: Mon, 4 Mar 2024 12:30:41 -0800
|
|
Subject: [PATCH] Skip configuration dependency if unit tests are disabled.
|
|
|
|
Commit 88baf62f made gtk+-3.0 an unconditional requirement, see:
|
|
|
|
Issue: https://github.com/flutter/flutter/issues/144421
|
|
Upstream: Merged. https://github.com/flutter/engine/pull/51179
|
|
|
|
Signed-off-by: Greg Spencer <gspencer@google.com>
|
|
Signed-off-by: Adam Duskett <adam.duskett@amarulasolutions.com>
|
|
---
|
|
flutter/testing/BUILD.gn | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/flutter/testing/BUILD.gn b/flutter/testing/BUILD.gn
|
|
index 9eac29452..a7d094695 100644
|
|
--- a/flutter/testing/BUILD.gn
|
|
+++ b/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" ]
|
|
}
|
|
--
|
|
2.44.0
|
|
|