OLD | NEW |
1 # Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2011 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 # TODO(andrew): consider moving test_support to src/base/test. | 9 # TODO(andrew): consider moving test_support to src/base/test. |
10 { | 10 { |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 'sources': [ | 205 'sources': [ |
206 'testsupport/mac/run_threaded_main_mac.h', | 206 'testsupport/mac/run_threaded_main_mac.h', |
207 'testsupport/mac/run_threaded_main_mac.mm', | 207 'testsupport/mac/run_threaded_main_mac.mm', |
208 ], | 208 ], |
209 }, | 209 }, |
210 { | 210 { |
211 'target_name': 'test_support_unittests', | 211 'target_name': 'test_support_unittests', |
212 'type': '<(gtest_target_type)', | 212 'type': '<(gtest_target_type)', |
213 'dependencies': [ | 213 'dependencies': [ |
214 'channel_transport', | 214 'channel_transport', |
| 215 'test_common', |
215 'test_support_main', | 216 'test_support_main', |
| 217 '<(webrtc_root)/modules/modules.gyp:video_capture', |
216 '<(DEPTH)/testing/gmock.gyp:gmock', | 218 '<(DEPTH)/testing/gmock.gyp:gmock', |
217 '<(DEPTH)/testing/gtest.gyp:gtest', | 219 '<(DEPTH)/testing/gtest.gyp:gtest', |
218 ], | 220 ], |
219 'sources': [ | 221 'sources': [ |
| 222 'fake_network_pipe_unittest.cc', |
| 223 'frame_generator_unittest.cc', |
| 224 'rtp_file_reader_unittest.cc', |
| 225 'rtp_file_writer_unittest.cc', |
220 'channel_transport/udp_transport_unittest.cc', | 226 'channel_transport/udp_transport_unittest.cc', |
221 'channel_transport/udp_socket_manager_unittest.cc', | 227 'channel_transport/udp_socket_manager_unittest.cc', |
222 'channel_transport/udp_socket_wrapper_unittest.cc', | 228 'channel_transport/udp_socket_wrapper_unittest.cc', |
223 'testsupport/always_passing_unittest.cc', | 229 'testsupport/always_passing_unittest.cc', |
224 'testsupport/unittest_utils.h', | 230 'testsupport/unittest_utils.h', |
225 'testsupport/fileutils_unittest.cc', | 231 'testsupport/fileutils_unittest.cc', |
226 'testsupport/frame_reader_unittest.cc', | 232 'testsupport/frame_reader_unittest.cc', |
227 'testsupport/frame_writer_unittest.cc', | 233 'testsupport/frame_writer_unittest.cc', |
228 'testsupport/packet_reader_unittest.cc', | 234 'testsupport/packet_reader_unittest.cc', |
229 'testsupport/perf_test_unittest.cc', | 235 'testsupport/perf_test_unittest.cc', |
230 ], | 236 ], |
231 # Disable warnings to enable Win64 build, issue 1323. | 237 # Disable warnings to enable Win64 build, issue 1323. |
232 'msvs_disabled_warnings': [ | 238 'msvs_disabled_warnings': [ |
233 4267, # size_t to int truncation. | 239 4267, # size_t to int truncation. |
234 ], | 240 ], |
235 'conditions': [ | 241 'conditions': [ |
236 ['OS=="android"', { | 242 ['OS=="android"', { |
237 'dependencies': [ | 243 'dependencies': [ |
238 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code', | 244 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code', |
239 ], | 245 ], |
240 }], | 246 }], |
241 ], | 247 ], |
242 }, | 248 }, |
| 249 { |
| 250 'target_name': 'test_common', |
| 251 'type': 'static_library', |
| 252 'sources': [ |
| 253 'call_test.cc', |
| 254 'call_test.h', |
| 255 'configurable_frame_size_encoder.cc', |
| 256 'configurable_frame_size_encoder.h', |
| 257 'constants.cc', |
| 258 'constants.h', |
| 259 'direct_transport.cc', |
| 260 'direct_transport.h', |
| 261 'drifting_clock.cc', |
| 262 'drifting_clock.h', |
| 263 'encoder_settings.cc', |
| 264 'encoder_settings.h', |
| 265 'fake_audio_device.cc', |
| 266 'fake_audio_device.h', |
| 267 'fake_decoder.cc', |
| 268 'fake_decoder.h', |
| 269 'fake_encoder.cc', |
| 270 'fake_encoder.h', |
| 271 'fake_network_pipe.cc', |
| 272 'fake_network_pipe.h', |
| 273 'frame_generator_capturer.cc', |
| 274 'frame_generator_capturer.h', |
| 275 'layer_filtering_transport.cc', |
| 276 'layer_filtering_transport.h', |
| 277 'mock_transport.h', |
| 278 'mock_voe_channel_proxy.h', |
| 279 'mock_voice_engine.h', |
| 280 'null_transport.cc', |
| 281 'null_transport.h', |
| 282 'rtp_rtcp_observer.h', |
| 283 'run_loop.cc', |
| 284 'run_loop.h', |
| 285 'statistics.cc', |
| 286 'statistics.h', |
| 287 'vcm_capturer.cc', |
| 288 'vcm_capturer.h', |
| 289 'video_capturer.cc', |
| 290 'video_capturer.h', |
| 291 'win/run_loop_win.cc', |
| 292 ], |
| 293 'conditions': [ |
| 294 ['OS=="win"', { |
| 295 'sources!': [ |
| 296 'run_loop.cc', |
| 297 ], |
| 298 }], |
| 299 ], |
| 300 'dependencies': [ |
| 301 '<(DEPTH)/testing/gmock.gyp:gmock', |
| 302 '<(DEPTH)/testing/gtest.gyp:gtest', |
| 303 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags', |
| 304 '<(webrtc_root)/base/base.gyp:rtc_base', |
| 305 '<(webrtc_root)/common.gyp:webrtc_common', |
| 306 '<(webrtc_root)/modules/modules.gyp:media_file', |
| 307 '<(webrtc_root)/modules/modules.gyp:video_render', |
| 308 '<(webrtc_root)/webrtc.gyp:webrtc', |
| 309 'rtp_test_utils', |
| 310 'test_support', |
| 311 'video_test_common', |
| 312 ], |
| 313 }, |
| 314 { |
| 315 'target_name': 'test_renderer', |
| 316 'type': 'static_library', |
| 317 'sources': [ |
| 318 'gl/gl_renderer.cc', |
| 319 'gl/gl_renderer.h', |
| 320 'linux/glx_renderer.cc', |
| 321 'linux/glx_renderer.h', |
| 322 'linux/video_renderer_linux.cc', |
| 323 'mac/video_renderer_mac.h', |
| 324 'mac/video_renderer_mac.mm', |
| 325 'null_platform_renderer.cc', |
| 326 'video_renderer.cc', |
| 327 'video_renderer.h', |
| 328 'win/d3d_renderer.cc', |
| 329 'win/d3d_renderer.h', |
| 330 ], |
| 331 'conditions': [ |
| 332 ['OS=="linux"', { |
| 333 'sources!': [ |
| 334 'null_platform_renderer.cc', |
| 335 ], |
| 336 }], |
| 337 ['OS=="mac"', { |
| 338 'sources!': [ |
| 339 'null_platform_renderer.cc', |
| 340 ], |
| 341 }], |
| 342 ['OS!="linux" and OS!="mac"', { |
| 343 'sources!' : [ |
| 344 'gl/gl_renderer.cc', |
| 345 'gl/gl_renderer.h', |
| 346 ], |
| 347 }], |
| 348 ['OS=="win"', { |
| 349 'sources!': [ |
| 350 'null_platform_renderer.cc', |
| 351 ], |
| 352 'include_dirs': [ |
| 353 '<(directx_sdk_path)/Include', |
| 354 ], |
| 355 }], |
| 356 ['OS=="win" and clang==1', { |
| 357 'msvs_settings': { |
| 358 'VCCLCompilerTool': { |
| 359 'AdditionalOptions': [ |
| 360 # Disable warnings failing when compiling with Clang on Windows. |
| 361 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366 |
| 362 '-Wno-bool-conversion', |
| 363 '-Wno-comment', |
| 364 '-Wno-delete-non-virtual-dtor', |
| 365 ], |
| 366 }, |
| 367 }, |
| 368 }], |
| 369 ], |
| 370 'dependencies': [ |
| 371 '<(DEPTH)/testing/gtest.gyp:gtest', |
| 372 '<(webrtc_root)/modules/modules.gyp:media_file', |
| 373 'test_support', |
| 374 'video_test_common', |
| 375 ], |
| 376 'direct_dependent_settings': { |
| 377 'conditions': [ |
| 378 ['OS=="linux"', { |
| 379 'libraries': [ |
| 380 '-lXext', |
| 381 '-lX11', |
| 382 '-lGL', |
| 383 ], |
| 384 }], |
| 385 ['OS=="android"', { |
| 386 'libraries' : [ |
| 387 '-lGLESv2', '-llog', |
| 388 ], |
| 389 }], |
| 390 ['OS=="mac"', { |
| 391 'xcode_settings' : { |
| 392 'OTHER_LDFLAGS' : [ |
| 393 '-framework Cocoa', |
| 394 '-framework OpenGL', |
| 395 '-framework CoreVideo', |
| 396 ], |
| 397 }, |
| 398 }], |
| 399 ], |
| 400 }, |
| 401 }, |
243 ], | 402 ], |
244 'conditions': [ | 403 'conditions': [ |
245 ['include_tests==1 and OS=="android"', { | 404 ['include_tests==1 and OS=="android"', { |
246 'targets': [ | 405 'targets': [ |
247 { | 406 { |
248 'target_name': 'test_support_unittests_apk_target', | 407 'target_name': 'test_support_unittests_apk_target', |
249 'type': 'none', | 408 'type': 'none', |
250 'dependencies': [ | 409 'dependencies': [ |
251 '<(apk_tests_path):test_support_unittests_apk', | 410 '<(apk_tests_path):test_support_unittests_apk', |
252 ], | 411 ], |
(...skipping 12 matching lines...) Expand all Loading... |
265 '../build/isolate.gypi', | 424 '../build/isolate.gypi', |
266 ], | 425 ], |
267 'sources': [ | 426 'sources': [ |
268 'test_support_unittests.isolate', | 427 'test_support_unittests.isolate', |
269 ], | 428 ], |
270 }, | 429 }, |
271 ], | 430 ], |
272 }], | 431 }], |
273 ], | 432 ], |
274 } | 433 } |
OLD | NEW |