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") | 6 import("//remoting/remoting_srcs.gni") |
7 | 7 |
8 source_set("protocol") { | 8 source_set("protocol") { |
9 sources = rebase_path(remoting_srcs_gypi_values.remoting_protocol_sources, | 9 sources = rebase_path(remoting_srcs_gypi_values.remoting_protocol_sources, |
10 ".", | 10 ".", |
(...skipping 10 matching lines...) Expand all Loading... |
21 "//third_party/libjingle", | 21 "//third_party/libjingle", |
22 ] | 22 ] |
23 deps = [ | 23 deps = [ |
24 "//base", | 24 "//base", |
25 "//crypto", | 25 "//crypto", |
26 "//jingle:jingle_glue", | 26 "//jingle:jingle_glue", |
27 "//net", | 27 "//net", |
28 "//remoting/base", | 28 "//remoting/base", |
29 "//remoting/codec", | 29 "//remoting/codec", |
30 "//remoting/signaling", | 30 "//remoting/signaling", |
| 31 "//third_party/boringssl", |
31 "//third_party/libyuv", | 32 "//third_party/libyuv", |
32 ] | 33 ] |
33 | 34 |
34 if (!is_nacl) { | 35 if (!is_nacl) { |
35 sources += | 36 sources += |
36 rebase_path(remoting_srcs_gypi_values.remoting_protocol_nonnacl_sources, | 37 rebase_path(remoting_srcs_gypi_values.remoting_protocol_nonnacl_sources, |
37 ".", | 38 ".", |
38 "//remoting") | 39 "//remoting") |
39 | 40 |
40 if (enable_webrtc) { | 41 if (enable_webrtc) { |
41 deps += [ | 42 deps += [ |
42 # TODO(GYP): crbug.com/481633. We should probably not have to depend on | 43 # TODO(GYP): crbug.com/481633. We should probably not have to depend on |
43 # libjingle_webrtc; that should be pulled in automatically by | 44 # libjingle_webrtc; that should be pulled in automatically by |
44 # libpeerconnection instead. | 45 # libpeerconnection instead. |
45 "//third_party/libjingle:libjingle_webrtc", | 46 "//third_party/libjingle:libjingle_webrtc", |
46 "//third_party/libjingle:libpeerconnection", | 47 "//third_party/libjingle:libpeerconnection", |
47 ] | 48 ] |
48 } else { | 49 } else { |
49 sources -= [ | 50 sources -= [ |
50 "webrtc_connection_to_client.cc", | 51 "webrtc_connection_to_client.cc", |
51 "webrtc_transport.cc", | 52 "webrtc_transport.cc", |
52 "webrtc_video_capturer_adapter.cc", | 53 "webrtc_video_capturer_adapter.cc", |
53 "webrtc_video_stream.cc", | 54 "webrtc_video_stream.cc", |
54 ] | 55 ] |
55 } | 56 } |
56 } | 57 } |
| 58 |
| 59 if (!use_openssl) { |
| 60 sources -= [ |
| 61 "spake2_authenticator.cc", |
| 62 "spake2_authenticator.h", |
| 63 ] |
| 64 deps -= [ "//third_party/boringssl" ] |
| 65 } |
57 } | 66 } |
58 | 67 |
59 source_set("test_support") { | 68 source_set("test_support") { |
60 testonly = true | 69 testonly = true |
61 | 70 |
62 sources = [ | 71 sources = [ |
63 "fake_authenticator.cc", | 72 "fake_authenticator.cc", |
64 "fake_authenticator.h", | 73 "fake_authenticator.h", |
65 "fake_connection_to_client.cc", | 74 "fake_connection_to_client.cc", |
66 "fake_connection_to_client.h", | 75 "fake_connection_to_client.h", |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 "message_decoder_unittest.cc", | 121 "message_decoder_unittest.cc", |
113 "message_reader_unittest.cc", | 122 "message_reader_unittest.cc", |
114 "monitored_video_stub_unittest.cc", | 123 "monitored_video_stub_unittest.cc", |
115 "mouse_input_filter_unittest.cc", | 124 "mouse_input_filter_unittest.cc", |
116 "negotiating_authenticator_unittest.cc", | 125 "negotiating_authenticator_unittest.cc", |
117 "pairing_registry_unittest.cc", | 126 "pairing_registry_unittest.cc", |
118 "port_range_unittest.cc", | 127 "port_range_unittest.cc", |
119 "ppapi_module_stub.cc", | 128 "ppapi_module_stub.cc", |
120 "pseudotcp_adapter_unittest.cc", | 129 "pseudotcp_adapter_unittest.cc", |
121 "session_config_unittest.cc", | 130 "session_config_unittest.cc", |
| 131 "spake2_authenticator_unittest.cc", |
122 "ssl_hmac_channel_authenticator_unittest.cc", | 132 "ssl_hmac_channel_authenticator_unittest.cc", |
123 "third_party_authenticator_unittest.cc", | 133 "third_party_authenticator_unittest.cc", |
124 "v2_authenticator_unittest.cc", | 134 "v2_authenticator_unittest.cc", |
125 "video_frame_pump_unittest.cc", | 135 "video_frame_pump_unittest.cc", |
126 "webrtc_transport_unittest.cc", | 136 "webrtc_transport_unittest.cc", |
127 ] | 137 ] |
128 | 138 |
| 139 if (!use_openssl) { |
| 140 sources -= [ "spake2_authenticator_unittest.cc" ] |
| 141 } |
| 142 |
129 deps = [ | 143 deps = [ |
130 ":test_support", | 144 ":test_support", |
131 "//testing/gmock", | 145 "//testing/gmock", |
132 "//testing/gtest", | 146 "//testing/gtest", |
133 ] | 147 ] |
134 } | 148 } |
OLD | NEW |