File tree 4 files changed +16
-13
lines changed
4 files changed +16
-13
lines changed Original file line number Diff line number Diff line change 14
14
15
15
import (" //third_party/chromium/build/config/linux/pkg_config.gni" )
16
16
17
- pkg_config (" gtk3" ) {
18
- packages = [ " gtk+-3.0" ]
19
- }
20
-
21
17
pkg_config (" epoxy" ) {
22
18
packages = [ " epoxy" ]
23
19
}
24
20
25
- pkg_config (" x11" ) {
26
- packages = [ " x11" ]
21
+ pkg_config (" glfw3" ) {
22
+ packages = [ " glfw3" ]
23
+ }
24
+
25
+ pkg_config (" gtk3" ) {
26
+ packages = [ " gtk+-3.0" ]
27
27
}
28
28
29
29
pkg_config (" jsoncpp" ) {
30
30
packages = [ " jsoncpp" ]
31
31
}
32
+
33
+ pkg_config (" x11" ) {
34
+ packages = [ " x11" ]
35
+ }
Original file line number Diff line number Diff line change @@ -83,14 +83,13 @@ endif
83
83
84
84
# Build settings
85
85
CXX =g++ -std=c++14
86
- CXXFLAGS =-Wall -Werror $(shell pkg-config --cflags jsoncpp)
86
+ CXXFLAGS =-Wall -Werror $(shell pkg-config --cflags jsoncpp glfw3 )
87
87
CPPFLAGS =$(patsubst % ,-I% ,$(INCLUDE_DIRS ) )
88
88
ifdef USE_GN
89
89
CPPFLAGS+ =-DUSE_FLATTENED_INCLUDES
90
90
endif
91
91
LDFLAGS =-L$(OUT_LIB_DIR ) \
92
- -lglfw \
93
- $(shell pkg-config --libs jsoncpp) \
92
+ $(shell pkg-config --libs jsoncpp glfw3) \
94
93
-l$(FLUTTER_EMBEDDER_LIB_NAME ) \
95
94
-l$(FLUTTER_ENGINE_LIB_NAME ) \
96
95
$(patsubst % ,-l$(PLUGIN_LIB_NAME_PREFIX ) % ,$(PLUGIN_NAMES ) ) \
Original file line number Diff line number Diff line change @@ -75,7 +75,6 @@ published_shared_library("flutter_embedder") {
75
75
76
76
if (is_linux ) {
77
77
libs = [
78
- " glfw" ,
79
78
" GL" ,
80
79
]
81
80
@@ -85,6 +84,7 @@ published_shared_library("flutter_embedder") {
85
84
86
85
configs += [
87
86
" //build/linux/config:epoxy" ,
87
+ " //build/linux/config:glfw3" ,
88
88
" //build/linux/config:gtk3" ,
89
89
" //build/linux/config:jsoncpp" ,
90
90
" //build/linux/config:x11" ,
Original file line number Diff line number Diff line change @@ -27,10 +27,10 @@ CXXFLAGS= -Wall -Werror -shared -fPIC -fvisibility=hidden \
27
27
-I$(PROJECT_ROOT ) /library/include \
28
28
-I$(FLUTTER_ENGINE_HEADER_DIR ) \
29
29
-DFLUTTER_DESKTOP_EMBEDDING_IMPL \
30
- $(shell pkg-config --cflags gtk+-3.0 epoxy x11 jsoncpp)
30
+ $(shell pkg-config --cflags gtk+-3.0 epoxy x11 jsoncpp glfw3 )
31
31
LDFLAGS = -L$(CURDIR ) \
32
- $(shell pkg-config --libs gtk+-3.0 epoxy x11 jsoncpp) \
33
- -lglfw - lGL -l$(FLUTTER_ENGINE_LIB_NAME ) \
32
+ $(shell pkg-config --libs gtk+-3.0 epoxy x11 jsoncpp glfw3 ) \
33
+ -lGL -l$(FLUTTER_ENGINE_LIB_NAME ) \
34
34
-Wl,-rpath=$(CURDIR )
35
35
36
36
You can’t perform that action at this time.
0 commit comments