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 # TODO(kjellander): Rebase this to webrtc/build/common.gypi changes after r6330. | 9 # TODO(kjellander): Rebase this to webrtc/build/common.gypi changes after r6330. |
10 | 10 |
11 import("//build/config/linux/pkg_config.gni") | 11 import("//build/config/linux/pkg_config.gni") |
12 import("//build/config/sanitizers/sanitizers.gni") | 12 import("//build/config/sanitizers/sanitizers.gni") |
13 import("build/webrtc.gni") | 13 import("build/webrtc.gni") |
14 import("//testing/test.gni") | |
15 import("//third_party/protobuf/proto_library.gni") | 14 import("//third_party/protobuf/proto_library.gni") |
16 | 15 |
17 # Contains the defines and includes in common.gypi that are duplicated both as | 16 # Contains the defines and includes in common.gypi that are duplicated both as |
18 # target_defaults and direct_dependent_settings. | 17 # target_defaults and direct_dependent_settings. |
19 config("common_inherited_config") { | 18 config("common_inherited_config") { |
20 defines = [] | 19 defines = [] |
21 cflags = [] | 20 cflags = [] |
22 ldflags = [] | 21 ldflags = [] |
23 if (build_with_mozilla) { | 22 if (build_with_mozilla) { |
24 defines += [ "WEBRTC_MOZILLA_BUILD" ] | 23 defines += [ "WEBRTC_MOZILLA_BUILD" ] |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 } | 232 } |
234 } | 233 } |
235 | 234 |
236 config("common_objc") { | 235 config("common_objc") { |
237 libs = [ "Foundation.framework" ] | 236 libs = [ "Foundation.framework" ] |
238 precompiled_header = "sdk/objc/WebRTC-Prefix.pch" | 237 precompiled_header = "sdk/objc/WebRTC-Prefix.pch" |
239 precompiled_source = "sdk/objc/WebRTC-Prefix.pch" | 238 precompiled_source = "sdk/objc/WebRTC-Prefix.pch" |
240 } | 239 } |
241 | 240 |
242 if (!is_ios || !build_with_chromium) { | 241 if (!is_ios || !build_with_chromium) { |
243 source_set("webrtc") { | 242 rtc_source_set("webrtc") { |
244 sources = [ | 243 sources = [ |
245 "call.h", | 244 "call.h", |
246 "config.h", | 245 "config.h", |
247 "transport.h", | 246 "transport.h", |
248 ] | 247 ] |
249 | 248 |
250 defines = [] | 249 defines = [] |
251 configs += [ ":common_config" ] | 250 configs += [ ":common_config" ] |
252 public_configs = [ ":common_inherited_config" ] | 251 public_configs = [ ":common_inherited_config" ] |
253 | 252 |
(...skipping 26 matching lines...) Expand all Loading... |
280 } | 279 } |
281 | 280 |
282 if (rtc_enable_protobuf) { | 281 if (rtc_enable_protobuf) { |
283 defines += [ "ENABLE_RTC_EVENT_LOG" ] | 282 defines += [ "ENABLE_RTC_EVENT_LOG" ] |
284 deps += [ ":rtc_event_log_proto" ] | 283 deps += [ ":rtc_event_log_proto" ] |
285 } | 284 } |
286 } | 285 } |
287 } | 286 } |
288 | 287 |
289 if (!build_with_chromium) { | 288 if (!build_with_chromium) { |
290 executable("webrtc_tests") { | 289 rtc_executable("webrtc_tests") { |
291 testonly = true | 290 testonly = true |
292 deps = [ | 291 deps = [ |
293 ":webrtc", | 292 ":webrtc", |
294 "modules/video_capture:video_capture_internal_impl", | 293 "modules/video_capture:video_capture_internal_impl", |
295 "test", | 294 "test", |
296 "//build/config/sanitizers:deps", | 295 "//build/config/sanitizers:deps", |
297 ] | 296 ] |
298 } | 297 } |
299 | 298 |
300 executable("video_loopback") { | 299 rtc_executable("video_loopback") { |
301 testonly = true | 300 testonly = true |
302 sources = [ | 301 sources = [ |
303 "test/run_test.h", | 302 "test/run_test.h", |
304 "video/video_loopback.cc", | 303 "video/video_loopback.cc", |
305 ] | 304 ] |
306 | 305 |
307 if (is_mac) { | 306 if (is_mac) { |
308 sources += [ "test/mac/run_test.mm" ] | 307 sources += [ "test/mac/run_test.mm" ] |
309 } else { | 308 } else { |
310 sources += [ "test/run_test.cc" ] | 309 sources += [ "test/run_test.cc" ] |
311 } | 310 } |
312 deps = [ | 311 deps = [ |
313 ":video_quality_test", | 312 ":video_quality_test", |
314 "system_wrappers:metrics_default", | 313 "system_wrappers:metrics_default", |
315 "test:field_trial", | 314 "test:field_trial", |
316 "test:test_common", | 315 "test:test_common", |
317 "test:test_renderer", | 316 "test:test_renderer", |
318 "//build/config/sanitizers:deps", | 317 "//build/config/sanitizers:deps", |
319 "//testing/gmock", | 318 "//testing/gmock", |
320 "//testing/gtest", | 319 "//testing/gtest", |
321 "//third_party/gflags", | 320 "//third_party/gflags", |
322 ] | 321 ] |
323 if (is_clang && !is_nacl) { | 322 if (is_clang && !is_nacl) { |
324 # Suppress warnings from Chrome's Clang plugins. | 323 # Suppress warnings from Chrome's Clang plugins. |
325 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 324 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
326 configs -= [ "//build/config/clang:find_bad_constructs" ] | 325 configs_suppressions += [ "//build/config/clang:find_bad_constructs" ] |
327 } | 326 } |
328 } | 327 } |
329 } | 328 } |
330 | 329 |
331 source_set("webrtc_common") { | 330 rtc_source_set("webrtc_common") { |
332 sources = [ | 331 sources = [ |
333 "audio_sink.h", | 332 "audio_sink.h", |
334 "common.cc", | 333 "common.cc", |
335 "common.h", | 334 "common.h", |
336 "common_types.cc", | 335 "common_types.cc", |
337 "common_types.h", | 336 "common_types.h", |
338 "config.cc", | 337 "config.cc", |
339 "config.h", | 338 "config.h", |
340 "engine_configurations.h", | 339 "engine_configurations.h", |
341 "typedefs.h", | 340 "typedefs.h", |
342 ] | 341 ] |
343 | 342 |
344 configs += [ ":common_config" ] | 343 configs += [ ":common_config" ] |
345 public_configs = [ ":common_inherited_config" ] | 344 public_configs = [ ":common_inherited_config" ] |
346 | 345 |
347 if (is_clang && !is_nacl) { | 346 if (is_clang && !is_nacl) { |
348 # Suppress warnings from Chrome's Clang plugins. | 347 # Suppress warnings from Chrome's Clang plugins. |
349 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 348 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
350 configs -= [ "//build/config/clang:find_bad_constructs" ] | 349 configs_suppressions += [ "//build/config/clang:find_bad_constructs" ] |
351 } | 350 } |
352 } | 351 } |
353 | 352 |
354 if (rtc_enable_protobuf) { | 353 if (rtc_enable_protobuf) { |
355 proto_library("rtc_event_log_proto") { | 354 proto_library("rtc_event_log_proto") { |
356 sources = [ | 355 sources = [ |
357 "call/rtc_event_log.proto", | 356 "call/rtc_event_log.proto", |
358 ] | 357 ] |
359 proto_out_dir = "webrtc/call" | 358 proto_out_dir = "webrtc/call" |
360 } | 359 } |
361 } | 360 } |
362 | 361 |
363 source_set("rtc_event_log") { | 362 rtc_source_set("rtc_event_log") { |
364 sources = [ | 363 sources = [ |
365 "call/rtc_event_log.cc", | 364 "call/rtc_event_log.cc", |
366 "call/rtc_event_log.h", | 365 "call/rtc_event_log.h", |
367 "call/rtc_event_log_helper_thread.cc", | 366 "call/rtc_event_log_helper_thread.cc", |
368 "call/rtc_event_log_helper_thread.h", | 367 "call/rtc_event_log_helper_thread.h", |
369 ] | 368 ] |
370 | 369 |
371 defines = [] | 370 defines = [] |
372 configs += [ ":common_config" ] | 371 configs += [ ":common_config" ] |
373 public_configs = [ ":common_inherited_config" ] | 372 public_configs = [ ":common_inherited_config" ] |
374 | 373 |
375 deps = [ | 374 deps = [ |
376 ":webrtc_common", | 375 ":webrtc_common", |
377 "modules/rtp_rtcp", | 376 "modules/rtp_rtcp", |
378 ] | 377 ] |
379 | 378 |
380 if (rtc_enable_protobuf) { | 379 if (rtc_enable_protobuf) { |
381 defines += [ "ENABLE_RTC_EVENT_LOG" ] | 380 defines += [ "ENABLE_RTC_EVENT_LOG" ] |
382 deps += [ ":rtc_event_log_proto" ] | 381 deps += [ ":rtc_event_log_proto" ] |
383 } | 382 } |
384 if (is_clang && !is_nacl) { | 383 if (is_clang && !is_nacl) { |
385 # Suppress warnings from Chrome's Clang plugins. | 384 # Suppress warnings from Chrome's Clang plugins. |
386 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 385 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
387 configs -= [ "//build/config/clang:find_bad_constructs" ] | 386 configs_suppressions += [ "//build/config/clang:find_bad_constructs" ] |
388 } | 387 } |
389 } | 388 } |
390 | 389 |
391 if (rtc_enable_protobuf) { | 390 if (rtc_enable_protobuf) { |
392 source_set("rtc_event_log_parser") { | 391 rtc_source_set("rtc_event_log_parser") { |
393 sources = [ | 392 sources = [ |
394 "call/rtc_event_log_parser.cc", | 393 "call/rtc_event_log_parser.cc", |
395 "call/rtc_event_log_parser.h", | 394 "call/rtc_event_log_parser.h", |
396 ] | 395 ] |
397 | 396 |
398 configs += [ ":common_config" ] | 397 configs += [ ":common_config" ] |
399 public_configs = [ ":common_inherited_config" ] | 398 public_configs = [ ":common_inherited_config" ] |
400 | 399 |
401 public_deps = [ | 400 public_deps = [ |
402 ":rtc_event_log_proto", | 401 ":rtc_event_log_proto", |
403 ":webrtc_common", | 402 ":webrtc_common", |
404 ] | 403 ] |
405 | 404 |
406 if (is_clang && !is_nacl) { | 405 if (is_clang && !is_nacl) { |
407 # Suppress warnings from Chrome's Clang plugins. | 406 # Suppress warnings from Chrome's Clang plugins. |
408 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 407 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
409 configs -= [ "//build/config/clang:find_bad_constructs" ] | 408 configs_suppressions += [ "//build/config/clang:find_bad_constructs" ] |
410 } | 409 } |
411 } | 410 } |
412 } | 411 } |
413 | 412 |
414 if (use_libfuzzer || use_drfuzz || use_afl) { | 413 if (use_libfuzzer || use_drfuzz || use_afl) { |
415 # This target is only here for gn to discover fuzzer build targets under | 414 # This target is only here for gn to discover fuzzer build targets under |
416 # webrtc/test/fuzzers/. | 415 # webrtc/test/fuzzers/. |
417 group("webrtc_fuzzers_dummy") { | 416 group("webrtc_fuzzers_dummy") { |
418 testonly = true | 417 testonly = true |
419 deps = [ | 418 deps = [ |
420 "test/fuzzers:webrtc_fuzzer_main", | 419 "test/fuzzers:webrtc_fuzzer_main", |
421 ] | 420 ] |
422 } | 421 } |
423 } | 422 } |
424 | 423 |
425 if (rtc_include_tests) { | 424 if (rtc_include_tests) { |
426 config("rtc_unittests_config") { | 425 config("rtc_unittests_config") { |
427 # GN orders flags on a target before flags from configs. The default config | 426 # GN orders flags on a target before flags from configs. The default config |
428 # adds -Wall, and this flag have to be after -Wall -- so they need to | 427 # adds -Wall, and this flag have to be after -Wall -- so they need to |
429 # come from a config and can"t be on the target directly. | 428 # come from a config and can"t be on the target directly. |
430 if (is_clang) { | 429 if (is_clang) { |
431 cflags = [ | 430 cflags = [ |
432 "-Wno-missing-braces", | 431 "-Wno-missing-braces", |
433 "-Wno-sign-compare", | 432 "-Wno-sign-compare", |
434 "-Wno-unused-const-variable", | 433 "-Wno-unused-const-variable", |
435 ] | 434 ] |
436 } | 435 } |
437 } | 436 } |
438 | 437 |
439 test("rtc_unittests") { | 438 rtc_test("rtc_unittests") { |
440 testonly = true | 439 testonly = true |
441 sources = [ | 440 sources = [ |
442 "base/array_view_unittest.cc", | 441 "base/array_view_unittest.cc", |
443 "base/atomicops_unittest.cc", | 442 "base/atomicops_unittest.cc", |
444 "base/autodetectproxy_unittest.cc", | 443 "base/autodetectproxy_unittest.cc", |
445 "base/bandwidthsmoother_unittest.cc", | 444 "base/bandwidthsmoother_unittest.cc", |
446 "base/base64_unittest.cc", | 445 "base/base64_unittest.cc", |
447 "base/basictypes_unittest.cc", | 446 "base/basictypes_unittest.cc", |
448 "base/bind_unittest.cc", | 447 "base/bind_unittest.cc", |
449 "base/bitbuffer_unittest.cc", | 448 "base/bitbuffer_unittest.cc", |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
590 | 589 |
591 configs += [ | 590 configs += [ |
592 ":common_config", | 591 ":common_config", |
593 ":rtc_unittests_config", | 592 ":rtc_unittests_config", |
594 ] | 593 ] |
595 public_configs = [ ":common_inherited_config" ] | 594 public_configs = [ ":common_inherited_config" ] |
596 | 595 |
597 if (is_clang) { | 596 if (is_clang) { |
598 # Suppress warnings from the Chromium Clang plugin. | 597 # Suppress warnings from the Chromium Clang plugin. |
599 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 598 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
600 configs -= [ "//build/config/clang:find_bad_constructs" ] | 599 configs_suppressions += [ "//build/config/clang:find_bad_constructs" ] |
601 } | 600 } |
602 | 601 |
603 deps = [ | 602 deps = [ |
604 "base:rtc_base", | 603 "base:rtc_base", |
605 "base:rtc_base_tests_utils", | 604 "base:rtc_base_tests_utils", |
606 "base:rtc_task_queue", | 605 "base:rtc_task_queue", |
607 "p2p:libstunprober", | 606 "p2p:libstunprober", |
608 "p2p:rtc_p2p", | 607 "p2p:rtc_p2p", |
609 "//testing/gmock", | 608 "//testing/gmock", |
610 "//testing/gtest", | 609 "//testing/gtest", |
(...skipping 21 matching lines...) Expand all Loading... |
632 # TODO(tkchin): Cleanup this warning. | 631 # TODO(tkchin): Cleanup this warning. |
633 cflags = [ "-Wno-objc-property-no-attribute" ] | 632 cflags = [ "-Wno-objc-property-no-attribute" ] |
634 | 633 |
635 # |-ObjC| flag needed to make sure category method implementations | 634 # |-ObjC| flag needed to make sure category method implementations |
636 # are included: | 635 # are included: |
637 # https://developer.apple.com/library/mac/qa/qa1490/_index.html | 636 # https://developer.apple.com/library/mac/qa/qa1490/_index.html |
638 ldflags = [ "-ObjC" ] | 637 ldflags = [ "-ObjC" ] |
639 } | 638 } |
640 } | 639 } |
641 | 640 |
642 test("xmllite_xmpp_unittests") { | 641 rtc_test("xmllite_xmpp_unittests") { |
643 configs += [ | 642 configs += [ |
644 ":common_config", | 643 ":common_config", |
645 ":rtc_unittests_config", | 644 ":rtc_unittests_config", |
646 ] | 645 ] |
647 public_configs = [ ":common_inherited_config" ] | 646 public_configs = [ ":common_inherited_config" ] |
648 | 647 |
649 if (is_clang) { | 648 if (is_clang) { |
650 # Suppress warnings from the Chromium Clang plugin. | 649 # Suppress warnings from the Chromium Clang plugin. |
651 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 650 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
652 configs -= [ "//build/config/clang:find_bad_constructs" ] | 651 configs_suppressions += [ "//build/config/clang:find_bad_constructs" ] |
653 } | 652 } |
654 | 653 |
655 deps = [ | 654 deps = [ |
656 "base:rtc_base_tests_utils", | 655 "base:rtc_base_tests_utils", |
657 "libjingle/xmllite:rtc_xmllite", | 656 "libjingle/xmllite:rtc_xmllite", |
658 "libjingle/xmpp:rtc_xmpp", | 657 "libjingle/xmpp:rtc_xmpp", |
659 "//testing/gtest", | 658 "//testing/gtest", |
660 ] | 659 ] |
661 | 660 |
662 sources = [ | 661 sources = [ |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
695 if (is_ios) { | 694 if (is_ios) { |
696 bundle_data("video_engine_tests_bundle_data") { | 695 bundle_data("video_engine_tests_bundle_data") { |
697 testonly = true | 696 testonly = true |
698 sources = video_engine_tests_resources | 697 sources = video_engine_tests_resources |
699 outputs = [ | 698 outputs = [ |
700 "{{bundle_resources_dir}}/{{source_file_part}}", | 699 "{{bundle_resources_dir}}/{{source_file_part}}", |
701 ] | 700 ] |
702 } | 701 } |
703 } | 702 } |
704 | 703 |
705 test("video_engine_tests") { | 704 rtc_test("video_engine_tests") { |
706 testonly = true | 705 testonly = true |
707 deps = [ | 706 deps = [ |
708 "audio:audio_tests", | 707 "audio:audio_tests", |
709 "call:call_tests", | 708 "call:call_tests", |
710 "modules/video_capture", | 709 "modules/video_capture", |
711 "test:test_common", | 710 "test:test_common", |
712 "test:test_main", | 711 "test:test_main", |
713 "video:video_tests", | 712 "video:video_tests", |
714 ] | 713 ] |
715 if (is_clang) { | 714 if (is_clang) { |
716 # Suppress warnings from the Chromium Clang plugin. | 715 # Suppress warnings from the Chromium Clang plugin. |
717 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 716 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
718 configs -= [ "//build/config/clang:find_bad_constructs" ] | 717 configs_suppressions += [ "//build/config/clang:find_bad_constructs" ] |
719 } | 718 } |
720 if (is_android) { | 719 if (is_android) { |
721 deps += [ "//testing/android/native_test:native_test_native_code" ] | 720 deps += [ "//testing/android/native_test:native_test_native_code" ] |
722 data = video_engine_tests_resources | 721 data = video_engine_tests_resources |
723 shard_timeout = 900 | 722 shard_timeout = 900 |
724 } | 723 } |
725 | 724 |
726 if (is_ios) { | 725 if (is_ios) { |
727 deps += [ ":video_engine_tests_bundle_data" ] | 726 deps += [ ":video_engine_tests_bundle_data" ] |
728 } | 727 } |
729 } | 728 } |
730 | 729 |
731 source_set("video_quality_test") { | 730 rtc_source_set("video_quality_test") { |
732 testonly = true | 731 testonly = true |
733 configs += [ ":common_config" ] | 732 configs += [ ":common_config" ] |
734 public_configs = [ ":common_inherited_config" ] | 733 public_configs = [ ":common_inherited_config" ] |
735 sources = [ | 734 sources = [ |
736 "video/video_quality_test.cc", | 735 "video/video_quality_test.cc", |
737 "video/video_quality_test.h", | 736 "video/video_quality_test.h", |
738 ] | 737 ] |
739 deps = [ | 738 deps = [ |
740 ":webrtc", | 739 ":webrtc", |
741 "system_wrappers", | 740 "system_wrappers", |
742 "//testing/gtest", | 741 "//testing/gtest", |
743 ] | 742 ] |
744 if (!is_android) { | 743 if (!is_android) { |
745 deps += [ "modules/video_capture:video_capture_internal_impl" ] | 744 deps += [ "modules/video_capture:video_capture_internal_impl" ] |
746 } | 745 } |
747 if (is_clang) { | 746 if (is_clang) { |
748 # Suppress warnings from the Chromium Clang plugin. | 747 # Suppress warnings from the Chromium Clang plugin. |
749 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 748 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
750 configs -= [ "//build/config/clang:find_bad_constructs" ] | 749 configs_suppressions += [ "//build/config/clang:find_bad_constructs" ] |
751 } | 750 } |
752 } | 751 } |
753 | 752 |
754 if (is_android || is_ios) { | 753 if (is_android || is_ios) { |
755 webrtc_perf_tests_resources = [ | 754 webrtc_perf_tests_resources = [ |
756 "//resources/audio_coding/speech_mono_16kHz.pcm", | 755 "//resources/audio_coding/speech_mono_16kHz.pcm", |
757 "//resources/audio_coding/testfile32kHz.pcm", | 756 "//resources/audio_coding/testfile32kHz.pcm", |
758 "//resources/ConferenceMotion_1280_720_50.yuv", | 757 "//resources/ConferenceMotion_1280_720_50.yuv", |
759 "//resources/difficult_photo_1850_1110.yuv", | 758 "//resources/difficult_photo_1850_1110.yuv", |
760 "//resources/foreman_cif.yuv", | 759 "//resources/foreman_cif.yuv", |
(...skipping 10 matching lines...) Expand all Loading... |
771 if (is_ios) { | 770 if (is_ios) { |
772 bundle_data("webrtc_perf_tests_bundle_data") { | 771 bundle_data("webrtc_perf_tests_bundle_data") { |
773 testonly = true | 772 testonly = true |
774 sources = webrtc_perf_tests_resources | 773 sources = webrtc_perf_tests_resources |
775 outputs = [ | 774 outputs = [ |
776 "{{bundle_resources_dir}}/{{source_file_part}}", | 775 "{{bundle_resources_dir}}/{{source_file_part}}", |
777 ] | 776 ] |
778 } | 777 } |
779 } | 778 } |
780 | 779 |
781 test("webrtc_perf_tests") { | 780 rtc_test("webrtc_perf_tests") { |
782 testonly = true | 781 testonly = true |
783 configs += [ | 782 configs += [ |
784 ":common_config", | 783 ":common_config", |
785 ":rtc_unittests_config", | 784 ":rtc_unittests_config", |
786 ] | 785 ] |
787 public_configs = [ ":common_inherited_config" ] | 786 public_configs = [ ":common_inherited_config" ] |
788 | 787 |
789 if (!is_debug) { | 788 if (!is_debug) { |
790 configs -= [ "//build/config/compiler:default_optimization" ] | 789 configs_suppressions += [ "//build/config/compiler:default_optimization" ] |
791 configs += [ "//build/config/compiler:optimize_max" ] | 790 configs += [ "//build/config/compiler:optimize_max" ] |
792 } | 791 } |
793 | 792 |
794 sources = [ | 793 sources = [ |
795 "call/call_perf_tests.cc", | 794 "call/call_perf_tests.cc", |
796 "call/rampup_tests.cc", | 795 "call/rampup_tests.cc", |
797 "call/rampup_tests.h", | 796 "call/rampup_tests.h", |
798 "modules/audio_coding/neteq/test/neteq_performance_unittest.cc", | 797 "modules/audio_coding/neteq/test/neteq_performance_unittest.cc", |
799 "modules/audio_processing/audio_processing_performance_unittest.cc", | 798 "modules/audio_processing/audio_processing_performance_unittest.cc", |
800 "modules/audio_processing/level_controller/level_controller_complexity_uni
ttest.cc", | 799 "modules/audio_processing/level_controller/level_controller_complexity_uni
ttest.cc", |
(...skipping 20 matching lines...) Expand all Loading... |
821 deps += [ "//testing/android/native_test:native_test_native_code" ] | 820 deps += [ "//testing/android/native_test:native_test_native_code" ] |
822 data = webrtc_perf_tests_resources | 821 data = webrtc_perf_tests_resources |
823 shard_timeout = 2700 | 822 shard_timeout = 2700 |
824 } | 823 } |
825 if (is_ios) { | 824 if (is_ios) { |
826 deps += [ ":webrtc_perf_tests_bundle_data" ] | 825 deps += [ ":webrtc_perf_tests_bundle_data" ] |
827 } | 826 } |
828 if (is_clang) { | 827 if (is_clang) { |
829 # Suppress warnings from the Chromium Clang plugin. | 828 # Suppress warnings from the Chromium Clang plugin. |
830 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 829 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
831 configs -= [ "//build/config/clang:find_bad_constructs" ] | 830 configs_suppressions += [ "//build/config/clang:find_bad_constructs" ] |
832 } | 831 } |
833 } | 832 } |
834 | 833 |
835 test("webrtc_nonparallel_tests") { | 834 rtc_test("webrtc_nonparallel_tests") { |
836 testonly = true | 835 testonly = true |
837 configs += [ | 836 configs += [ |
838 ":common_config", | 837 ":common_config", |
839 ":rtc_unittests_config", | 838 ":rtc_unittests_config", |
840 ] | 839 ] |
841 public_configs = [ ":common_inherited_config" ] | 840 public_configs = [ ":common_inherited_config" ] |
842 sources = [ | 841 sources = [ |
843 "base/nullsocketserver_unittest.cc", | 842 "base/nullsocketserver_unittest.cc", |
844 "base/physicalsocketserver_unittest.cc", | 843 "base/physicalsocketserver_unittest.cc", |
845 "base/socket_unittest.cc", | 844 "base/socket_unittest.cc", |
(...skipping 16 matching lines...) Expand all Loading... |
862 | 861 |
863 if (is_mac) { | 862 if (is_mac) { |
864 sources += [ "base/macsocketserver_unittest.cc" ] | 863 sources += [ "base/macsocketserver_unittest.cc" ] |
865 } | 864 } |
866 if (is_ios || (is_mac && target_cpu != "x86")) { | 865 if (is_ios || (is_mac && target_cpu != "x86")) { |
867 defines = [ "CARBON_DEPRECATED=YES" ] | 866 defines = [ "CARBON_DEPRECATED=YES" ] |
868 } | 867 } |
869 if (is_clang) { | 868 if (is_clang) { |
870 # Suppress warnings from the Chromium Clang plugin. | 869 # Suppress warnings from the Chromium Clang plugin. |
871 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 870 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
872 configs -= [ "//build/config/clang:find_bad_constructs" ] | 871 configs_suppressions += [ "//build/config/clang:find_bad_constructs" ] |
873 } | 872 } |
874 } | 873 } |
875 } | 874 } |
OLD | NEW |