Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 static_library("client") { | 5 static_library("client") { |
| 6 # Disabled the source filters because there are _mac files that need to | 6 # Disabled the source filters because there are _mac files that need to |
| 7 # be compiled on all platforms. | 7 # be compiled on all platforms. |
| 8 set_sources_assignment_filter([]) | 8 set_sources_assignment_filter([]) |
| 9 | 9 |
| 10 sources = [ | 10 sources = [ |
| 11 "audio_player.cc", | 11 "audio_player.cc", |
| 12 "audio_player.h", | 12 "audio_player.h", |
| 13 "chromoting_client.cc", | 13 "chromoting_client.cc", |
| 14 "chromoting_client.h", | 14 "chromoting_client.h", |
| 15 "chromoting_session.cc", | 15 "chromoting_session.cc", |
| 16 "chromoting_session.h", | 16 "chromoting_session.h", |
| 17 "client_context.cc", | 17 "client_context.cc", |
| 18 "client_context.h", | 18 "client_context.h", |
| 19 "client_telemetry_logger.cc", | 19 "client_telemetry_logger.cc", |
| 20 "client_telemetry_logger.h", | 20 "client_telemetry_logger.h", |
| 21 "client_user_interface.h", | 21 "client_user_interface.h", |
| 22 "connect_to_host_info.cc", | 22 "connect_to_host_info.cc", |
| 23 "connect_to_host_info.h", | 23 "connect_to_host_info.h", |
| 24 "cursor_shape_stub_proxy.cc", | 24 "cursor_shape_stub_proxy.cc", |
| 25 "cursor_shape_stub_proxy.h", | 25 "cursor_shape_stub_proxy.h", |
| 26 "dual_buffer_frame_consumer.cc", | 26 "dual_buffer_frame_consumer.cc", |
| 27 "dual_buffer_frame_consumer.h", | 27 "dual_buffer_frame_consumer.h", |
| 28 "empty_cursor_filter.cc", | 28 "empty_cursor_filter.cc", |
| 29 "empty_cursor_filter.h", | 29 "empty_cursor_filter.h", |
| 30 "gesture_interpreter.cc", | |
| 31 "gesture_interpreter.h", | |
| 30 "host_experiment_sender.cc", | 32 "host_experiment_sender.cc", |
| 31 "host_experiment_sender.h", | 33 "host_experiment_sender.h", |
| 32 "key_event_mapper.cc", | 34 "key_event_mapper.cc", |
| 33 "key_event_mapper.h", | 35 "key_event_mapper.h", |
| 34 "native_device_keymap.cc", | |
| 35 "native_device_keymap.h", | |
| 36 "normalizing_input_filter_cros.cc", | 36 "normalizing_input_filter_cros.cc", |
| 37 "normalizing_input_filter_cros.h", | 37 "normalizing_input_filter_cros.h", |
| 38 "normalizing_input_filter_mac.cc", | 38 "normalizing_input_filter_mac.cc", |
| 39 "normalizing_input_filter_mac.h", | 39 "normalizing_input_filter_mac.h", |
| 40 "normalizing_input_filter_win.cc", | 40 "normalizing_input_filter_win.cc", |
| 41 "normalizing_input_filter_win.h", | 41 "normalizing_input_filter_win.h", |
| 42 "queued_task_poster.cc", | 42 "queued_task_poster.cc", |
| 43 "queued_task_poster.h", | 43 "queued_task_poster.h", |
| 44 "server_log_entry_client.cc", | 44 "server_log_entry_client.cc", |
| 45 "server_log_entry_client.h", | 45 "server_log_entry_client.h", |
| 46 "software_video_renderer.cc", | 46 "software_video_renderer.cc", |
| 47 "software_video_renderer.h", | 47 "software_video_renderer.h", |
| 48 "touch_input_scaler.cc", | |
| 49 "touch_input_scaler.h", | |
| 50 ] | 48 ] |
| 51 set_sources_assignment_filter(sources_assignment_filter) | 49 set_sources_assignment_filter(sources_assignment_filter) |
| 52 | 50 |
| 53 configs += [ | 51 configs += [ |
| 54 "//build/config/compiler:wexit_time_destructors", | 52 "//build/config/compiler:wexit_time_destructors", |
| 55 "//remoting/build/config:version", | 53 "//remoting/build/config:version", |
| 56 "//remoting/build/config:enable_webrtc_remoting_client", | 54 "//remoting/build/config:enable_webrtc_remoting_client", |
| 57 ] | 55 ] |
| 58 | 56 |
| 59 deps = [ | 57 deps = [ |
| 60 "//remoting/base", | 58 "//remoting/base", |
| 61 "//remoting/client/input", | 59 "//remoting/client/input", |
|
Yuwei
2017/05/23 21:28:26
You may need //remoting/client/ui here to use Rend
nicholss
2017/05/23 22:01:23
I added //remoting/client/display:proxy, see how t
Yuwei
2017/05/23 22:20:42
TBH I don't feel its good to have a new target to
nicholss
2017/05/23 22:52:23
I moved it to flat display. I don't think it is a
| |
| 62 "//remoting/codec:decoder", | 60 "//remoting/codec:decoder", |
| 63 "//remoting/protocol", | 61 "//remoting/protocol", |
| 64 "//third_party/libyuv", | 62 "//third_party/libyuv", |
| 65 "//third_party/webrtc/modules/desktop_capture:primitives", | 63 "//third_party/webrtc/modules/desktop_capture:primitives", |
| 66 "//ui/events:dom_keycode_converter", | 64 "//ui/events:dom_keycode_converter", |
| 67 ] | 65 ] |
| 68 | 66 |
| 69 libs = [] | 67 libs = [] |
| 70 | 68 |
| 71 if (is_nacl) { | 69 if (is_nacl) { |
| 72 sources -= [ | 70 sources -= [ |
| 73 "client_telemetry_logger.cc", | 71 "client_telemetry_logger.cc", |
| 74 "server_log_entry_client.cc", | 72 "server_log_entry_client.cc", |
| 75 ] | 73 ] |
| 76 } else { | 74 } else { |
| 77 sources += [ | 75 sources += [ |
| 78 "chromoting_client_runtime.cc", | 76 "chromoting_client_runtime.cc", |
| 79 "chromoting_client_runtime.h", | 77 "chromoting_client_runtime.h", |
| 80 ] | 78 ] |
| 81 } | 79 } |
| 82 if (is_android) { | 80 if (is_android) { |
| 83 sources += [ | 81 sources += [ |
| 84 "audio_player_android.cc", | 82 "audio_player_android.cc", |
| 85 "audio_player_android.h", | 83 "audio_player_android.h", |
| 86 "native_device_keymap_android.cc", | |
| 87 ] | 84 ] |
| 88 sources -= [ "native_device_keymap.cc" ] | |
| 89 libs += [ | 85 libs += [ |
| 90 "android", | 86 "android", |
| 91 "OpenSLES", | 87 "OpenSLES", |
| 92 ] | 88 ] |
| 93 } | 89 } |
| 94 if (is_ios) { | |
| 95 sources += [ "native_device_keymap_ios.cc" ] | |
| 96 sources -= [ "native_device_keymap.cc" ] | |
| 97 } | |
| 98 } | 90 } |
| 99 | 91 |
| 100 source_set("unit_tests") { | 92 source_set("unit_tests") { |
| 101 testonly = true | 93 testonly = true |
| 102 | 94 |
| 103 # Disabled the source filters because there are _mac files that need to | 95 # Disabled the source filters because there are _mac files that need to |
| 104 # be compiled on all platforms. | 96 # be compiled on all platforms. |
| 105 set_sources_assignment_filter([]) | 97 set_sources_assignment_filter([]) |
| 106 sources = [ | 98 sources = [ |
| 107 "audio_player_unittest.cc", | 99 "audio_player_unittest.cc", |
| 108 "chromoting_client_runtime_unittest.cc", | 100 "chromoting_client_runtime_unittest.cc", |
| 109 "client_telemetry_logger_unittest.cc", | 101 "client_telemetry_logger_unittest.cc", |
| 110 "dual_buffer_frame_consumer_unittest.cc", | 102 "dual_buffer_frame_consumer_unittest.cc", |
| 111 "empty_cursor_filter_unittest.cc", | 103 "empty_cursor_filter_unittest.cc", |
| 112 "key_event_mapper_unittest.cc", | 104 "key_event_mapper_unittest.cc", |
| 113 "normalizing_input_filter_cros_unittest.cc", | 105 "normalizing_input_filter_cros_unittest.cc", |
| 114 "normalizing_input_filter_mac_unittest.cc", | 106 "normalizing_input_filter_mac_unittest.cc", |
| 115 "normalizing_input_filter_win_unittest.cc", | 107 "normalizing_input_filter_win_unittest.cc", |
| 116 "queued_task_poster_unittest.cc", | 108 "queued_task_poster_unittest.cc", |
| 117 "server_log_entry_client_unittest.cc", | 109 "server_log_entry_client_unittest.cc", |
| 118 "software_video_renderer_unittest.cc", | 110 "software_video_renderer_unittest.cc", |
| 119 "touch_input_scaler_unittest.cc", | |
| 120 ] | 111 ] |
| 121 set_sources_assignment_filter(sources_assignment_filter) | 112 set_sources_assignment_filter(sources_assignment_filter) |
| 122 | 113 |
| 123 configs += [ | 114 configs += [ |
| 124 "//remoting/build/config:version", | 115 "//remoting/build/config:version", |
| 125 "//remoting/build/config:enable_webrtc_remoting_client", | 116 "//remoting/build/config:enable_webrtc_remoting_client", |
| 126 ] | 117 ] |
| 127 | 118 |
| 128 deps = [ | 119 deps = [ |
| 129 ":client", | 120 ":client", |
| 130 "//remoting/proto", | 121 "//remoting/proto", |
| 131 "//testing/gmock", | 122 "//testing/gmock", |
| 132 "//testing/gtest", | 123 "//testing/gtest", |
| 133 "//third_party/webrtc/base:rtc_base_approved", | 124 "//third_party/webrtc/base:rtc_base_approved", |
| 134 ] | 125 ] |
| 135 } | 126 } |
| OLD | NEW |