mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Build GLFW from source for Linux shell (flutter/engine#8327)
Instead of requiring a system-level GLFW, build it from source and statically link it into the Linux shell.
This commit is contained in:
parent
792c41fb98
commit
21ff4f0dd3
2
DEPS
2
DEPS
@ -121,7 +121,7 @@ allowed_hosts = [
|
||||
]
|
||||
|
||||
deps = {
|
||||
'src': 'https://github.com/flutter/buildroot.git' + '@' + 'ee817fb84542865e253bcce1866bc13e4065ca4d',
|
||||
'src': 'https://github.com/flutter/buildroot.git' + '@' + 'ad098fcdb1b41fcf57c22e46e898d0dc04d3a178',
|
||||
|
||||
# Fuchsia compatibility
|
||||
#
|
||||
|
||||
@ -8,4 +8,4 @@
|
||||
|
||||
set -e
|
||||
|
||||
sudo apt-get -y install libglfw3-dev libgtk-3-dev libx11-dev
|
||||
sudo apt-get -y install libgtk-3-dev libx11-dev
|
||||
|
||||
@ -52,6 +52,7 @@ source_set("flutter_glfw") {
|
||||
"$flutter_root/shell/platform/common/cpp/client_wrapper:client_wrapper",
|
||||
"$flutter_root/shell/platform/embedder:embedder",
|
||||
"$flutter_root/shell/platform/glfw/client_wrapper:client_wrapper_glfw",
|
||||
"//build/secondary/third_party/glfw",
|
||||
"//third_party/rapidjson",
|
||||
]
|
||||
|
||||
@ -59,7 +60,6 @@ source_set("flutter_glfw") {
|
||||
libs = [ "GL" ]
|
||||
|
||||
configs += [
|
||||
"$flutter_root/shell/platform/linux/config:glfw3",
|
||||
"$flutter_root/shell/platform/linux/config:gtk3",
|
||||
"$flutter_root/shell/platform/linux/config:x11",
|
||||
]
|
||||
|
||||
@ -4,10 +4,6 @@
|
||||
|
||||
import("//build/config/linux/pkg_config.gni")
|
||||
|
||||
pkg_config("glfw3") {
|
||||
packages = [ "glfw3" ]
|
||||
}
|
||||
|
||||
pkg_config("gtk3") {
|
||||
packages = [ "gtk+-3.0" ]
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user