未验证 提交 8412c199 编写于 作者: S stuartmorgan 提交者: GitHub

Enable Linux shell build (#8233)

Enables building of the GLFW shell and the related unit tests.
上级 13390119
......@@ -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",
]
}
}
}
......
......@@ -12,7 +12,9 @@ group("platform") {
"android",
]
} else if (is_linux) {
deps = []
deps = [
"linux",
]
} else if (is_win) {
deps = [
"windows",
......
......@@ -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" ]
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册