• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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/system_wrappers.gyp:system_wrappers',
19         '<(webrtc_root)/test/test.gyp:test_support_main',
20         '<(webrtc_root)/test/test.gyp:fake_video_frames',
21      ],
22      'sources': [
23        'i420_buffer_pool_unittest.cc',
24        'i420_video_frame_unittest.cc',
25        'libyuv/libyuv_unittest.cc',
26        'libyuv/scaler_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        ['OS=="android"', {
34          'dependencies': [
35            '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
36          ],
37        }],
38      ],
39    },
40  ],  # targets
41  'conditions': [
42    ['OS=="android"', {
43      'targets': [
44        {
45          'target_name': 'common_video_unittests_apk_target',
46          'type': 'none',
47          'dependencies': [
48            '<(apk_tests_path):common_video_unittests_apk',
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          ],
64          'sources': [
65            'common_video_unittests.isolate',
66          ],
67        },
68      ],
69    }],
70  ],
71}
72