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

Side by Side Diff: components/exo/BUILD.gn

Issue 2900773003: Allow gaming_seat to use ozone gamepad as back-end (Closed)
Patch Set: Add gaming_seat_ozone to exo 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 unified diff | Download patch
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//chrome/common/features.gni")
5 import("//build/config/ui.gni") 6 import("//build/config/ui.gni")
6 import("//testing/test.gni") 7 import("//testing/test.gni")
7 8
8 source_set("exo") { 9 source_set("exo") {
9 sources = [ 10 sources = [
10 "buffer.cc", 11 "buffer.cc",
11 "buffer.h", 12 "buffer.h",
12 "compositor_frame_sink_holder.cc", 13 "compositor_frame_sink_holder.cc",
13 "compositor_frame_sink_holder.h", 14 "compositor_frame_sink_holder.h",
14 "display.cc", 15 "display.cc",
15 "display.h", 16 "display.h",
16 "gaming_seat.cc",
17 "gaming_seat.h", 17 "gaming_seat.h",
18 "keyboard.cc", 18 "keyboard.cc",
19 "keyboard.h", 19 "keyboard.h",
20 "keyboard_delegate.h", 20 "keyboard_delegate.h",
21 "keyboard_device_configuration_delegate.h", 21 "keyboard_device_configuration_delegate.h",
22 "notification_surface.cc", 22 "notification_surface.cc",
23 "notification_surface.h", 23 "notification_surface.h",
24 "notification_surface_manager.h", 24 "notification_surface_manager.h",
25 "pointer.cc", 25 "pointer.cc",
26 "pointer.h", 26 "pointer.h",
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 "//ui/display/manager", 63 "//ui/display/manager",
64 "//ui/events/devices:devices", 64 "//ui/events/devices:devices",
65 "//ui/gfx", 65 "//ui/gfx",
66 "//ui/gfx/geometry", 66 "//ui/gfx/geometry",
67 "//ui/gl", 67 "//ui/gl",
68 "//ui/views", 68 "//ui/views",
69 "//ui/views/mus", 69 "//ui/views/mus",
70 "//ui/wm", 70 "//ui/wm",
71 ] 71 ]
72 72
73 if (use_ozone) { 73 if (use_ozone && enable_ozone_gamepad_in_exo) {
reveman 2017/06/05 22:48:03 hm, is use_ozone needed? isn't that automatic from
jkwang 2017/06/06 20:03:06 Done.
74 defines = [ "USE_OZONE_GAMEPAD" ]
75 sources += [ "gaming_seat_ozone.cc" ]
74 deps += [ "//ui/ozone" ] 76 deps += [ "//ui/ozone" ]
77 deps += [ "//ui/events/ozone:events_ozone_evdev" ]
78 } else {
79 sources += [ "gaming_seat.cc" ]
75 } 80 }
76 81
77 if (is_chromeos) { 82 if (is_chromeos) {
78 deps += [ "//chromeos" ] 83 deps += [ "//chromeos" ]
79 } 84 }
80 } 85 }
81 86
82 source_set("test_support") { 87 source_set("test_support") {
83 testonly = true 88 testonly = true
84 89
(...skipping 19 matching lines...) Expand all
104 "//ui/wm:wm", 109 "//ui/wm:wm",
105 ] 110 ]
106 } 111 }
107 112
108 source_set("unit_tests") { 113 source_set("unit_tests") {
109 testonly = true 114 testonly = true
110 115
111 sources = [ 116 sources = [
112 "buffer_unittest.cc", 117 "buffer_unittest.cc",
113 "display_unittest.cc", 118 "display_unittest.cc",
114 "gaming_seat_unittest.cc",
115 "keyboard_unittest.cc", 119 "keyboard_unittest.cc",
116 "pointer_unittest.cc", 120 "pointer_unittest.cc",
117 "shared_memory_unittest.cc", 121 "shared_memory_unittest.cc",
118 "shell_surface_unittest.cc", 122 "shell_surface_unittest.cc",
119 "sub_surface_unittest.cc", 123 "sub_surface_unittest.cc",
120 "surface_unittest.cc", 124 "surface_unittest.cc",
121 "touch_unittest.cc", 125 "touch_unittest.cc",
122 ] 126 ]
123 127
124 deps = [ 128 deps = [
(...skipping 16 matching lines...) Expand all
141 "//ui/aura", 145 "//ui/aura",
142 "//ui/events:dom_keycode_converter", 146 "//ui/events:dom_keycode_converter",
143 "//ui/events:test_support", 147 "//ui/events:test_support",
144 "//ui/gfx", 148 "//ui/gfx",
145 "//ui/keyboard", 149 "//ui/keyboard",
146 "//ui/message_center", 150 "//ui/message_center",
147 "//ui/views", 151 "//ui/views",
148 "//ui/wm", 152 "//ui/wm",
149 ] 153 ]
150 154
151 if (use_ozone) { 155 if (use_ozone && enable_ozone_gamepad_in_exo) {
152 deps += [ "//ui/ozone" ] 156 sources += [
157 "../../ui/events/ozone/gamepad/gamepad_event.cc",
reveman 2017/06/05 22:48:03 I think you can include this unconditionally when
jkwang 2017/06/06 20:03:06 Won't compile. The test case is specific for one i
158 "gaming_seat_ozone_unittest.cc",
159 ]
160 } else {
161 sources += [ "gaming_seat_unittest.cc" ]
153 } 162 }
154 } 163 }
155 164
156 test("exo_unittests") { 165 test("exo_unittests") {
157 sources = [ 166 sources = [
158 "../../ash/test/ash_test_suite.cc", 167 "../../ash/test/ash_test_suite.cc",
159 "../../ash/test/ash_test_suite.h", 168 "../../ash/test/ash_test_suite.h",
160 "test/run_all_unittests.cc", 169 "test/run_all_unittests.cc",
161 ] 170 ]
162 171
(...skipping 15 matching lines...) Expand all
178 data_deps = [ 187 data_deps = [
179 "//ash/strings:ash_test_strings", 188 "//ash/strings:ash_test_strings",
180 "//ash/resources:ash_test_resources_100_percent", 189 "//ash/resources:ash_test_resources_100_percent",
181 "//ash/resources:ash_test_resources_200_percent", 190 "//ash/resources:ash_test_resources_200_percent",
182 ] 191 ]
183 192
184 if (is_linux) { 193 if (is_linux) {
185 deps += [ "//components/exo/wayland:unit_tests" ] 194 deps += [ "//components/exo/wayland:unit_tests" ]
186 } 195 }
187 } 196 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698