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_consumer.h", | 11 "audio_consumer.h", |
12 "audio_decode_scheduler.cc", | |
13 "audio_decode_scheduler.h", | |
14 "audio_player.cc", | 12 "audio_player.cc", |
15 "audio_player.h", | 13 "audio_player.h", |
16 "chromoting_client.cc", | 14 "chromoting_client.cc", |
17 "chromoting_client.h", | 15 "chromoting_client.h", |
18 "client_context.cc", | 16 "client_context.cc", |
19 "client_context.h", | 17 "client_context.h", |
20 "client_status_logger.cc", | 18 "client_status_logger.cc", |
21 "client_status_logger.h", | 19 "client_status_logger.h", |
22 "client_telemetry_logger.cc", | 20 "client_telemetry_logger.cc", |
23 "client_telemetry_logger.h", | 21 "client_telemetry_logger.h", |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 | 109 |
112 if (is_mac) { | 110 if (is_mac) { |
113 libs = [ "OpenGL.framework" ] | 111 libs = [ "OpenGL.framework" ] |
114 } | 112 } |
115 | 113 |
116 if (is_win) { | 114 if (is_win) { |
117 deps += [ "//third_party/angle:libGLESv2" ] | 115 deps += [ "//third_party/angle:libGLESv2" ] |
118 } | 116 } |
119 } | 117 } |
120 | 118 |
121 static_library("test_support") { | |
122 testonly = true | |
123 | |
124 sources = [ | |
125 "fake_audio_consumer.cc", | |
126 "fake_audio_consumer.h", | |
127 ] | |
128 | |
129 public_deps = [ | |
130 "//remoting/protocol:test_support", | |
131 "//testing/gmock", | |
132 "//third_party/protobuf:protobuf_lite", | |
133 ] | |
134 } | |
135 | |
136 source_set("unit_tests") { | 119 source_set("unit_tests") { |
137 testonly = true | 120 testonly = true |
138 | 121 |
139 # Disabled the source filters because there are _mac files that need to | 122 # Disabled the source filters because there are _mac files that need to |
140 # be compiled on all platforms. | 123 # be compiled on all platforms. |
141 set_sources_assignment_filter([]) | 124 set_sources_assignment_filter([]) |
142 sources = [ | 125 sources = [ |
143 "audio_decode_scheduler_unittest.cc", | |
144 "audio_player_unittest.cc", | 126 "audio_player_unittest.cc", |
145 "chromoting_client_runtime_unittest.cc", | 127 "chromoting_client_runtime_unittest.cc", |
146 "client_status_logger_unittest.cc", | 128 "client_status_logger_unittest.cc", |
147 "client_telemetry_logger_unittest.cc", | 129 "client_telemetry_logger_unittest.cc", |
148 "dual_buffer_frame_consumer_unittest.cc", | 130 "dual_buffer_frame_consumer_unittest.cc", |
149 "empty_cursor_filter_unittest.cc", | 131 "empty_cursor_filter_unittest.cc", |
150 "key_event_mapper_unittest.cc", | 132 "key_event_mapper_unittest.cc", |
151 "normalizing_input_filter_cros_unittest.cc", | 133 "normalizing_input_filter_cros_unittest.cc", |
152 "normalizing_input_filter_mac_unittest.cc", | 134 "normalizing_input_filter_mac_unittest.cc", |
153 "normalizing_input_filter_win_unittest.cc", | 135 "normalizing_input_filter_win_unittest.cc", |
154 "queued_task_poster_unittest.cc", | 136 "queued_task_poster_unittest.cc", |
155 "server_log_entry_client_unittest.cc", | 137 "server_log_entry_client_unittest.cc", |
156 "software_video_renderer_unittest.cc", | 138 "software_video_renderer_unittest.cc", |
157 "touch_input_scaler_unittest.cc", | 139 "touch_input_scaler_unittest.cc", |
158 ] | 140 ] |
159 set_sources_assignment_filter(sources_assignment_filter) | 141 set_sources_assignment_filter(sources_assignment_filter) |
160 | 142 |
161 configs += [ | 143 configs += [ |
162 "//remoting/build/config:version", | 144 "//remoting/build/config:version", |
163 "//remoting/build/config:enable_webrtc_remoting_client", | 145 "//remoting/build/config:enable_webrtc_remoting_client", |
164 ] | 146 ] |
165 | 147 |
166 deps = [ | 148 deps = [ |
167 ":client", | 149 ":client", |
168 ":test_support", | |
169 "//remoting/proto", | 150 "//remoting/proto", |
170 "//testing/gmock", | 151 "//testing/gmock", |
171 "//testing/gtest", | 152 "//testing/gtest", |
172 "//third_party/webrtc", | 153 "//third_party/webrtc", |
173 ] | 154 ] |
174 | 155 |
175 if (!is_win) { | 156 if (!is_win) { |
176 # Windows clang builder fails to link the test binary with ANGLE GLESv2. | 157 # Windows clang builder fails to link the test binary with ANGLE GLESv2. |
177 # crbug.com/642027 | 158 # crbug.com/642027 |
178 sources += [ "gl_renderer_unittest.cc" ] | 159 sources += [ "gl_renderer_unittest.cc" ] |
179 deps += [ ":opengl_renderer" ] | 160 deps += [ ":opengl_renderer" ] |
180 } | 161 } |
181 } | 162 } |
OLD | NEW |