| OLD | NEW |
| 1 # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2016 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("audio_coding/audio_coding.gni") | 10 import("audio_coding/audio_coding.gni") |
| 11 import("//testing/test.gni") | |
| 12 | 11 |
| 13 declare_args() { | 12 declare_args() { |
| 14 # Desktop capturer is supported only on Windows, OSX and Linux. | 13 # Desktop capturer is supported only on Windows, OSX and Linux. |
| 15 rtc_desktop_capture_supported = is_win || is_mac || is_linux | 14 rtc_desktop_capture_supported = is_win || is_mac || is_linux |
| 16 } | 15 } |
| 17 | 16 |
| 18 group("modules") { | 17 group("modules") { |
| 19 deps = [ | 18 deps = [ |
| 20 "audio_coding", | 19 "audio_coding", |
| 21 "audio_conference_mixer", | 20 "audio_conference_mixer", |
| (...skipping 23 matching lines...) Expand all Loading... |
| 45 if (is_ios) { | 44 if (is_ios) { |
| 46 bundle_data("modules_tests_bundle_data") { | 45 bundle_data("modules_tests_bundle_data") { |
| 47 testonly = true | 46 testonly = true |
| 48 sources = modules_tests_resources | 47 sources = modules_tests_resources |
| 49 outputs = [ | 48 outputs = [ |
| 50 "{{bundle_resources_dir}}/{{source_file_part}}", | 49 "{{bundle_resources_dir}}/{{source_file_part}}", |
| 51 ] | 50 ] |
| 52 } | 51 } |
| 53 } | 52 } |
| 54 | 53 |
| 55 test("modules_tests") { | 54 rtc_test("modules_tests") { |
| 56 testonly = true | 55 testonly = true |
| 57 | 56 |
| 58 configs += [ "..:common_config" ] | 57 configs += [ "..:common_config" ] |
| 59 public_configs = [ "..:common_inherited_config" ] | 58 public_configs = [ "..:common_inherited_config" ] |
| 60 | 59 |
| 61 videoprocessor_defines = [] | 60 videoprocessor_defines = [] |
| 62 if (rtc_use_h264) { | 61 if (rtc_use_h264) { |
| 63 videoprocessor_defines += [ "WEBRTC_VIDEOPROCESSOR_H264_TESTS" ] | 62 videoprocessor_defines += [ "WEBRTC_VIDEOPROCESSOR_H264_TESTS" ] |
| 64 } | 63 } |
| 65 | 64 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 data = modules_tests_resources | 105 data = modules_tests_resources |
| 107 shard_timeout = 900 | 106 shard_timeout = 900 |
| 108 } | 107 } |
| 109 | 108 |
| 110 if (is_ios) { | 109 if (is_ios) { |
| 111 deps += [ ":modules_tests_bundle_data" ] | 110 deps += [ ":modules_tests_bundle_data" ] |
| 112 } | 111 } |
| 113 | 112 |
| 114 if (is_clang) { | 113 if (is_clang) { |
| 115 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 114 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 116 configs -= [ "//build/config/clang:find_bad_constructs" ] | 115 configs_suppressions += [ "//build/config/clang:find_bad_constructs" ] |
| 117 } | 116 } |
| 118 if (is_win) { | 117 if (is_win) { |
| 119 cflags = [ | 118 cflags = [ |
| 120 # TODO(phoglund): get rid of 4373 supression when | 119 # TODO(phoglund): get rid of 4373 supression when |
| 121 # http://code.google.com/p/webrtc/issues/detail?id=261 is solved. | 120 # http://code.google.com/p/webrtc/issues/detail?id=261 is solved. |
| 122 # legacy warning for ignoring const / volatile in signatures. | 121 # legacy warning for ignoring const / volatile in signatures. |
| 123 "/wd4373", | 122 "/wd4373", |
| 124 ] | 123 ] |
| 125 } | 124 } |
| 126 } | 125 } |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 if (is_ios) { | 232 if (is_ios) { |
| 234 bundle_data("modules_unittests_bundle_data") { | 233 bundle_data("modules_unittests_bundle_data") { |
| 235 testonly = true | 234 testonly = true |
| 236 sources = modules_unittests_resources | 235 sources = modules_unittests_resources |
| 237 outputs = [ | 236 outputs = [ |
| 238 "{{bundle_resources_dir}}/{{source_file_part}}", | 237 "{{bundle_resources_dir}}/{{source_file_part}}", |
| 239 ] | 238 ] |
| 240 } | 239 } |
| 241 } | 240 } |
| 242 | 241 |
| 243 test("modules_unittests") { | 242 rtc_test("modules_unittests") { |
| 244 testonly = true | 243 testonly = true |
| 245 | 244 |
| 246 defines = audio_coding_defines | 245 defines = audio_coding_defines |
| 247 deps = [] | 246 deps = [] |
| 248 sources = [ | 247 sources = [ |
| 249 "audio_coding/acm2/acm_receiver_unittest_oldapi.cc", | 248 "audio_coding/acm2/acm_receiver_unittest_oldapi.cc", |
| 250 "audio_coding/acm2/audio_coding_module_unittest_oldapi.cc", | 249 "audio_coding/acm2/audio_coding_module_unittest_oldapi.cc", |
| 251 "audio_coding/acm2/call_statistics_unittest.cc", | 250 "audio_coding/acm2/call_statistics_unittest.cc", |
| 252 "audio_coding/acm2/codec_manager_unittest.cc", | 251 "audio_coding/acm2/codec_manager_unittest.cc", |
| 253 "audio_coding/acm2/initial_delay_manager_unittest.cc", | 252 "audio_coding/acm2/initial_delay_manager_unittest.cc", |
| (...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 564 } | 563 } |
| 565 | 564 |
| 566 configs += [ "..:common_config" ] | 565 configs += [ "..:common_config" ] |
| 567 public_configs = [ "..:common_inherited_config" ] | 566 public_configs = [ "..:common_inherited_config" ] |
| 568 | 567 |
| 569 # TODO(jschuh): bugs.webrtc.org/1348: fix this warning. | 568 # TODO(jschuh): bugs.webrtc.org/1348: fix this warning. |
| 570 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 569 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 571 | 570 |
| 572 if (is_clang) { | 571 if (is_clang) { |
| 573 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 572 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 574 configs -= [ "//build/config/clang:find_bad_constructs" ] | 573 configs_suppressions += [ "//build/config/clang:find_bad_constructs" ] |
| 575 } | 574 } |
| 576 | 575 |
| 577 if (is_win) { | 576 if (is_win) { |
| 578 cflags = [ | 577 cflags = [ |
| 579 # TODO(kjellander): bugs.webrtc.org/261: Fix this warning. | 578 # TODO(kjellander): bugs.webrtc.org/261: Fix this warning. |
| 580 "/wd4373", # virtual function override. | 579 "/wd4373", # virtual function override. |
| 581 ] | 580 ] |
| 582 } | 581 } |
| 583 | 582 |
| 584 deps += [ | 583 deps += [ |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 658 sources += [ | 657 sources += [ |
| 659 "audio_device/ios/audio_device_unittest_ios.cc", | 658 "audio_device/ios/audio_device_unittest_ios.cc", |
| 660 "audio_device/ios/objc/RTCAudioSessionTest.mm", | 659 "audio_device/ios/objc/RTCAudioSessionTest.mm", |
| 661 "video_coding/codecs/h264/h264_video_toolbox_nalu_unittest.cc", | 660 "video_coding/codecs/h264/h264_video_toolbox_nalu_unittest.cc", |
| 662 ] | 661 ] |
| 663 | 662 |
| 664 ldflags = [ "-ObjC" ] | 663 ldflags = [ "-ObjC" ] |
| 665 } | 664 } |
| 666 } | 665 } |
| 667 } | 666 } |
| OLD | NEW |