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

Side by Side Diff: ui/events/BUILD.gn

Issue 584683002: Improve GN header checker, make //ui pass. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 6 years, 3 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
« no previous file with comments | « ui/display/BUILD.gn ('k') | ui/events/platform/x11/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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("//build/config/ui.gni") 5 import("//build/config/ui.gni")
6 6
7 static_library("dom4_keycode_converter") { 7 static_library("dom4_keycode_converter") {
8 sources = [ 8 sources = [
9 "keycodes/dom4/keycode_converter.cc", 9 "keycodes/dom4/keycode_converter.cc",
10 "keycodes/dom4/keycode_converter.h", 10 "keycodes/dom4/keycode_converter.h",
(...skipping 28 matching lines...) Expand all
39 "latency_info.cc", 39 "latency_info.cc",
40 "latency_info.h", 40 "latency_info.h",
41 "touchscreen_device.cc", 41 "touchscreen_device.cc",
42 "touchscreen_device.h", 42 "touchscreen_device.h",
43 ] 43 ]
44 44
45 defines = [ "EVENTS_BASE_IMPLEMENTATION" ] 45 defines = [ "EVENTS_BASE_IMPLEMENTATION" ]
46 46
47 deps = [ 47 deps = [
48 ":dom4_keycode_converter", 48 ":dom4_keycode_converter",
49 "//base",
50 "//base/third_party/dynamic_annotations", 49 "//base/third_party/dynamic_annotations",
51 "//skia", 50 "//skia",
51 ]
52
53 public_deps = [
54 "//base",
52 "//ui/events/platform", 55 "//ui/events/platform",
53 "//ui/gfx", 56 "//ui/gfx",
54 "//ui/gfx/geometry", 57 "//ui/gfx/geometry",
55 ] 58 ]
56 59
57 forward_dependent_configs_from = [ "//ui/gfx" ]
58
59 if (use_x11) { 60 if (use_x11) {
60 configs += [ "//build/config/linux:x11" ] 61 configs += [ "//build/config/linux:x11" ]
61 62
62 sources += [ 63 sources += [
63 "keycodes/keyboard_code_conversion_x.cc", 64 "keycodes/keyboard_code_conversion_x.cc",
64 "keycodes/keyboard_code_conversion_x.h", 65 "keycodes/keyboard_code_conversion_x.h",
65 "x/device_data_manager_x11.cc", 66 "x/device_data_manager_x11.cc",
66 "x/device_data_manager_x11.h", 67 "x/device_data_manager_x11.h",
67 "x/device_list_cache_x.cc", 68 "x/device_list_cache_x.cc",
68 "x/device_list_cache_x.h", 69 "x/device_list_cache_x.h",
69 "x/hotplug_event_handler_x11.cc", 70 "x/hotplug_event_handler_x11.cc",
70 "x/hotplug_event_handler_x11.h", 71 "x/hotplug_event_handler_x11.h",
71 "x/keysym_to_unicode.cc", 72 "x/keysym_to_unicode.cc",
72 "x/keysym_to_unicode.h", 73 "x/keysym_to_unicode.h",
73 "x/touch_factory_x11.cc", 74 "x/touch_factory_x11.cc",
74 "x/touch_factory_x11.h", 75 "x/touch_factory_x11.h",
75 ] 76 ]
77
78 deps += [ "//ui/gfx/x" ]
76 } 79 }
77 } 80 }
78 81
79 component("events") { 82 component("events") {
80 sources = [ 83 sources = [
81 "cocoa/cocoa_event_utils.h", 84 "cocoa/cocoa_event_utils.h",
82 "cocoa/cocoa_event_utils.mm", 85 "cocoa/cocoa_event_utils.mm",
83 "cocoa/events_mac.mm", 86 "cocoa/events_mac.mm",
84 "event.cc", 87 "event.cc",
85 "event.h", 88 "event.h",
(...skipping 11 matching lines...) Expand all
97 "event_target_iterator.h", 100 "event_target_iterator.h",
98 "event_targeter.cc", 101 "event_targeter.cc",
99 "event_targeter.h", 102 "event_targeter.h",
100 "event_utils.cc", 103 "event_utils.cc",
101 "event_utils.h", 104 "event_utils.h",
102 "events_export.h", 105 "events_export.h",
103 "events_stub.cc", 106 "events_stub.cc",
104 "gestures/gesture_recognizer_impl_mac.cc", 107 "gestures/gesture_recognizer_impl_mac.cc",
105 "gestures/gesture_types.h", 108 "gestures/gesture_types.h",
106 "win/events_win.cc", 109 "win/events_win.cc",
107 "x/events_x.cc",
108 ] 110 ]
109 111
110 defines = [ "EVENTS_IMPLEMENTATION" ] 112 defines = [ "EVENTS_IMPLEMENTATION" ]
111 113
114 public_deps = [
115 ":events_base",
116 ]
112 deps = [ 117 deps = [
113 ":dom4_keycode_converter", 118 ":dom4_keycode_converter",
114 ":events_base",
115 ":gesture_detection", 119 ":gesture_detection",
116 "//base/third_party/dynamic_annotations", 120 "//base/third_party/dynamic_annotations",
117 "//skia", 121 "//skia",
118 "//ui/gfx", 122 "//ui/gfx",
119 "//ui/gfx/geometry", 123 "//ui/gfx/geometry",
120 ] 124 ]
121 125
122 forward_dependent_configs_from = [ ":events_base" ] 126 forward_dependent_configs_from = [ ":events_base" ]
123 127
124 if (use_x11) { 128 if (use_x11) {
129 sources += [ "x/events_x.cc" ]
125 configs += [ 130 configs += [
126 "//build/config/linux:glib", 131 "//build/config/linux:glib",
127 "//build/config/linux:x11", 132 "//build/config/linux:x11",
128 ] 133 ]
129 } else { 134 deps += [ "//ui/gfx/x" ]
130 sources -= [
131 "x/events_x.cc",
132 ]
133 } 135 }
134 136
135 if (!is_chromeos && is_linux) { 137 if (!is_chromeos && is_linux) {
136 sources += [ 138 sources += [
137 "linux/text_edit_command_auralinux.cc", 139 "linux/text_edit_command_auralinux.cc",
138 "linux/text_edit_command_auralinux.h", 140 "linux/text_edit_command_auralinux.h",
139 "linux/text_edit_key_bindings_delegate_auralinux.cc", 141 "linux/text_edit_key_bindings_delegate_auralinux.cc",
140 "linux/text_edit_key_bindings_delegate_auralinux.h", 142 "linux/text_edit_key_bindings_delegate_auralinux.h",
141 ] 143 ]
142 } 144 }
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 } 220 }
219 221
220 source_set("test_support") { 222 source_set("test_support") {
221 sources = [ 223 sources = [
222 "test/cocoa_test_event_utils.h", 224 "test/cocoa_test_event_utils.h",
223 "test/cocoa_test_event_utils.mm", 225 "test/cocoa_test_event_utils.mm",
224 "test/event_generator.cc", 226 "test/event_generator.cc",
225 "test/event_generator.h", 227 "test/event_generator.h",
226 "test/events_test_utils.cc", 228 "test/events_test_utils.cc",
227 "test/events_test_utils.h", 229 "test/events_test_utils.h",
228 "test/events_test_utils_x11.cc",
229 "test/events_test_utils_x11.h",
230 "test/mock_motion_event.cc", 230 "test/mock_motion_event.cc",
231 "test/mock_motion_event.h", 231 "test/mock_motion_event.h",
232 "test/platform_event_waiter.cc", 232 "test/platform_event_waiter.cc",
233 "test/platform_event_waiter.h", 233 "test/platform_event_waiter.h",
234 "test/test_event_handler.cc", 234 "test/test_event_handler.cc",
235 "test/test_event_handler.h", 235 "test/test_event_handler.h",
236 "test/test_event_processor.cc", 236 "test/test_event_processor.cc",
237 "test/test_event_processor.h", 237 "test/test_event_processor.h",
238 "test/test_event_target.cc", 238 "test/test_event_target.cc",
239 "test/test_event_target.h", 239 "test/test_event_target.h",
240 ] 240 ]
241 241
242 deps = [ 242 public_deps = [
243 ":events", 243 ":events",
244 ":events_base", 244 ":events_base",
245 ":gesture_detection", 245 ":gesture_detection",
246 ]
247 deps = [
246 "//base", 248 "//base",
247 "//skia", 249 "//skia",
248 "//ui/events/platform", 250 "//ui/events/platform",
249 "//ui/gfx/geometry", 251 "//ui/gfx/geometry",
250 ] 252 ]
251 253
252 if (is_ios) { 254 if (is_ios) {
253 sources -= [ 255 sources -= [
254 "test/cocoa_test_event_utils.h", 256 "test/cocoa_test_event_utils.h",
255 "test/cocoa_test_event_utils.mm", 257 "test/cocoa_test_event_utils.mm",
256 ] 258 ]
257 } 259 }
258 260
259 if (!use_x11) { 261 if (use_x11) {
260 sources -= [ 262 sources += [
261 "test/events_test_utils_x11.cc", 263 "test/events_test_utils_x11.cc",
262 "test/events_test_utils_x11.h", 264 "test/events_test_utils_x11.h",
263 ] 265 ]
266 deps += [ "//ui/gfx/x" ]
264 } 267 }
265 } 268 }
266 269
267 test("events_unittests") { 270 test("events_unittests") {
268 sources = [ 271 sources = [
269 "cocoa/events_mac_unittest.mm", 272 "cocoa/events_mac_unittest.mm",
270 "event_dispatcher_unittest.cc", 273 "event_dispatcher_unittest.cc",
271 "event_processor_unittest.cc", 274 "event_processor_unittest.cc",
272 "event_rewriter_unittest.cc", 275 "event_rewriter_unittest.cc",
273 "event_unittest.cc", 276 "event_unittest.cc",
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 "ozone/evdev/touch_event_converter_evdev_unittest.cc", 316 "ozone/evdev/touch_event_converter_evdev_unittest.cc",
314 ] 317 ]
315 } 318 }
316 319
317 if (use_aura) { 320 if (use_aura) {
318 sources += [ 321 sources += [
319 "gestures/gesture_provider_aura_unittest.cc", 322 "gestures/gesture_provider_aura_unittest.cc",
320 ] 323 ]
321 } 324 }
322 } 325 }
OLDNEW
« no previous file with comments | « ui/display/BUILD.gn ('k') | ui/events/platform/x11/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698