| 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/config/linux/pkg_config.gni") | 9 import("//build/config/linux/pkg_config.gni") |
| 10 import("../build/webrtc.gni") | 10 import("../build/webrtc.gni") |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 "-Wno-sign-compare", | 271 "-Wno-sign-compare", |
| 272 "-Wno-unused-function", | 272 "-Wno-unused-function", |
| 273 ] | 273 ] |
| 274 } | 274 } |
| 275 if (!is_win) { | 275 if (!is_win) { |
| 276 cflags = [ "-Wno-sign-compare" ] | 276 cflags = [ "-Wno-sign-compare" ] |
| 277 cflags_cc = [ "-Wno-overloaded-virtual" ] | 277 cflags_cc = [ "-Wno-overloaded-virtual" ] |
| 278 } | 278 } |
| 279 } | 279 } |
| 280 | 280 |
| 281 if (is_android || is_ios) { | 281 rtc_media_unittests_resources = [ |
| 282 rtc_media_unittests_resources = [ | 282 "//resources/media/captured-320x240-2s-48.frames", |
| 283 "//resources/media/captured-320x240-2s-48.frames", | 283 "//resources/media/faces.1280x720_P420.yuv", |
| 284 "//resources/media/faces.1280x720_P420.yuv", | 284 "//resources/media/faces_I420.jpg", |
| 285 "//resources/media/faces_I420.jpg", | 285 "//resources/media/faces_I422.jpg", |
| 286 "//resources/media/faces_I422.jpg", | 286 "//resources/media/faces_I444.jpg", |
| 287 "//resources/media/faces_I444.jpg", | 287 "//resources/media/faces_I411.jpg", |
| 288 "//resources/media/faces_I411.jpg", | 288 "//resources/media/faces_I400.jpg", |
| 289 "//resources/media/faces_I400.jpg", | 289 ] |
| 290 ] | |
| 291 } | |
| 292 | 290 |
| 293 if (is_ios) { | 291 if (is_ios) { |
| 294 bundle_data("rtc_media_unittests_bundle_data") { | 292 bundle_data("rtc_media_unittests_bundle_data") { |
| 295 testonly = true | 293 testonly = true |
| 296 sources = rtc_media_unittests_resources | 294 sources = rtc_media_unittests_resources |
| 297 outputs = [ | 295 outputs = [ |
| 298 "{{bundle_resources_dir}}/{{source_file_part}}", | 296 "{{bundle_resources_dir}}/{{source_file_part}}", |
| 299 ] | 297 ] |
| 300 } | 298 } |
| 301 } | 299 } |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 } | 342 } |
| 345 | 343 |
| 346 if (is_clang) { | 344 if (is_clang) { |
| 347 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 345 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 348 suppressed_configs += [ | 346 suppressed_configs += [ |
| 349 "//build/config/clang:extra_warnings", | 347 "//build/config/clang:extra_warnings", |
| 350 "//build/config/clang:find_bad_constructs", | 348 "//build/config/clang:find_bad_constructs", |
| 351 ] | 349 ] |
| 352 } | 350 } |
| 353 | 351 |
| 352 data = rtc_media_unittests_resources |
| 353 |
| 354 if (is_android) { | 354 if (is_android) { |
| 355 deps += [ "//testing/android/native_test:native_test_support" ] | 355 deps += [ "//testing/android/native_test:native_test_support" ] |
| 356 data = rtc_media_unittests_resources | |
| 357 shard_timeout = 900 | 356 shard_timeout = 900 |
| 358 } | 357 } |
| 359 | 358 |
| 360 if (is_ios) { | 359 if (is_ios) { |
| 361 deps += [ ":rtc_media_unittests_bundle_data" ] | 360 deps += [ ":rtc_media_unittests_bundle_data" ] |
| 362 } | 361 } |
| 363 | 362 |
| 364 deps += [ | 363 deps += [ |
| 365 # TODO(kjellander): Move as part of work in bugs.webrtc.org/4243. | 364 # TODO(kjellander): Move as part of work in bugs.webrtc.org/4243. |
| 366 ":rtc_media", | 365 ":rtc_media", |
| 367 ":rtc_unittest_main", | 366 ":rtc_unittest_main", |
| 368 "../audio", | 367 "../audio", |
| 369 "../base:rtc_base_tests_utils", | 368 "../base:rtc_base_tests_utils", |
| 370 "../system_wrappers:metrics_default", | 369 "../system_wrappers:metrics_default", |
| 371 ] | 370 ] |
| 372 } | 371 } |
| 373 } | 372 } |
| OLD | NEW |