diff --git a/engine/src/flutter/BUILD.gn b/engine/src/flutter/BUILD.gn index 39edfcdc72..2766d1b986 100644 --- a/engine/src/flutter/BUILD.gn +++ b/engine/src/flutter/BUILD.gn @@ -57,6 +57,13 @@ group("flutter") { if (!is_win) { public_deps += [ "$flutter_root/shell/common:shell_benchmarks" ] } + + if (is_linux) { + public_deps += [ + "$flutter_root/shell/platform/common/cpp/client_wrapper:client_wrapper_unittests", + "$flutter_root/shell/platform/glfw/client_wrapper:client_wrapper_glfw_unittests", + ] + } } } diff --git a/engine/src/flutter/shell/platform/BUILD.gn b/engine/src/flutter/shell/platform/BUILD.gn index e8b1ba7d0e..c3bd7569c2 100644 --- a/engine/src/flutter/shell/platform/BUILD.gn +++ b/engine/src/flutter/shell/platform/BUILD.gn @@ -12,7 +12,9 @@ group("platform") { "android", ] } else if (is_linux) { - deps = [] + deps = [ + "linux", + ] } else if (is_win) { deps = [ "windows", diff --git a/engine/src/flutter/shell/platform/linux/BUILD.gn b/engine/src/flutter/shell/platform/linux/BUILD.gn index 28c95e80b2..a86fe7927e 100644 --- a/engine/src/flutter/shell/platform/linux/BUILD.gn +++ b/engine/src/flutter/shell/platform/linux/BUILD.gn @@ -13,10 +13,22 @@ group("linux") { ] } +# Temporary workraround for the issue describe in +# https://github.com/flutter/flutter/issues/14509 and +# https://github.com/flutter/flutter/issues/14438 +# Remove once the build infrastructure moves to Ubuntu 18.04 or newer, where +# the underlying issue is fixed. +config("disable_fatal_link_warnings") { + visibility = [ ":*" ] + ldflags = [ "-Wl,--no-fatal-warnings" ] +} + shared_library("flutter_linux") { deps = [ "$flutter_root/shell/platform/glfw:flutter_glfw", ] + configs += [ ":disable_fatal_link_warnings" ] + public_configs = [ "$flutter_root:config" ] }