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

Unified Diff: components/exo/BUILD.gn

Issue 2900773003: Allow gaming_seat to use ozone gamepad as back-end (Closed)
Patch Set: Allow gaming_seat to use ozone gamepad as backend Created 3 years, 6 months 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
« no previous file with comments | « chrome/common/features.gni ('k') | components/exo/gaming_seat.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/BUILD.gn
diff --git a/components/exo/BUILD.gn b/components/exo/BUILD.gn
index 889fb7b8d59f30aea7ae75b1a495a27fcf96144a..1829941fe3bbbf2f83054951c241c3a70573d319 100644
--- a/components/exo/BUILD.gn
+++ b/components/exo/BUILD.gn
@@ -2,6 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import("//chrome/common/features.gni")
import("//build/config/ui.gni")
import("//testing/test.gni")
@@ -13,7 +14,6 @@ source_set("exo") {
"compositor_frame_sink_holder.h",
"display.cc",
"display.h",
- "gaming_seat.cc",
"gaming_seat.h",
"keyboard.cc",
"keyboard.h",
@@ -71,8 +71,13 @@ source_set("exo") {
"//ui/wm/public",
]
- if (use_ozone) {
+ if (enable_exo_ozone_gamepad) {
+ defines = [ "USE_OZONE_GAMEPAD" ]
+ sources += [ "gaming_seat_ozone.cc" ]
deps += [ "//ui/ozone" ]
+ deps += [ "//ui/events/ozone:events_ozone_evdev" ]
+ } else {
+ sources += [ "gaming_seat.cc" ]
}
if (is_chromeos) {
@@ -112,7 +117,6 @@ source_set("unit_tests") {
sources = [
"buffer_unittest.cc",
"display_unittest.cc",
- "gaming_seat_unittest.cc",
"keyboard_unittest.cc",
"pointer_unittest.cc",
"shared_memory_unittest.cc",
@@ -152,6 +156,14 @@ source_set("unit_tests") {
if (use_ozone) {
deps += [ "//ui/ozone" ]
}
+
+ if (enable_exo_ozone_gamepad) {
+ sources += [
+ "../../ui/events/ozone/gamepad/gamepad_event.cc",
+ "gaming_seat_unittest.cc",
+ ]
+ deps += [ "//ui/events/ozone:events_ozone_evdev" ]
+ }
}
test("exo_unittests") {
« no previous file with comments | « chrome/common/features.gni ('k') | components/exo/gaming_seat.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698