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

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

Issue 773283006: Run gn format on all BUILD.gn files (gn version 306668) (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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/features.gni") 5 import("//build/config/features.gni")
6 import("//build/config/ui.gni") 6 import("//build/config/ui.gni")
7 7
8 component("events_ozone") { 8 component("events_ozone") {
9 sources = [ 9 sources = [
10 "device/device_event.cc", 10 "device/device_event.cc",
11 "device/device_event.h", 11 "device/device_event.h",
12 "device/device_event_observer.h", 12 "device/device_event_observer.h",
13 "device/device_manager.cc", 13 "device/device_manager.cc",
14 "device/device_manager.h", 14 "device/device_manager.h",
15 "device/device_manager_manual.cc", 15 "device/device_manager_manual.cc",
16 "device/device_manager_manual.h", 16 "device/device_manager_manual.h",
17 "device/udev/device_manager_udev.cc", 17 "device/udev/device_manager_udev.cc",
18 "device/udev/device_manager_udev.h", 18 "device/udev/device_manager_udev.h",
19 "events_ozone_export.h", 19 "events_ozone_export.h",
20 ] 20 ]
21 21
22 deps = [ 22 deps = [
23 "//base", 23 "//base",
24 ] 24 ]
25 25
26 defines = [ 26 defines = [ "EVENTS_OZONE_IMPLEMENTATION" ]
27 "EVENTS_OZONE_IMPLEMENTATION",
28 ]
29 27
30 if (!use_udev) { 28 if (!use_udev) {
31 sources -= [ 29 sources -= [
32 "device/udev/device_manager_udev.cc", 30 "device/udev/device_manager_udev.cc",
33 "device/udev/device_manager_udev.h", 31 "device/udev/device_manager_udev.h",
34 ] 32 ]
35 } 33 }
36 34
37 if (use_ozone_evdev && use_udev) { 35 if (use_ozone_evdev && use_udev) {
38 deps += [ 36 deps += [ "//device/udev_linux" ]
39 "//device/udev_linux",
40 ]
41 } 37 }
42 } 38 }
43 39
44 component("events_ozone_evdev") { 40 component("events_ozone_evdev") {
45 sources = [ 41 sources = [
46 "evdev/event_converter_evdev.cc", 42 "evdev/event_converter_evdev.cc",
47 "evdev/event_converter_evdev.h", 43 "evdev/event_converter_evdev.h",
48 "evdev/event_device_info.cc", 44 "evdev/event_device_info.cc",
49 "evdev/event_device_info.h", 45 "evdev/event_device_info.h",
50 "evdev/event_factory_evdev.cc", 46 "evdev/event_factory_evdev.cc",
51 "evdev/event_factory_evdev.h", 47 "evdev/event_factory_evdev.h",
52 "evdev/event_modifiers_evdev.cc", 48 "evdev/event_modifiers_evdev.cc",
53 "evdev/event_modifiers_evdev.h", 49 "evdev/event_modifiers_evdev.h",
54 "evdev/events_ozone_evdev_export.h", 50 "evdev/events_ozone_evdev_export.h",
55 "evdev/key_event_converter_evdev.cc", 51 "evdev/key_event_converter_evdev.cc",
56 "evdev/key_event_converter_evdev.h", 52 "evdev/key_event_converter_evdev.h",
57 "evdev/touch_event_converter_evdev.cc", 53 "evdev/touch_event_converter_evdev.cc",
58 "evdev/touch_event_converter_evdev.h", 54 "evdev/touch_event_converter_evdev.h",
59 ] 55 ]
60 56
61 defines = [ 57 defines = [ "EVENTS_OZONE_EVDEV_IMPLEMENTATION" ]
62 "EVENTS_OZONE_EVDEV_IMPLEMENTATION",
63 ]
64 58
65 deps = [ 59 deps = [
66 ":events_ozone", 60 ":events_ozone",
67 "//base", 61 "//base",
68 "//ui/events/platform", 62 "//ui/events/platform",
69 "//ui/gfx", 63 "//ui/gfx",
70 ] 64 ]
71 65
72 if (use_ozone_evdev) { 66 if (use_ozone_evdev) {
73 defines += [ 67 defines += [ "USE_OZONE_EVDEV=1" ]
74 "USE_OZONE_EVDEV=1"
75 ]
76 } 68 }
77 69
78 if (use_ozone_evdev && use_evdev_gestures) { 70 if (use_ozone_evdev && use_evdev_gestures) {
79 sources += [ 71 sources += [
80 "evdev/libgestures_glue/event_reader_libevdev_cros.cc", 72 "evdev/libgestures_glue/event_reader_libevdev_cros.cc",
81 "evdev/libgestures_glue/event_reader_libevdev_cros.h", 73 "evdev/libgestures_glue/event_reader_libevdev_cros.h",
82 "evdev/libgestures_glue/gesture_interpreter_libevdev_cros.cc", 74 "evdev/libgestures_glue/gesture_interpreter_libevdev_cros.cc",
83 "evdev/libgestures_glue/gesture_interpreter_libevdev_cros.h", 75 "evdev/libgestures_glue/gesture_interpreter_libevdev_cros.h",
84 "evdev/libgestures_glue/gesture_logging.cc", 76 "evdev/libgestures_glue/gesture_logging.cc",
85 "evdev/libgestures_glue/gesture_logging.h", 77 "evdev/libgestures_glue/gesture_logging.h",
86 "evdev/libgestures_glue/gesture_timer_provider.cc", 78 "evdev/libgestures_glue/gesture_timer_provider.cc",
87 "evdev/libgestures_glue/gesture_timer_provider.h", 79 "evdev/libgestures_glue/gesture_timer_provider.h",
88 ] 80 ]
89 81
90 defines += [ 82 defines += [ "USE_EVDEV_GESTURES" ]
91 "USE_EVDEV_GESTURES",
92 ]
93 83
94 configs += [ 84 configs += [
95 "//build/config/linux:libevdev-cros", 85 "//build/config/linux:libevdev-cros",
96 "//build/config/linux:libgestures", 86 "//build/config/linux:libgestures",
97 ] 87 ]
98 } 88 }
99 } 89 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698