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

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

Issue 322983002: Add GN Build file for ui/events/ozone. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sort Created 6 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 | Annotate | Revision Log
« no previous file with comments | « device/udev_linux/BUILD.gn ('k') | ui/gfx/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
(Empty)
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
3 # found in the LICENSE file.
4
5 import("//build/config/features.gni")
6 import("//build/config/ui.gni")
7
8 component("events_ozone") {
9 sources = [
10 "device/device_event.cc",
11 "device/device_event.h",
12 "device/device_event_observer.h",
13 "device/device_manager.cc",
14 "device/device_manager.h",
15 "device/device_manager_manual.cc",
16 "device/device_manager_manual.h",
17 "device/udev/device_manager_udev.cc",
18 "device/udev/device_manager_udev.h",
19 "event_factory_ozone.cc",
20 "event_factory_ozone.h",
21 "events_ozone_export.h",
22 ]
23
24 deps = [
25 "//base",
26 ]
27
28 defines = [
29 "EVENTS_OZONE_IMPLEMENTATION",
30 ]
31
32 if (!use_udev) {
33 sources_assignment_filter += [
brettw 2014/06/10 05:13:18 This won't actually work since the filter is only
tfarina 2014/06/10 05:24:37 Done.
34 "*_udev\\.(h|cc)$",
35 ]
36 }
37
38 if (use_ozone_evdev && use_udev) {
39 deps += [
40 "//device/udev_linux",
41 ]
42 }
43 }
44
45 component("events_ozone_evdev") {
46 sources = [
47 "evdev/libgestures_glue/event_reader_libevdev_cros.cc",
48 "evdev/libgestures_glue/event_reader_libevdev_cros.h",
49 "evdev/libgestures_glue/gesture_interpreter_libevdev_cros.cc",
50 "evdev/libgestures_glue/gesture_interpreter_libevdev_cros.h",
51 "evdev/libgestures_glue/gesture_logging.cc",
52 "evdev/libgestures_glue/gesture_logging.h",
53 "evdev/libgestures_glue/gesture_timer_provider.cc",
54 "evdev/libgestures_glue/gesture_timer_provider.h",
55 "evdev/event_converter_evdev.cc",
56 "evdev/event_converter_evdev.h",
57 "evdev/event_device_info.cc",
58 "evdev/event_device_info.h",
59 "evdev/event_factory_evdev.cc",
60 "evdev/event_factory_evdev.h",
61 "evdev/event_modifiers_evdev.cc",
62 "evdev/event_modifiers_evdev.h",
63 "evdev/events_ozone_evdev_export.h",
64 "evdev/key_event_converter_evdev.cc",
65 "evdev/key_event_converter_evdev.h",
66 "evdev/touch_event_converter_evdev.cc",
67 "evdev/touch_event_converter_evdev.h",
68 ]
69
70 defines = [
71 "EVENTS_OZONE_EVDEV_IMPLEMENTATION",
72 ]
73
74 deps = [
75 "//base",
76 "//ui/events/platform",
77 "//ui/gfx",
78 ":events_ozone",
79 ]
80
81 if (use_ozone_evdev) {
82 defines += [
83 "USE_OZONE_EVDEV=1"
84 ]
85 }
86
87 if (use_ozone_evdev && use_evdev_gestures) {
88 configs += [
89 "//build/config/linux:libevdev-cros",
90 "//build/config/linux:libgestures",
91 ]
92
93 defines += [
94 "USE_EVDEV_GESTURES",
95 ]
96 } else {
97 sources_assignment_filter += [
brettw 2014/06/10 05:13:18 Ditto here that this doesn't work. Since this is
tfarina 2014/06/10 05:24:37 Done.
98 "^evdev/libgestures_glue/",
99 ]
100 }
101 }
OLDNEW
« no previous file with comments | « device/udev_linux/BUILD.gn ('k') | ui/gfx/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698