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

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

Issue 1908473002: Split //ui/events/devices into two targets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More deps on new target. Created 4 years, 8 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/base/ui_base.gyp ('k') | ui/events/devices/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 import("//testing/test.gni") 6 import("//testing/test.gni")
7 import("//ui/ozone/ozone.gni") 7 import("//ui/ozone/ozone.gni")
8 8
9 if (is_android) { 9 if (is_android) {
10 import("//build/config/android/rules.gni") 10 import("//build/config/android/rules.gni")
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 ] 158 ]
159 159
160 if (use_x11) { 160 if (use_x11) {
161 sources += [ "x/events_x.cc" ] 161 sources += [ "x/events_x.cc" ]
162 configs += [ 162 configs += [
163 "//build/config/linux:glib", 163 "//build/config/linux:glib",
164 "//build/config/linux:x11", 164 "//build/config/linux:x11",
165 ] 165 ]
166 deps += [ 166 deps += [
167 "//ui/events/devices", 167 "//ui/events/devices",
168 "//ui/events/devices/x11",
168 "//ui/gfx/x", 169 "//ui/gfx/x",
169 ] 170 ]
170 } 171 }
171 172
172 if (use_x11 || ozone_platform_x11) { 173 if (use_x11 || ozone_platform_x11) {
173 deps += [ "//ui/events/x" ] 174 deps += [ "//ui/events/x" ]
174 } 175 }
175 176
176 if (!is_chromeos && is_linux) { 177 if (!is_chromeos && is_linux) {
177 sources += [ 178 sources += [
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 "test/cocoa_test_event_utils.mm", 332 "test/cocoa_test_event_utils.mm",
332 ] 333 ]
333 } 334 }
334 335
335 if (use_x11) { 336 if (use_x11) {
336 sources += [ 337 sources += [
337 "test/events_test_utils_x11.cc", 338 "test/events_test_utils_x11.cc",
338 "test/events_test_utils_x11.h", 339 "test/events_test_utils_x11.h",
339 ] 340 ]
340 deps += [ 341 deps += [
341 "//ui/events/devices", 342 "//ui/events/devices/x11",
342 "//ui/gfx/x", 343 "//ui/gfx/x",
343 ] 344 ]
344 } 345 }
345 346
346 if (use_x11 || use_ozone) { 347 if (use_x11 || use_ozone) {
347 sources += [ "test/device_data_manager_test_api_impl.cc" ] 348 sources += [ "test/device_data_manager_test_api_impl.cc" ]
348 deps += [ "//ui/events/devices" ] 349 deps += [ "//ui/events/devices" ]
349 } else { 350 } else {
350 sources += [ "test/device_data_manager_test_api_stub.cc" ] 351 sources += [ "test/device_data_manager_test_api_stub.cc" ]
351 } 352 }
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 419
419 include_dirs = [ "//testing/gmock/include" ] 420 include_dirs = [ "//testing/gmock/include" ]
420 421
421 if (use_x11) { 422 if (use_x11) {
422 sources += [ 423 sources += [
423 "devices/x11/device_data_manager_x11_unittest.cc", 424 "devices/x11/device_data_manager_x11_unittest.cc",
424 "x/events_x_unittest.cc", 425 "x/events_x_unittest.cc",
425 ] 426 ]
426 configs += [ "//build/config/linux:x11" ] 427 configs += [ "//build/config/linux:x11" ]
427 deps += [ 428 deps += [
429 "//ui/events/devices/x11",
428 "//ui/events/x", 430 "//ui/events/x",
429 "//ui/gfx/x", 431 "//ui/gfx/x",
430 ] 432 ]
431 } 433 }
432 434
433 if (use_ozone) { 435 if (use_ozone) {
434 sources += [ 436 sources += [
435 "ozone/chromeos/cursor_controller_unittest.cc", 437 "ozone/chromeos/cursor_controller_unittest.cc",
436 "ozone/evdev/event_converter_evdev_impl_unittest.cc", 438 "ozone/evdev/event_converter_evdev_impl_unittest.cc",
437 "ozone/evdev/event_converter_test_util.cc", 439 "ozone/evdev/event_converter_test_util.cc",
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 generate_jar_jni("motionevent_jni_headers") { 479 generate_jar_jni("motionevent_jni_headers") {
478 jni_package = "ui" 480 jni_package = "ui"
479 classes = [ "android/view/MotionEvent.class" ] 481 classes = [ "android/view/MotionEvent.class" ]
480 } 482 }
481 483
482 generate_jar_jni("keyevent_jni_headers") { 484 generate_jar_jni("keyevent_jni_headers") {
483 jni_package = "ui" 485 jni_package = "ui"
484 classes = [ "android/view/KeyEvent.class" ] 486 classes = [ "android/view/KeyEvent.class" ]
485 } 487 }
486 } 488 }
OLDNEW
« no previous file with comments | « ui/base/ui_base.gyp ('k') | ui/events/devices/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698