Skip to content

Commit 3faaf89

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)