[build] Update BUILD.gn to reflect changes in //build/secondary.
This updates the glfw build file so that it matches the one
in //build/secondary.
Bug: BLD-564
Bug: 62290
Change-Id: I86b90367576e8652a8b2d7d243876a762576c6b4
Reviewed-on: https://fuchsia-review.googlesource.com/c/third_party/glfw/+/440920
Reviewed-by: John Rosasco <rosasco@google.com>
diff --git a/BUILD.gn b/BUILD.gn
index 0166f0d..98b79ec 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -16,6 +16,7 @@
cflags += [
"-Wno-int-conversion",
"-Wno-implicit-function-declaration",
+ "-Wno-missing-field-initializers",
"-Wno-sign-compare",
]
}
@@ -41,7 +42,7 @@
"_GLFW_COCOA",
"_GLFW_USE_RETINA",
]
- libs = [
+ frameworks = [
"Cocoa.framework",
"CoreFoundation.framework",
"CoreGraphics.framework",
@@ -70,6 +71,13 @@
"src/x11_window.c",
"src/xkb_unicode.c",
]
+ libs = [
+ "X11",
+ "Xinerama",
+ "Xcursor",
+ "Xrandr",
+ ]
}
public_configs = [ ":glfw_config" ]
+ configs += [ "//build/config:Wno-conversion" ]
}