pbos@webrtc.org | 724947b | 2013-12-11 16:26:16 | [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', |
andresp@webrtc.org | 86e1e48 | 2015-01-14 09:30:52 | [diff] [blame] | 18 | '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers', |
pbos@webrtc.org | 724947b | 2013-12-11 16:26:16 | [diff] [blame] | 19 | '<(webrtc_root)/test/test.gyp:test_support_main', |
Niels Möller | 739fcb9 | 2016-02-29 12:11:45 | [diff] [blame] | 20 | '<(webrtc_root)/test/test.gyp:video_test_common', |
pbos@webrtc.org | 724947b | 2013-12-11 16:26:16 | [diff] [blame] | 21 | ], |
| 22 | 'sources': [ |
emircan | 55a401e | 2016-04-26 19:55:07 | [diff] [blame] | 23 | 'bitrate_adjuster_unittest.cc', |
sprang | 52033d6 | 2016-06-02 09:43:32 | [diff] [blame] | 24 | 'h264/pps_parser_unittest.cc', |
| 25 | 'h264/sps_parser_unittest.cc', |
| 26 | 'h264/sps_vui_rewriter_unittest.cc', |
magjed@webrtc.org | 73d763e | 2015-03-17 11:40:45 | [diff] [blame] | 27 | 'i420_buffer_pool_unittest.cc', |
pbos@webrtc.org | 724947b | 2013-12-11 16:26:16 | [diff] [blame] | 28 | 'i420_video_frame_unittest.cc', |
| 29 | 'libyuv/libyuv_unittest.cc', |
pbos@webrtc.org | 724947b | 2013-12-11 16:26:16 | [diff] [blame] | 30 | ], |
| 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.org | 3bd4156 | 2014-09-01 11:06:37 | [diff] [blame] | 36 | ['OS=="android"', { |
pbos@webrtc.org | 724947b | 2013-12-11 16:26:16 | [diff] [blame] | 37 | 'dependencies': [ |
| 38 | '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code', |
| 39 | ], |
| 40 | }], |
kjellander | 0206000 | 2016-02-17 06:06:12 | [diff] [blame] | 41 | ['OS=="ios"', { |
| 42 | 'mac_bundle_resources': [ |
| 43 | '<(DEPTH)/resources/foreman_cif.yuv', |
| 44 | ], |
| 45 | }], |
pbos@webrtc.org | 724947b | 2013-12-11 16:26:16 | [diff] [blame] | 46 | ], |
| 47 | }, |
| 48 | ], # targets |
| 49 | 'conditions': [ |
kjellander@webrtc.org | 3bd4156 | 2014-09-01 11:06:37 | [diff] [blame] | 50 | ['OS=="android"', { |
pbos@webrtc.org | 724947b | 2013-12-11 16:26:16 | [diff] [blame] | 51 | 'targets': [ |
| 52 | { |
kjellander@webrtc.org | 0372b93 | 2014-09-03 14:34:46 | [diff] [blame] | 53 | 'target_name': 'common_video_unittests_apk_target', |
pbos@webrtc.org | 724947b | 2013-12-11 16:26:16 | [diff] [blame] | 54 | 'type': 'none', |
| 55 | 'dependencies': [ |
kjellander | 208d198 | 2016-05-31 11:01:38 | [diff] [blame] | 56 | '<(android_tests_path):common_video_unittests_apk', |
pbos@webrtc.org | 724947b | 2013-12-11 16:26:16 | [diff] [blame] | 57 | ], |
| 58 | }, |
| 59 | ], |
kjellander | e532aec | 2016-04-18 03:08:20 | [diff] [blame] | 60 | 'conditions': [ |
| 61 | ['test_isolation_mode != "noop"', |
| 62 | { |
| 63 | 'targets': [ |
| 64 | { |
| 65 | 'target_name': 'common_video_unittests_apk_run', |
| 66 | 'type': 'none', |
| 67 | 'dependencies': [ |
kjellander | 208d198 | 2016-05-31 11:01:38 | [diff] [blame] | 68 | '<(android_tests_path):common_video_unittests_apk', |
kjellander | e532aec | 2016-04-18 03:08:20 | [diff] [blame] | 69 | ], |
| 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.org | 724947b | 2013-12-11 16:26:16 | [diff] [blame] | 82 | ['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.org | 724947b | 2013-12-11 16:26:16 | [diff] [blame] | 92 | ], |
| 93 | 'sources': [ |
| 94 | 'common_video_unittests.isolate', |
| 95 | ], |
| 96 | }, |
| 97 | ], |
| 98 | }], |
| 99 | ], |
| 100 | } |