Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(543)

Unified Diff: ui/events/BUILD.gn

Issue 750593003: Ozone X11 platform Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/events/BUILD.gn
diff --git a/ui/events/BUILD.gn b/ui/events/BUILD.gn
index 44398a6e1fc803082bcf0147432440dbc45d4d21..c3f049c50bc18e0bb89201517de4e7002cef66ea 100644
--- a/ui/events/BUILD.gn
+++ b/ui/events/BUILD.gn
@@ -55,7 +55,7 @@ component("events_base") {
"//ui/gfx/geometry",
]
- if (use_x11) {
+ if (use_x11_backend) {
configs += [ "//build/config/linux:x11" ]
sources += [
@@ -113,7 +113,7 @@ component("events") {
"//ui/gfx/geometry",
]
- if (use_x11) {
+ if (use_x11_backend) {
sources += [ "x/events_x.cc" ]
configs += [
"//build/config/linux:glib",
@@ -135,6 +135,11 @@ component("events") {
}
if (use_ozone) {
+ if (use_ozone_x11) {
+ defines += [
+ "OZONE_X11"
spang 2014/11/24 18:56:54 can we do without this ifdef?
achaulk 2014/11/24 19:28:39 Not easily, events_ozone.cc and events_x.cc both d
+ ]
+ }
sources += [
"ozone/events_ozone.cc",
]
@@ -152,7 +157,7 @@ component("events") {
]
}
- if (is_win || is_mac || use_x11 || use_ozone) {
+ if (is_win || is_mac || use_x11_backend || use_ozone) {
sources -= [ "events_stub.cc" ]
}
}
@@ -257,7 +262,7 @@ source_set("test_support") {
]
}
- if (use_x11) {
+ if (use_x11_backend) {
sources += [
"test/events_test_utils_x11.cc",
"test/events_test_utils_x11.h",
@@ -308,7 +313,7 @@ test("events_unittests") {
"//ui/gfx:test_support",
]
- if (use_x11) {
+ if (use_x11_backend) {
configs += [ "//build/config/linux:x11" ]
deps += [ "//ui/gfx/x" ]
} else {

Powered by Google App Engine
This is Rietveld 408576698