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

Side by Side Diff: webrtc/modules/video_coding/BUILD.gn

Issue 3005253002: Add full stack tests for MediaCodec. (Closed)
Patch Set: Created 3 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) 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 import("../../webrtc.gni") 9 import("../../webrtc.gni")
10 10
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 "../../rtc_base:rtc_base_approved", 359 "../../rtc_base:rtc_base_approved",
360 "../../rtc_base:rtc_task_queue", 360 "../../rtc_base:rtc_task_queue",
361 "../../rtc_base:sequenced_task_checker", 361 "../../rtc_base:sequenced_task_checker",
362 "../../system_wrappers:system_wrappers", 362 "../../system_wrappers:system_wrappers",
363 "../../test:test_support", 363 "../../test:test_support",
364 "../../test:video_test_common", 364 "../../test:video_test_common",
365 "../../test:video_test_support", 365 "../../test:video_test_support",
366 ] 366 ]
367 } 367 }
368 368
369 if (is_android) {
370 rtc_source_set("video_coding_codecs_test_android_test_initializer") {
kjellander_webrtc 2017/09/08 12:36:39 I'd suggest a shorter target name, e.g. codecs_tes
brandtr 2017/09/13 11:17:23 Good idea, done.
371 testonly = true
372
373 sources = [
374 "codecs/test/android_test_initializer.cc",
375 "codecs/test/android_test_initializer.h",
376 ]
377
378 deps = [
379 "../../rtc_base:rtc_base_approved",
380 "../../sdk/android:libjingle_peerconnection_jni",
381 "//base",
382 ]
383 }
384 }
385
369 video_coding_modules_tests_resources = [ 386 video_coding_modules_tests_resources = [
370 "../../../resources/foreman_128x96.yuv", 387 "../../../resources/foreman_128x96.yuv",
371 "../../../resources/foreman_160x120.yuv", 388 "../../../resources/foreman_160x120.yuv",
372 "../../../resources/foreman_176x144.yuv", 389 "../../../resources/foreman_176x144.yuv",
373 "../../../resources/foreman_320x240.yuv", 390 "../../../resources/foreman_320x240.yuv",
374 ] 391 ]
375 392
376 if (is_ios || is_mac) { 393 if (is_ios || is_mac) {
377 bundle_data("video_coding_modules_tests_resources_bundle_data") { 394 bundle_data("video_coding_modules_tests_resources_bundle_data") {
378 testonly = true 395 testonly = true
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 "../../test:field_trial", 437 "../../test:field_trial",
421 "../../test:test_support", 438 "../../test:test_support",
422 "../../test:video_test_common", 439 "../../test:video_test_common",
423 "../../test:video_test_support", 440 "../../test:video_test_support",
424 "../video_capture", 441 "../video_capture",
425 ] 442 ]
426 443
427 data = video_coding_modules_tests_resources 444 data = video_coding_modules_tests_resources
428 445
429 if (is_android) { 446 if (is_android) {
430 sources += [
431 "codecs/test/android_test_initializer.cc",
432 "codecs/test/android_test_initializer.h",
433 "codecs/test/videoprocessor_integrationtest_mediacodec.cc",
434 ]
435
436 deps += [ 447 deps += [
437 "../../sdk/android:libjingle_peerconnection_jni", 448 ":video_coding_codecs_test_android_test_initializer",
438 "//base", 449 "../../sdk/android:video_jni",
439 ] 450 ]
440 } 451 }
441 452
442 if (is_ios || is_mac) { 453 if (is_ios || is_mac) {
443 deps += [ 454 deps += [
444 ":codec_test_objc", 455 ":codec_test_objc",
445 ":video_coding_modules_tests_resources_bundle_data", 456 ":video_coding_modules_tests_resources_bundle_data",
446 "../../media:rtc_media_base",
447 "../../sdk:videotoolbox_objc",
448 ] 457 ]
449 } 458 }
450 459
451 if (rtc_use_h264) { 460 if (rtc_use_h264) {
452 defines = [ "WEBRTC_USE_H264" ] 461 defines = [ "WEBRTC_USE_H264" ]
453 } 462 }
454 463
455 if (!build_with_chromium && is_clang) { 464 if (!build_with_chromium && is_clang) {
456 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 465 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
457 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 466 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 } 554 }
546 555
547 # TODO(jschuh): bugs.webrtc.org/1348: fix this warning. 556 # TODO(jschuh): bugs.webrtc.org/1348: fix this warning.
548 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 557 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
549 if (!build_with_chromium && is_clang) { 558 if (!build_with_chromium && is_clang) {
550 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 559 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
551 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 560 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
552 } 561 }
553 } 562 }
554 } 563 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698