pbos@webrtc.org | c33d37c | 2013-12-11 16:26:16 +0000 | [diff] [blame] | 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': [ |
kjellander@webrtc.org | b9d6b2b | 2014-09-01 11:06:37 +0000 | [diff] [blame] | 33 | ['OS=="android"', { |
pbos@webrtc.org | c33d37c | 2013-12-11 16:26:16 +0000 | [diff] [blame] | 34 | 'dependencies': [ |
| 35 | '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code', |
| 36 | ], |
| 37 | }], |
| 38 | ], |
| 39 | }, |
| 40 | ], # targets |
| 41 | 'conditions': [ |
kjellander@webrtc.org | b9d6b2b | 2014-09-01 11:06:37 +0000 | [diff] [blame] | 42 | ['OS=="android"', { |
pbos@webrtc.org | c33d37c | 2013-12-11 16:26:16 +0000 | [diff] [blame] | 43 | 'targets': [ |
| 44 | { |
kjellander@webrtc.org | 5191730 | 2014-09-03 14:34:46 +0000 | [diff] [blame] | 45 | 'target_name': 'common_video_unittests_apk_target', |
pbos@webrtc.org | c33d37c | 2013-12-11 16:26:16 +0000 | [diff] [blame] | 46 | 'type': 'none', |
| 47 | 'dependencies': [ |
kjellander@webrtc.org | 5191730 | 2014-09-03 14:34:46 +0000 | [diff] [blame] | 48 | '<(apk_tests_path):common_video_unittests_apk', |
pbos@webrtc.org | c33d37c | 2013-12-11 16:26:16 +0000 | [diff] [blame] | 49 | ], |
| 50 | }, |
| 51 | ], |
| 52 | }], |
| 53 | ['test_isolation_mode != "noop"', { |
| 54 | 'targets': [ |
| 55 | { |
| 56 | 'target_name': 'common_video_unittests_run', |
| 57 | 'type': 'none', |
| 58 | 'dependencies': [ |
| 59 | 'common_video_unittests', |
| 60 | ], |
| 61 | 'includes': [ |
| 62 | '../build/isolate.gypi', |
| 63 | 'common_video_unittests.isolate', |
| 64 | ], |
| 65 | 'sources': [ |
| 66 | 'common_video_unittests.isolate', |
| 67 | ], |
| 68 | }, |
| 69 | ], |
| 70 | }], |
| 71 | ], |
| 72 | } |