Add GLFW support to //ui/gl

This patch is the first step towards getting the GLFW configuration up and
running.
This commit is contained in:
Adam Barth
2016-03-24 15:40:29 -07:00
parent c1bb1e373c
commit 574d594600
2 changed files with 10 additions and 1 deletions

View File

@@ -103,6 +103,9 @@ config("feature_flags") {
if (use_aura) {
defines += [ "USE_AURA=1" ]
}
if (use_glfw) {
defines += [ "USE_GLFW=1" ]
}
if (use_pango) {
defines += [ "USE_PANGO=1" ]
}

View File

@@ -20,6 +20,12 @@ declare_args() {
# that does not require X11.
use_ozone = false
# Indicates if GLFW is enabled. GLFW is an abstraction layer for the
# windowing system and OpenGL rendering, providing cross-platform support
# for creating windows and OpenGL surfaces and contexts, and handling
# window system events and input.
use_glfw = false
# Support ChromeOS touchpad gestures with ozone.
use_evdev_gestures = false
@@ -51,7 +57,7 @@ ui_compositor_image_transport = use_aura && is_linux
use_default_render_theme = use_aura || is_linux
# Indicates if the UI toolkit depends on X11.
use_x11 = is_linux && !use_ozone
use_x11 = is_linux && !use_ozone && !use_glfw
use_ozone_evdev = use_ozone