Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(127)

Side by Side Diff: webrtc/media/BUILD.gn

Issue 2292853002: GN: Fix resource files for iOS test target (Closed)
Patch Set: Moved declaration to before first use for Android Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 "-Wno-sign-compare", 291 "-Wno-sign-compare",
292 "-Wno-unused-function", 292 "-Wno-unused-function",
293 ] 293 ]
294 } 294 }
295 if (!is_win) { 295 if (!is_win) {
296 cflags = [ "-Wno-sign-compare" ] 296 cflags = [ "-Wno-sign-compare" ]
297 cflags_cc = [ "-Wno-overloaded-virtual" ] 297 cflags_cc = [ "-Wno-overloaded-virtual" ]
298 } 298 }
299 } 299 }
300 300
301 if (is_android || is_ios) {
302 rtc_media_unittests_resources = [
303 "//resources/media/captured-320x240-2s-48.frames",
304 "//resources/media/faces.1280x720_P420.yuv",
305 "//resources/media/faces_I420.jpg",
306 "//resources/media/faces_I422.jpg",
307 "//resources/media/faces_I444.jpg",
308 "//resources/media/faces_I411.jpg",
309 "//resources/media/faces_I400.jpg",
310 ]
311 }
312
313 if (is_ios) {
314 bundle_data("rtc_media_unittests_bundle_data") {
315 testonly = true
316 sources = rtc_media_unittests_resources
317 outputs = [
318 "{{bundle_resources_dir}}/{{source_file_part}}",
319 ]
320 }
321 }
322
301 test("rtc_media_unittests") { 323 test("rtc_media_unittests") {
302 testonly = true 324 testonly = true
303 325
304 defines = [] 326 defines = []
305 deps = [] 327 deps = []
306 sources = [ 328 sources = [
307 "base/codec_unittest.cc", 329 "base/codec_unittest.cc",
308 "base/rtpdataengine_unittest.cc", 330 "base/rtpdataengine_unittest.cc",
309 "base/rtpdump_unittest.cc", 331 "base/rtpdump_unittest.cc",
310 "base/rtputils_unittest.cc", 332 "base/rtputils_unittest.cc",
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 if (is_clang) { 370 if (is_clang) {
349 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 371 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
350 configs -= [ 372 configs -= [
351 "//build/config/clang:extra_warnings", 373 "//build/config/clang:extra_warnings",
352 "//build/config/clang:find_bad_constructs", 374 "//build/config/clang:find_bad_constructs",
353 ] 375 ]
354 } 376 }
355 377
356 if (is_android) { 378 if (is_android) {
357 deps += [ "//testing/android/native_test:native_test_support" ] 379 deps += [ "//testing/android/native_test:native_test_support" ]
380 data = rtc_media_unittests_resources
358 shard_timeout = 900 381 shard_timeout = 900
359 } 382 }
360 if (is_android || is_ios) { 383
361 data = [ 384 if (is_ios) {
362 "//resources/media/captured-320x240-2s-48.frames", 385 deps += [ ":rtc_media_unittests_bundle_data" ]
363 "//resources/media/faces.1280x720_P420.yuv",
364 "//resources/media/faces_I420.jpg",
365 "//resources/media/faces_I422.jpg",
366 "//resources/media/faces_I444.jpg",
367 "//resources/media/faces_I411.jpg",
368 "//resources/media/faces_I400.jpg",
369 ]
370 } 386 }
371 387
372 deps += [ 388 deps += [
373 # TODO(kjellander): Move as part of work in bugs.webrtc.org/4243. 389 # TODO(kjellander): Move as part of work in bugs.webrtc.org/4243.
374 ":rtc_media", 390 ":rtc_media",
375 ":rtc_unittest_main", 391 ":rtc_unittest_main",
376 "../audio", 392 "../audio",
377 "../base:rtc_base_tests_utils", 393 "../base:rtc_base_tests_utils",
378 "../system_wrappers:metrics_default", 394 "../system_wrappers:metrics_default",
379 ] 395 ]
380 } 396 }
381 } 397 }
OLDNEW
« no previous file with comments | « webrtc/common_video/BUILD.gn ('k') | webrtc/modules/BUILD.gn » ('j') | webrtc/tools/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698