blob: fb7a7431a050c8ac46c5bb892b81b6d997409304 [file] [log] [blame]
pbos@webrtc.org724947b2013-12-11 16:26:161# 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',
andresp@webrtc.org86e1e482015-01-14 09:30:5218 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
pbos@webrtc.org724947b2013-12-11 16:26:1619 '<(webrtc_root)/test/test.gyp:test_support_main',
Niels Möller739fcb92016-02-29 12:11:4520 '<(webrtc_root)/test/test.gyp:video_test_common',
pbos@webrtc.org724947b2013-12-11 16:26:1621 ],
22 'sources': [
emircan55a401e2016-04-26 19:55:0723 'bitrate_adjuster_unittest.cc',
sprang52033d62016-06-02 09:43:3224 'h264/pps_parser_unittest.cc',
25 'h264/sps_parser_unittest.cc',
26 'h264/sps_vui_rewriter_unittest.cc',
magjed@webrtc.org73d763e2015-03-17 11:40:4527 'i420_buffer_pool_unittest.cc',
pbos@webrtc.org724947b2013-12-11 16:26:1628 'i420_video_frame_unittest.cc',
29 'libyuv/libyuv_unittest.cc',
pbos@webrtc.org724947b2013-12-11 16:26:1630 ],
31 # Disable warnings to enable Win64 build, issue 1323.
32 'msvs_disabled_warnings': [
33 4267, # size_t to int truncation.
34 ],
35 'conditions': [
kjellander@webrtc.org3bd41562014-09-01 11:06:3736 ['OS=="android"', {
pbos@webrtc.org724947b2013-12-11 16:26:1637 'dependencies': [
38 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
39 ],
40 }],
kjellander02060002016-02-17 06:06:1241 ['OS=="ios"', {
42 'mac_bundle_resources': [
43 '<(DEPTH)/resources/foreman_cif.yuv',
44 ],
45 }],
pbos@webrtc.org724947b2013-12-11 16:26:1646 ],
47 },
48 ], # targets
49 'conditions': [
kjellander@webrtc.org3bd41562014-09-01 11:06:3750 ['OS=="android"', {
pbos@webrtc.org724947b2013-12-11 16:26:1651 'targets': [
52 {
kjellander@webrtc.org0372b932014-09-03 14:34:4653 'target_name': 'common_video_unittests_apk_target',
pbos@webrtc.org724947b2013-12-11 16:26:1654 'type': 'none',
55 'dependencies': [
kjellander208d1982016-05-31 11:01:3856 '<(android_tests_path):common_video_unittests_apk',
pbos@webrtc.org724947b2013-12-11 16:26:1657 ],
58 },
59 ],
kjellandere532aec2016-04-18 03:08:2060 'conditions': [
61 ['test_isolation_mode != "noop"',
62 {
63 'targets': [
64 {
65 'target_name': 'common_video_unittests_apk_run',
66 'type': 'none',
67 'dependencies': [
kjellander208d1982016-05-31 11:01:3868 '<(android_tests_path):common_video_unittests_apk',
kjellandere532aec2016-04-18 03:08:2069 ],
70 'includes': [
71 '../build/isolate.gypi',
72 ],
73 'sources': [
74 'common_video_unittests_apk.isolate',
75 ],
76 },
77 ],
78 },
79 ],
80 ],
81 }], # OS=="android"
pbos@webrtc.org724947b2013-12-11 16:26:1682 ['test_isolation_mode != "noop"', {
83 'targets': [
84 {
85 'target_name': 'common_video_unittests_run',
86 'type': 'none',
87 'dependencies': [
88 'common_video_unittests',
89 ],
90 'includes': [
91 '../build/isolate.gypi',
pbos@webrtc.org724947b2013-12-11 16:26:1692 ],
93 'sources': [
94 'common_video_unittests.isolate',
95 ],
96 },
97 ],
98 }],
99 ],
100}