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
This commit is contained in:
Greg Spencer
2024-03-05 12:57:01 -08:00
committed by GitHub
parent db4a60e675
commit f98269d78c

View File

@@ -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" ]
}