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

Side by Side Diff: remoting/client/input/BUILD.gn

Issue 2900203002: Moving input filter files and keymap to input directory. (Closed)
Patch Set: Merged again. Created 3 years, 7 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 source_set("input") { 5 source_set("input") {
6 sources = [ 6 sources = [
7 "client_input_injector.h", 7 "client_input_injector.h",
8 "direct_input_strategy.cc", 8 "direct_input_strategy.cc",
9 "direct_input_strategy.h", 9 "direct_input_strategy.h",
10 "input_strategy.h", 10 "input_strategy.h",
11 "key_event_mapper.cc",
12 "key_event_mapper.h",
11 "keyboard_input_strategy.h", 13 "keyboard_input_strategy.h",
12 "keyboard_interpreter.cc", 14 "keyboard_interpreter.cc",
13 "keyboard_interpreter.h", 15 "keyboard_interpreter.h",
14 "native_device_keymap.cc", 16 "native_device_keymap.cc",
15 "native_device_keymap.h", 17 "native_device_keymap.h",
16 "native_device_keymap_android.cc", 18 "native_device_keymap_android.cc",
17 "native_device_keymap_ios.cc", 19 "native_device_keymap_ios.cc",
18 "text_keyboard_input_strategy.cc", 20 "text_keyboard_input_strategy.cc",
19 "text_keyboard_input_strategy.h", 21 "text_keyboard_input_strategy.h",
20 "touch_input_scaler.cc", 22 "touch_input_scaler.cc",
21 "touch_input_scaler.h", 23 "touch_input_scaler.h",
22 "trackpad_input_strategy.cc", 24 "trackpad_input_strategy.cc",
23 "trackpad_input_strategy.h", 25 "trackpad_input_strategy.h",
24 ] 26 ]
25 27
26 deps = [ 28 deps = [
29 ":normalizing_input_filter",
27 "//remoting/base", 30 "//remoting/base",
28 "//remoting/client/ui:ui_manipulation", 31 "//remoting/client/ui:ui_manipulation",
29 "//third_party/webrtc/base:rtc_base_approved", 32 "//third_party/webrtc/base:rtc_base_approved",
30 "//ui/events:dom_keycode_converter", 33 "//ui/events:dom_keycode_converter",
31 ] 34 ]
32 35
33 if (is_android || is_ios) { 36 if (is_android || is_ios) {
34 sources -= [ "native_device_keymap.cc" ] 37 sources -= [ "native_device_keymap.cc" ]
35 } 38 }
36 } 39 }
37 40
41 source_set("normalizing_input_filter") {
42 # Disabled the source filters because there are _mac files that need to
43 # be compiled on all platforms.
44 set_sources_assignment_filter([])
45 sources = [
46 "normalizing_input_filter_cros.cc",
47 "normalizing_input_filter_cros.h",
48 "normalizing_input_filter_mac.cc",
49 "normalizing_input_filter_mac.h",
50 "normalizing_input_filter_win.cc",
51 "normalizing_input_filter_win.h",
52 ]
53 set_sources_assignment_filter(sources_assignment_filter)
54
55 deps = [
56 "//remoting/base",
57 "//third_party/webrtc/base:rtc_base_approved",
58 "//third_party/webrtc/modules/desktop_capture:primitives",
59 "//ui/events:dom_keycode_converter",
60 ]
61 }
62
38 source_set("unit_tests") { 63 source_set("unit_tests") {
39 testonly = true 64 testonly = true
40 65
41 sources = [ 66 sources = [
67 "key_event_mapper_unittest.cc",
42 "touch_input_scaler_unittest.cc", 68 "touch_input_scaler_unittest.cc",
43 ] 69 ]
44 70
45 configs += [ 71 configs += [
46 "//remoting/build/config:version", 72 "//remoting/build/config:version",
47 "//remoting/build/config:enable_webrtc_remoting_client", 73 "//remoting/build/config:enable_webrtc_remoting_client",
48 ] 74 ]
49 75
50 deps = [ 76 deps = [
51 ":input", 77 ":input",
78 ":normalizing_input_filter_unit_tests",
79 "//remoting/proto",
80 "//testing/gmock",
81 "//testing/gtest",
82 "//third_party/webrtc/base:rtc_base_approved",
83 ]
84 }
85
86 source_set("normalizing_input_filter_unit_tests") {
87 testonly = true
88
89 set_sources_assignment_filter([])
90 sources = [
91 "normalizing_input_filter_cros_unittest.cc",
92 "normalizing_input_filter_mac_unittest.cc",
93 "normalizing_input_filter_win_unittest.cc",
94 ]
95 set_sources_assignment_filter(sources_assignment_filter)
96
97 configs += [
98 "//remoting/build/config:version",
99 "//remoting/build/config:enable_webrtc_remoting_client",
100 ]
101
102 deps = [
103 ":input",
52 "//remoting/proto", 104 "//remoting/proto",
53 "//testing/gmock", 105 "//testing/gmock",
54 "//testing/gtest", 106 "//testing/gtest",
55 "//third_party/webrtc/base:rtc_base_approved", 107 "//third_party/webrtc/base:rtc_base_approved",
56 ] 108 ]
57 } 109 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698