blob: 0405ba0ef0117b96fc8c4df2ebc4ba1222f5a1e9 [file] [log] [blame]
pbos@webrtc.orgc33d37c2013-12-11 16:26:16 +00001# 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.orgb9d6b2b2014-09-01 11:06:37 +000033 ['OS=="android"', {
pbos@webrtc.orgc33d37c2013-12-11 16:26:16 +000034 'dependencies': [
35 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
36 ],
37 }],
38 ],
39 },
40 ], # targets
41 'conditions': [
kjellander@webrtc.orgb9d6b2b2014-09-01 11:06:37 +000042 ['OS=="android"', {
pbos@webrtc.orgc33d37c2013-12-11 16:26:16 +000043 'targets': [
44 {
kjellander@webrtc.org51917302014-09-03 14:34:46 +000045 'target_name': 'common_video_unittests_apk_target',
pbos@webrtc.orgc33d37c2013-12-11 16:26:16 +000046 'type': 'none',
47 'dependencies': [
kjellander@webrtc.org51917302014-09-03 14:34:46 +000048 '<(apk_tests_path):common_video_unittests_apk',
pbos@webrtc.orgc33d37c2013-12-11 16:26:16 +000049 ],
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}