Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 3faaf89

Browse files
authored
Skip configuration dependency if unit tests are disabled (#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 flutter/flutter#144421
1 parent 6594bca commit 3faaf89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

testing/BUILD.gn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ source_set("testing") {
5151

5252
sources = [ "run_all_unittests.cc" ]
5353

54-
if (is_linux) {
54+
if (enable_unittests && is_linux) {
5555
# So that we can call gtk_init in main().
5656
configs += [ "//flutter/shell/platform/linux/config:gtk" ]
5757
}

0 commit comments

Comments
 (0)