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 import("//build/config/features.gni") | 5 import("//build/config/features.gni") |
6 import("//remoting/remoting_srcs.gni") | |
7 | 6 |
8 static_library("protocol") { | 7 static_library("protocol") { |
9 sources = rebase_path(remoting_srcs_gypi_values.remoting_protocol_sources, | 8 sources = [ |
10 ".", | 9 "audio_reader.cc", |
11 "//remoting") | 10 "audio_reader.h", |
| 11 "audio_stub.h", |
| 12 "audio_writer.cc", |
| 13 "audio_writer.h", |
| 14 "auth_util.cc", |
| 15 "auth_util.h", |
| 16 "authenticator.cc", |
| 17 "authenticator.h", |
| 18 "capability_names.h", |
| 19 "channel_authenticator.h", |
| 20 "channel_dispatcher_base.cc", |
| 21 "channel_dispatcher_base.h", |
| 22 "channel_multiplexer.cc", |
| 23 "channel_multiplexer.h", |
| 24 "channel_socket_adapter.cc", |
| 25 "channel_socket_adapter.h", |
| 26 "client_authentication_config.cc", |
| 27 "client_authentication_config.h", |
| 28 "client_control_dispatcher.cc", |
| 29 "client_control_dispatcher.h", |
| 30 "client_event_dispatcher.cc", |
| 31 "client_event_dispatcher.h", |
| 32 "client_stub.h", |
| 33 "client_video_dispatcher.cc", |
| 34 "client_video_dispatcher.h", |
| 35 "client_video_stats_dispatcher.cc", |
| 36 "client_video_stats_dispatcher.h", |
| 37 "clipboard_echo_filter.cc", |
| 38 "clipboard_echo_filter.h", |
| 39 "clipboard_filter.cc", |
| 40 "clipboard_filter.h", |
| 41 "clipboard_stub.h", |
| 42 "clipboard_thread_proxy.cc", |
| 43 "clipboard_thread_proxy.h", |
| 44 "connection_to_client.h", |
| 45 "connection_to_host.cc", |
| 46 "connection_to_host.h", |
| 47 "content_description.cc", |
| 48 "content_description.h", |
| 49 "datagram_channel_factory.h", |
| 50 "errors.cc", |
| 51 "errors.h", |
| 52 "frame_consumer.h", |
| 53 "frame_stats.cc", |
| 54 "frame_stats.h", |
| 55 "host_control_dispatcher.cc", |
| 56 "host_control_dispatcher.h", |
| 57 "host_event_dispatcher.cc", |
| 58 "host_event_dispatcher.h", |
| 59 "host_stub.h", |
| 60 "host_video_dispatcher.cc", |
| 61 "host_video_dispatcher.h", |
| 62 "host_video_stats_dispatcher.cc", |
| 63 "host_video_stats_dispatcher.h", |
| 64 "http_ice_config_request.cc", |
| 65 "http_ice_config_request.h", |
| 66 "ice_config.cc", |
| 67 "ice_config.h", |
| 68 "ice_config_request.h", |
| 69 "ice_connection_to_host.cc", |
| 70 "ice_connection_to_host.h", |
| 71 "ice_transport.cc", |
| 72 "ice_transport.h", |
| 73 "ice_transport_channel.cc", |
| 74 "ice_transport_channel.h", |
| 75 "input_event_tracker.cc", |
| 76 "input_event_tracker.h", |
| 77 "input_filter.cc", |
| 78 "input_filter.h", |
| 79 "input_stub.h", |
| 80 "it2me_host_authenticator_factory.cc", |
| 81 "it2me_host_authenticator_factory.h", |
| 82 "jingle_info_request.cc", |
| 83 "jingle_info_request.h", |
| 84 "jingle_messages.cc", |
| 85 "jingle_messages.h", |
| 86 "jingle_session.cc", |
| 87 "jingle_session.h", |
| 88 "jingle_session_manager.cc", |
| 89 "jingle_session_manager.h", |
| 90 "me2me_host_authenticator_factory.cc", |
| 91 "me2me_host_authenticator_factory.h", |
| 92 "message_decoder.cc", |
| 93 "message_decoder.h", |
| 94 "message_pipe.h", |
| 95 "message_reader.cc", |
| 96 "message_reader.h", |
| 97 "message_serialization.cc", |
| 98 "message_serialization.h", |
| 99 "monitored_video_stub.cc", |
| 100 "monitored_video_stub.h", |
| 101 "mouse_input_filter.cc", |
| 102 "mouse_input_filter.h", |
| 103 "name_value_map.h", |
| 104 "negotiating_authenticator_base.cc", |
| 105 "negotiating_authenticator_base.h", |
| 106 "negotiating_client_authenticator.cc", |
| 107 "negotiating_client_authenticator.h", |
| 108 "negotiating_host_authenticator.cc", |
| 109 "negotiating_host_authenticator.h", |
| 110 "network_settings.h", |
| 111 "p2p_datagram_socket.h", |
| 112 "p2p_stream_socket.h", |
| 113 "pairing_authenticator_base.cc", |
| 114 "pairing_authenticator_base.h", |
| 115 "pairing_client_authenticator.cc", |
| 116 "pairing_client_authenticator.h", |
| 117 "pairing_host_authenticator.cc", |
| 118 "pairing_host_authenticator.h", |
| 119 "pairing_registry.cc", |
| 120 "pairing_registry.h", |
| 121 "performance_tracker.cc", |
| 122 "performance_tracker.h", |
| 123 "port_allocator.cc", |
| 124 "port_allocator.h", |
| 125 "port_allocator_factory.h", |
| 126 "port_range.cc", |
| 127 "port_range.h", |
| 128 "pseudotcp_adapter.cc", |
| 129 "pseudotcp_adapter.h", |
| 130 "pseudotcp_channel_factory.cc", |
| 131 "pseudotcp_channel_factory.h", |
| 132 "rejecting_authenticator.cc", |
| 133 "rejecting_authenticator.h", |
| 134 "secure_channel_factory.cc", |
| 135 "secure_channel_factory.h", |
| 136 "session.h", |
| 137 "session_config.cc", |
| 138 "session_config.h", |
| 139 "session_manager.h", |
| 140 "socket_util.cc", |
| 141 "socket_util.h", |
| 142 "spake2_authenticator.cc", |
| 143 "spake2_authenticator.h", |
| 144 "ssl_hmac_channel_authenticator.cc", |
| 145 "ssl_hmac_channel_authenticator.h", |
| 146 "stream_channel_factory.h", |
| 147 "stream_message_pipe_adapter.cc", |
| 148 "stream_message_pipe_adapter.h", |
| 149 "third_party_authenticator_base.cc", |
| 150 "third_party_authenticator_base.h", |
| 151 "third_party_client_authenticator.cc", |
| 152 "third_party_client_authenticator.h", |
| 153 "third_party_host_authenticator.cc", |
| 154 "third_party_host_authenticator.h", |
| 155 "token_validator.h", |
| 156 "transport.cc", |
| 157 "transport.h", |
| 158 "transport_context.cc", |
| 159 "transport_context.h", |
| 160 "v2_authenticator.cc", |
| 161 "v2_authenticator.h", |
| 162 "video_renderer.h", |
| 163 "video_stats_stub.h", |
| 164 "video_stub.h", |
| 165 ] |
12 | 166 |
13 configs += [ | 167 configs += [ |
14 "//build/config:precompiled_headers", | 168 "//build/config:precompiled_headers", |
15 "//build/config/compiler:no_size_t_to_int_warning", | 169 "//build/config/compiler:no_size_t_to_int_warning", |
16 "//build/config/compiler:wexit_time_destructors", | 170 "//build/config/compiler:wexit_time_destructors", |
17 ] | 171 ] |
18 | 172 |
19 public_deps = [ | 173 public_deps = [ |
20 "//remoting/proto", | 174 "//remoting/proto", |
21 "//third_party/libjingle", | 175 "//third_party/libjingle", |
22 ] | 176 ] |
23 deps = [ | 177 deps = [ |
24 "//base", | 178 "//base", |
25 "//crypto", | 179 "//crypto", |
26 "//jingle:jingle_glue", | 180 "//jingle:jingle_glue", |
27 "//net", | 181 "//net", |
28 "//remoting/base", | 182 "//remoting/base", |
29 "//remoting/codec", | 183 "//remoting/codec", |
30 "//remoting/signaling", | 184 "//remoting/signaling", |
31 "//third_party/boringssl", | 185 "//third_party/boringssl", |
32 "//third_party/libyuv", | 186 "//third_party/libyuv", |
33 ] | 187 ] |
34 | 188 |
35 if (!is_nacl) { | 189 if (!is_nacl) { |
36 sources += | 190 sources += [ |
37 rebase_path(remoting_srcs_gypi_values.remoting_protocol_nonnacl_sources, | 191 "capture_scheduler.cc", |
38 ".", | 192 "capture_scheduler.h", |
39 "//remoting") | 193 "chromium_port_allocator_factory.cc", |
| 194 "chromium_port_allocator_factory.h", |
| 195 "chromium_socket_factory.cc", |
| 196 "chromium_socket_factory.h", |
| 197 "ice_connection_to_client.cc", |
| 198 "ice_connection_to_client.h", |
| 199 "video_frame_pump.cc", |
| 200 "video_frame_pump.h", |
| 201 "webrtc_connection_to_client.cc", |
| 202 "webrtc_connection_to_client.h", |
| 203 "webrtc_connection_to_host.cc", |
| 204 "webrtc_connection_to_host.h", |
| 205 "webrtc_data_stream_adapter.cc", |
| 206 "webrtc_data_stream_adapter.h", |
| 207 "webrtc_dummy_video_capturer.cc", |
| 208 "webrtc_dummy_video_capturer.h", |
| 209 "webrtc_transport.cc", |
| 210 "webrtc_transport.h", |
| 211 "webrtc_video_encoder_factory.cc", |
| 212 "webrtc_video_encoder_factory.h", |
| 213 "webrtc_video_renderer_adapter.cc", |
| 214 "webrtc_video_renderer_adapter.h", |
| 215 "webrtc_video_stream.cc", |
| 216 "webrtc_video_stream.h", |
| 217 ] |
40 | 218 |
41 if (enable_webrtc) { | 219 if (enable_webrtc) { |
42 deps += [ | 220 deps += [ |
43 "//third_party/libjingle:libjingle_webrtc", | 221 "//third_party/libjingle:libjingle_webrtc", |
44 "//third_party/webrtc/libjingle/xmllite", | 222 "//third_party/webrtc/libjingle/xmllite", |
45 "//third_party/webrtc/libjingle/xmpp", | 223 "//third_party/webrtc/libjingle/xmpp", |
46 ] | 224 ] |
47 } else { | 225 } else { |
48 sources -= [ | 226 sources -= [ |
49 "webrtc_connection_to_client.cc", | 227 "webrtc_connection_to_client.cc", |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 "webrtc_transport_unittest.cc", | 303 "webrtc_transport_unittest.cc", |
126 ] | 304 ] |
127 | 305 |
128 deps = [ | 306 deps = [ |
129 ":test_support", | 307 ":test_support", |
130 "//net:test_support", | 308 "//net:test_support", |
131 "//testing/gmock", | 309 "//testing/gmock", |
132 "//testing/gtest", | 310 "//testing/gtest", |
133 ] | 311 ] |
134 } | 312 } |
OLD | NEW |