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

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

Issue 513313002: Fix most of the "gn check" errors in ui/* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Android GN build 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
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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 "x/device_list_cache_x.h", 65 "x/device_list_cache_x.h",
66 "x/keysym_to_unicode.cc", 66 "x/keysym_to_unicode.cc",
67 "x/keysym_to_unicode.h", 67 "x/keysym_to_unicode.h",
68 "x/touch_factory_x11.cc", 68 "x/touch_factory_x11.cc",
69 "x/touch_factory_x11.h", 69 "x/touch_factory_x11.h",
70 ] 70 ]
71 } 71 }
72 } 72 }
73 73
74 component("events") { 74 component("events") {
75 deps = [
76 ":dom4_keycode_converter",
77 ":events_base",
78 ":gesture_detection",
79 "//base/third_party/dynamic_annotations",
80 "//skia",
81 "//ui/gfx",
82 "//ui/gfx/geometry",
83 ]
84
85 defines = [ "EVENTS_IMPLEMENTATION" ]
86
87 sources = [ 75 sources = [
88 "cocoa/cocoa_event_utils.h", 76 "cocoa/cocoa_event_utils.h",
89 "cocoa/cocoa_event_utils.mm", 77 "cocoa/cocoa_event_utils.mm",
90 "cocoa/events_mac.mm", 78 "cocoa/events_mac.mm",
91 "event.cc", 79 "event.cc",
92 "event.h", 80 "event.h",
93 "event_dispatcher.cc", 81 "event_dispatcher.cc",
94 "event_dispatcher.h", 82 "event_dispatcher.h",
95 "event_handler.cc", 83 "event_handler.cc",
96 "event_handler.h", 84 "event_handler.h",
(...skipping 10 matching lines...) Expand all
107 "event_utils.cc", 95 "event_utils.cc",
108 "event_utils.h", 96 "event_utils.h",
109 "events_export.h", 97 "events_export.h",
110 "events_stub.cc", 98 "events_stub.cc",
111 "gestures/gesture_recognizer_impl_mac.cc", 99 "gestures/gesture_recognizer_impl_mac.cc",
112 "gestures/gesture_types.h", 100 "gestures/gesture_types.h",
113 "win/events_win.cc", 101 "win/events_win.cc",
114 "x/events_x.cc", 102 "x/events_x.cc",
115 ] 103 ]
116 104
105 defines = [ "EVENTS_IMPLEMENTATION" ]
tfarina 2014/08/28 17:54:03 thanks for reordering this.
106
107 deps = [
108 ":dom4_keycode_converter",
109 ":events_base",
110 ":gesture_detection",
111 "//base/third_party/dynamic_annotations",
112 "//skia",
113 "//ui/gfx",
114 "//ui/gfx/geometry",
115 ]
116
117 forward_dependent_configs_from = [ ":events_base" ]
118
117 if (use_x11) { 119 if (use_x11) {
118 configs += [ 120 configs += [
119 "//build/config/linux:glib", 121 "//build/config/linux:glib",
120 "//build/config/linux:x11", 122 "//build/config/linux:x11",
121 ] 123 ]
122 } else { 124 } else {
123 sources -= [ 125 sources -= [
124 "x/events_x.cc", 126 "x/events_x.cc",
125 ] 127 ]
126 } 128 }
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 "test/platform_event_waiter.h", 226 "test/platform_event_waiter.h",
225 "test/test_event_handler.cc", 227 "test/test_event_handler.cc",
226 "test/test_event_handler.h", 228 "test/test_event_handler.h",
227 "test/test_event_processor.cc", 229 "test/test_event_processor.cc",
228 "test/test_event_processor.h", 230 "test/test_event_processor.h",
229 "test/test_event_target.cc", 231 "test/test_event_target.cc",
230 "test/test_event_target.h", 232 "test/test_event_target.h",
231 ] 233 ]
232 234
233 deps = [ 235 deps = [
236 ":events",
237 ":events_base",
238 ":gesture_detection",
234 "//base", 239 "//base",
235 "//skia", 240 "//skia",
236 "//ui/events/platform", 241 "//ui/events/platform",
237 "//ui/gfx/geometry", 242 "//ui/gfx/geometry",
238 ":events",
239 ":events_base",
240 ":gesture_detection",
241 ] 243 ]
242 244
243 if (is_ios) { 245 if (is_ios) {
244 sources -= [ 246 sources -= [
245 "test/cocoa_test_event_utils.h", 247 "test/cocoa_test_event_utils.h",
246 "test/cocoa_test_event_utils.mm", 248 "test/cocoa_test_event_utils.mm",
247 ] 249 ]
248 } 250 }
249 251
250 if (!use_x11) { 252 if (!use_x11) {
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 "ozone/evdev/touch_event_converter_evdev_unittest.cc", 306 "ozone/evdev/touch_event_converter_evdev_unittest.cc",
305 ] 307 ]
306 } 308 }
307 309
308 if (use_aura) { 310 if (use_aura) {
309 sources += [ 311 sources += [
310 "gestures/gesture_provider_aura_unittest.cc", 312 "gestures/gesture_provider_aura_unittest.cc",
311 ] 313 ]
312 } 314 }
313 } 315 }
OLDNEW
« ui/base/ime/BUILD.gn ('K') | « ui/compositor/BUILD.gn ('k') | ui/events/ipc/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698