1 # Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. 2 # 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 5 # tree. An additional intellectual property rights grant can be found 6 # in the file PATENTS. All contributing project authors may 7 # be found in the AUTHORS file in the root of the source tree. 8 9 { 10 'includes': ['../build/common.gypi'], 11 'targets': [ 12 { 13 'target_name': 'common_video_unittests', 14 'type': '<(gtest_target_type)', 15 'dependencies': [ 16 '<(webrtc_root)/common_video/common_video.gyp:common_video', 17 '<(DEPTH)/testing/gtest.gyp:gtest', 18 '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', 19 '<(webrtc_root)/test/test.gyp:test_support_main', 20 ], 21 'sources': [ 22 'i420_video_frame_unittest.cc', 23 'libyuv/libyuv_unittest.cc', 24 'libyuv/scaler_unittest.cc', 25 'plane_unittest.cc', 26 'texture_video_frame_unittest.cc' 27 ], 28 # Disable warnings to enable Win64 build, issue 1323. 29 'msvs_disabled_warnings': [ 30 4267, # size_t to int truncation. 31 ], 32 'conditions': [ 33 # TODO(henrike): remove build_with_chromium==1 when the bots are 34 # using Chromium's buildbots. 35 ['build_with_chromium==1 and OS=="android"', { 36 'dependencies': [ 37 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code', 38 ], 39 }], 40 ], 41 }, 42 ], # targets 43 'conditions': [ 44 # TODO(henrike): remove build_with_chromium==1 when the bots are using 45 # Chromium's buildbots. 46 ['build_with_chromium==1 and OS=="android"', { 47 'targets': [ 48 { 49 'target_name': 'common_video_unittests_apk_target', 50 'type': 'none', 51 'dependencies': [ 52 '<(apk_tests_path):common_video_unittests_apk', 53 ], 54 }, 55 ], 56 }], 57 ['test_isolation_mode != "noop"', { 58 'targets': [ 59 { 60 'target_name': 'common_video_unittests_run', 61 'type': 'none', 62 'dependencies': [ 63 'common_video_unittests', 64 ], 65 'includes': [ 66 '../build/isolate.gypi', 67 'common_video_unittests.isolate', 68 ], 69 'sources': [ 70 'common_video_unittests.isolate', 71 ], 72 }, 73 ], 74 }], 75 ], 76 } 77