Index: remoting/client/input/BUILD.gn |
diff --git a/remoting/client/input/BUILD.gn b/remoting/client/input/BUILD.gn |
index 8e7cda55b214a9953d9c73ea7f3c6a818aef37f6..a4a78dc0177ece647e3919cee70d4bf2a375a8eb 100644 |
--- a/remoting/client/input/BUILD.gn |
+++ b/remoting/client/input/BUILD.gn |
@@ -8,6 +8,8 @@ source_set("input") { |
"direct_input_strategy.cc", |
"direct_input_strategy.h", |
"input_strategy.h", |
+ "key_event_mapper.cc", |
+ "key_event_mapper.h", |
"keyboard_input_strategy.h", |
"keyboard_interpreter.cc", |
"keyboard_interpreter.h", |
@@ -24,6 +26,7 @@ source_set("input") { |
] |
deps = [ |
+ ":normalizing_input_filter", |
"//remoting/base", |
"//remoting/client/ui:ui_manipulation", |
"//third_party/webrtc/base:rtc_base_approved", |
@@ -35,12 +38,40 @@ source_set("input") { |
} |
} |
+source_set("normalizing_input_filter") { |
+ # Disabled the source filters because there are _mac files that need to |
+ # be compiled on all platforms. |
+ set_sources_assignment_filter([]) |
+ sources = [ |
+ "normalizing_input_filter_cros.cc", |
+ "normalizing_input_filter_cros.h", |
+ "normalizing_input_filter_mac.cc", |
+ "normalizing_input_filter_mac.h", |
+ "normalizing_input_filter_win.cc", |
+ "normalizing_input_filter_win.h", |
+ ] |
+ set_sources_assignment_filter(sources_assignment_filter) |
+ |
+ deps = [ |
+ "//remoting/base", |
+ "//third_party/webrtc/base:rtc_base_approved", |
+ "//third_party/webrtc/modules/desktop_capture:primitives", |
+ "//ui/events:dom_keycode_converter", |
+ ] |
+} |
+ |
source_set("unit_tests") { |
Yuwei
2017/05/24 01:30:14
Should we pull out the normalizing_input_filter_un
|
testonly = true |
+ set_sources_assignment_filter([]) |
sources = [ |
+ "key_event_mapper_unittest.cc", |
+ "normalizing_input_filter_cros_unittest.cc", |
+ "normalizing_input_filter_mac_unittest.cc", |
+ "normalizing_input_filter_win_unittest.cc", |
"touch_input_scaler_unittest.cc", |
] |
+ set_sources_assignment_filter(sources_assignment_filter) |
configs += [ |
"//remoting/build/config:version", |