OLD | NEW |
1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
2 # | 2 # |
3 # Use of this source code is governed by a BSD-style license | 3 # Use of this source code is governed by a BSD-style license |
4 # that can be found in the LICENSE file in the root of the source | 4 # that can be found in the LICENSE file in the root of the source |
5 # tree. An additional intellectual property rights grant can be found | 5 # tree. An additional intellectual property rights grant can be found |
6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
8 | 8 |
9 import("../build/webrtc.gni") | 9 import("../build/webrtc.gni") |
10 import("//build/config/ui.gni") | 10 import("//build/config/ui.gni") |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 "channel_transport/udp_socket_posix.cc", | 68 "channel_transport/udp_socket_posix.cc", |
69 "channel_transport/udp_socket_posix.h", | 69 "channel_transport/udp_socket_posix.h", |
70 "channel_transport/udp_socket_wrapper.cc", | 70 "channel_transport/udp_socket_wrapper.cc", |
71 "channel_transport/udp_socket_wrapper.h", | 71 "channel_transport/udp_socket_wrapper.h", |
72 "channel_transport/udp_transport.h", | 72 "channel_transport/udp_transport.h", |
73 "channel_transport/udp_transport_impl.cc", | 73 "channel_transport/udp_transport_impl.cc", |
74 "channel_transport/udp_transport_impl.h", | 74 "channel_transport/udp_transport_impl.h", |
75 ] | 75 ] |
76 | 76 |
77 configs += [ ":channel_transport_warnings_config" ] | 77 configs += [ ":channel_transport_warnings_config" ] |
78 public_configs = [ "..:common_inherited_config" ] | |
79 | 78 |
80 if (is_clang && !is_nacl) { | 79 if (is_clang && !is_nacl) { |
81 # Suppress warnings from the Chromium Clang plugin. | 80 # Suppress warnings from the Chromium Clang plugin. |
82 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 81 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
83 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 82 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
84 } | 83 } |
85 | 84 |
86 deps = [ | 85 deps = [ |
87 "..:webrtc_common", | 86 "..:webrtc_common", |
88 "../system_wrappers", | 87 "../system_wrappers", |
89 "//testing/gtest", | 88 "//testing/gtest", |
90 ] | 89 ] |
91 } | 90 } |
92 | 91 |
93 rtc_source_set("video_test_common") { | 92 rtc_source_set("video_test_common") { |
94 testonly = true | 93 testonly = true |
95 sources = [ | 94 sources = [ |
96 "fake_texture_frame.cc", | 95 "fake_texture_frame.cc", |
97 "fake_texture_frame.h", | 96 "fake_texture_frame.h", |
98 "frame_generator.cc", | 97 "frame_generator.cc", |
99 "frame_generator.h", | 98 "frame_generator.h", |
100 "frame_utils.cc", | 99 "frame_utils.cc", |
101 "frame_utils.h", | 100 "frame_utils.h", |
102 ] | 101 ] |
103 | 102 |
104 public_configs = [ "..:common_inherited_config" ] | |
105 | |
106 if (is_clang && !is_nacl) { | 103 if (is_clang && !is_nacl) { |
107 # Suppress warnings from the Chromium Clang plugin. | 104 # Suppress warnings from the Chromium Clang plugin. |
108 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 105 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
109 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 106 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
110 } | 107 } |
111 | 108 |
112 deps = [ | 109 deps = [ |
113 "../common_video", | 110 "../common_video", |
114 ] | 111 ] |
115 } | 112 } |
116 | 113 |
117 rtc_source_set("rtp_test_utils") { | 114 rtc_source_set("rtp_test_utils") { |
118 testonly = true | 115 testonly = true |
119 sources = [ | 116 sources = [ |
120 "rtcp_packet_parser.cc", | 117 "rtcp_packet_parser.cc", |
121 "rtcp_packet_parser.h", | 118 "rtcp_packet_parser.h", |
122 "rtp_file_reader.cc", | 119 "rtp_file_reader.cc", |
123 "rtp_file_reader.h", | 120 "rtp_file_reader.h", |
124 "rtp_file_writer.cc", | 121 "rtp_file_writer.cc", |
125 "rtp_file_writer.h", | 122 "rtp_file_writer.h", |
126 ] | 123 ] |
127 | 124 |
128 public_configs = [ "..:common_inherited_config" ] | |
129 | |
130 if (is_clang && !is_nacl) { | 125 if (is_clang && !is_nacl) { |
131 # Suppress warnings from the Chromium Clang plugin. | 126 # Suppress warnings from the Chromium Clang plugin. |
132 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 127 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
133 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 128 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
134 } | 129 } |
135 | 130 |
136 deps = [ | 131 deps = [ |
137 "..:webrtc_common", | 132 "..:webrtc_common", |
138 "../modules/rtp_rtcp", | 133 "../modules/rtp_rtcp", |
139 "//testing/gtest", | 134 "//testing/gtest", |
140 ] | 135 ] |
141 } | 136 } |
142 | 137 |
143 rtc_source_set("field_trial") { | 138 rtc_source_set("field_trial") { |
144 testonly = true | 139 testonly = true |
145 sources = [ | 140 sources = [ |
146 "field_trial.cc", | 141 "field_trial.cc", |
147 "field_trial.h", | 142 "field_trial.h", |
148 ] | 143 ] |
149 | 144 |
150 deps = [ | 145 deps = [ |
151 "..:webrtc_common", | 146 "..:webrtc_common", |
152 "../system_wrappers", | 147 "../system_wrappers", |
153 "../system_wrappers:field_trial_default", | 148 "../system_wrappers:field_trial_default", |
154 ] | 149 ] |
155 | |
156 public_configs = [ "..:common_inherited_config" ] | |
157 } | 150 } |
158 | 151 |
159 rtc_source_set("test_main") { | 152 rtc_source_set("test_main") { |
160 testonly = true | 153 testonly = true |
161 sources = [ | 154 sources = [ |
162 "test_main.cc", | 155 "test_main.cc", |
163 ] | 156 ] |
164 | 157 |
165 deps = [ | 158 deps = [ |
166 ":field_trial", | 159 ":field_trial", |
167 ":test_support", | 160 ":test_support", |
168 "../system_wrappers:metrics_default", | 161 "../system_wrappers:metrics_default", |
169 "//testing/gtest", | 162 "//testing/gtest", |
170 "//third_party/gflags", | 163 "//third_party/gflags", |
171 ] | 164 ] |
172 | |
173 public_configs = [ "..:common_inherited_config" ] | |
174 } | 165 } |
175 | 166 |
176 rtc_source_set("test_support") { | 167 rtc_source_set("test_support") { |
177 testonly = true | 168 testonly = true |
178 | 169 |
179 sources = [ | 170 sources = [ |
180 "testsupport/fileutils.cc", | 171 "testsupport/fileutils.cc", |
181 "testsupport/fileutils.h", | 172 "testsupport/fileutils.h", |
182 "testsupport/frame_reader.cc", | 173 "testsupport/frame_reader.cc", |
183 "testsupport/frame_reader.h", | 174 "testsupport/frame_reader.h", |
(...skipping 30 matching lines...) Expand all Loading... |
214 configs += [ "//build/config/compiler:enable_arc" ] | 205 configs += [ "//build/config/compiler:enable_arc" ] |
215 } | 206 } |
216 | 207 |
217 if (use_x11) { | 208 if (use_x11) { |
218 deps += [ "//tools/xdisplaycheck" ] | 209 deps += [ "//tools/xdisplaycheck" ] |
219 } | 210 } |
220 | 211 |
221 if (is_android) { | 212 if (is_android) { |
222 deps += [ "//base:base" ] | 213 deps += [ "//base:base" ] |
223 } | 214 } |
224 | |
225 public_configs = [ "..:common_inherited_config" ] | |
226 } | 215 } |
227 | 216 |
228 # Depend on this target when you want to have test_support but also the | 217 # Depend on this target when you want to have test_support but also the |
229 # main method needed for gtest to execute! | 218 # main method needed for gtest to execute! |
230 rtc_source_set("test_support_main") { | 219 rtc_source_set("test_support_main") { |
231 testonly = true | 220 testonly = true |
232 | 221 |
233 sources = [ | 222 sources = [ |
234 "run_all_unittests.cc", | 223 "run_all_unittests.cc", |
235 "test_suite.cc", | 224 "test_suite.cc", |
236 "test_suite.h", | 225 "test_suite.h", |
237 ] | 226 ] |
238 | 227 |
239 deps = [ | 228 deps = [ |
240 ":field_trial", | 229 ":field_trial", |
241 ":test_support", | 230 ":test_support", |
242 "../system_wrappers:metrics_default", | 231 "../system_wrappers:metrics_default", |
243 "//testing/gmock", | 232 "//testing/gmock", |
244 "//testing/gtest", | 233 "//testing/gtest", |
245 "//third_party/gflags", | 234 "//third_party/gflags", |
246 ] | 235 ] |
247 | |
248 public_configs = [ "..:common_inherited_config" ] | |
249 } | 236 } |
250 | 237 |
251 # Depend on this target when you want to have test_support and a special | 238 # Depend on this target when you want to have test_support and a special |
252 # main for mac which will run your test on a worker thread and consume | 239 # main for mac which will run your test on a worker thread and consume |
253 # events on the main thread. Useful if you want to access a webcam. | 240 # events on the main thread. Useful if you want to access a webcam. |
254 # This main will provide all the scaffolding and objective-c black magic | 241 # This main will provide all the scaffolding and objective-c black magic |
255 # for you. All you need to do is to implement a function in the | 242 # for you. All you need to do is to implement a function in the |
256 # run_threaded_main_mac.h file (ImplementThisToRunYourTest). | 243 # run_threaded_main_mac.h file (ImplementThisToRunYourTest). |
257 rtc_source_set("test_support_main_threaded_mac") { | 244 rtc_source_set("test_support_main_threaded_mac") { |
258 testonly = true | 245 testonly = true |
259 | 246 |
260 sources = [ | 247 sources = [ |
261 "testsupport/mac/run_threaded_main_mac.h", | 248 "testsupport/mac/run_threaded_main_mac.h", |
262 "testsupport/mac/run_threaded_main_mac.mm", | 249 "testsupport/mac/run_threaded_main_mac.mm", |
263 ] | 250 ] |
264 | 251 |
265 public_configs = [ "..:common_inherited_config" ] | |
266 | |
267 deps = [ | 252 deps = [ |
268 ":test_support", | 253 ":test_support", |
269 ] | 254 ] |
270 } | 255 } |
271 | 256 |
272 if (is_android || is_ios) { | 257 if (is_android || is_ios) { |
273 test_support_unittests_resources = [ | 258 test_support_unittests_resources = [ |
274 "//resources/foreman_cif_short.yuv", | 259 "//resources/foreman_cif_short.yuv", |
275 "//resources/video_coding/frame-ethernet-ii.pcap", | 260 "//resources/video_coding/frame-ethernet-ii.pcap", |
276 "//resources/video_coding/frame-loopback.pcap", | 261 "//resources/video_coding/frame-loopback.pcap", |
(...skipping 28 matching lines...) Expand all Loading... |
305 "testsupport/always_passing_unittest.cc", | 290 "testsupport/always_passing_unittest.cc", |
306 "testsupport/fileutils_unittest.cc", | 291 "testsupport/fileutils_unittest.cc", |
307 "testsupport/frame_reader_unittest.cc", | 292 "testsupport/frame_reader_unittest.cc", |
308 "testsupport/frame_writer_unittest.cc", | 293 "testsupport/frame_writer_unittest.cc", |
309 "testsupport/metrics/video_metrics_unittest.cc", | 294 "testsupport/metrics/video_metrics_unittest.cc", |
310 "testsupport/packet_reader_unittest.cc", | 295 "testsupport/packet_reader_unittest.cc", |
311 "testsupport/perf_test_unittest.cc", | 296 "testsupport/perf_test_unittest.cc", |
312 "testsupport/unittest_utils.h", | 297 "testsupport/unittest_utils.h", |
313 ] | 298 ] |
314 | 299 |
315 public_configs = [ "..:common_inherited_config" ] | |
316 | |
317 # TODO(jschuh): Bug 1348: fix this warning. | 300 # TODO(jschuh): Bug 1348: fix this warning. |
318 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 301 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
319 | 302 |
320 if (is_win) { | 303 if (is_win) { |
321 cflags = [ "/wd4373" ] # virtual override w/different const/volatile signat
ure. | 304 cflags = [ "/wd4373" ] # virtual override w/different const/volatile signat
ure. |
322 } | 305 } |
323 | 306 |
324 if (is_clang) { | 307 if (is_clang) { |
325 # Suppress warnings from the Chromium Clang plugin. | 308 # Suppress warnings from the Chromium Clang plugin. |
326 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 309 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 "video_capturer.h", | 371 "video_capturer.h", |
389 "win/run_loop_win.cc", | 372 "win/run_loop_win.cc", |
390 ] | 373 ] |
391 if (!is_win) { | 374 if (!is_win) { |
392 sources += [ | 375 sources += [ |
393 "run_loop.cc", | 376 "run_loop.cc", |
394 "run_loop.h", | 377 "run_loop.h", |
395 ] | 378 ] |
396 } | 379 } |
397 | 380 |
398 public_configs = [ "..:common_inherited_config" ] | |
399 | |
400 if (is_clang && !is_nacl) { | 381 if (is_clang && !is_nacl) { |
401 # Suppress warnings from the Chromium Clang plugin. | 382 # Suppress warnings from the Chromium Clang plugin. |
402 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 383 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
403 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 384 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
404 } | 385 } |
405 | 386 |
406 deps = [ | 387 deps = [ |
407 ":rtp_test_utils", | 388 ":rtp_test_utils", |
408 ":test_support", | 389 ":test_support", |
409 ":video_test_common", | 390 ":video_test_common", |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
470 ] | 451 ] |
471 } | 452 } |
472 if (is_mac) { | 453 if (is_mac) { |
473 libs = [ | 454 libs = [ |
474 "Cocoa.framework", | 455 "Cocoa.framework", |
475 "OpenGL.framework", | 456 "OpenGL.framework", |
476 "CoreVideo.framework", | 457 "CoreVideo.framework", |
477 ] | 458 ] |
478 } | 459 } |
479 | 460 |
480 public_configs = [ | 461 public_configs = [ ":test_renderer_exported_config" ] |
481 "..:common_inherited_config", | |
482 ":test_renderer_exported_config", | |
483 ] | |
484 | 462 |
485 if (is_clang && !is_nacl) { | 463 if (is_clang && !is_nacl) { |
486 # Suppress warnings from the Chromium Clang plugin. | 464 # Suppress warnings from the Chromium Clang plugin. |
487 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 465 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
488 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 466 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
489 } | 467 } |
490 | 468 |
491 deps = [ | 469 deps = [ |
492 ":test_support", | 470 ":test_support", |
493 ":video_test_common", | 471 ":video_test_common", |
494 "../modules/media_file", | 472 "../modules/media_file", |
495 "//testing/gtest", | 473 "//testing/gtest", |
496 ] | 474 ] |
497 } | 475 } |
OLD | NEW |