2
1

0005-skip-configuration-dependency-if-unit-tests-are-disa.patch 1.0 KB

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