| Index: third_party/openh264/testing/openh264_unittests.gyp
|
| diff --git a/third_party/openh264/testing/openh264_unittests.gyp b/third_party/openh264/testing/openh264_unittests.gyp
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..bc2b615c46cb74b0bd06f13279e5a5f5261963f9
|
| --- /dev/null
|
| +++ b/third_party/openh264/testing/openh264_unittests.gyp
|
| @@ -0,0 +1,61 @@
|
| +# Copyright 2015 The Chromium Authors. All rights reserved.
|
| +# Use of this source code is governed by a BSD-style license that can be
|
| +# found in the LICENSE file.
|
| +
|
| +{
|
| + 'includes': [
|
| + '../openh264_args.gypi',
|
| + ],
|
| + 'conditions': [
|
| + ['use_openh264==1', {
|
| + 'targets': [
|
| + {
|
| + 'target_name': 'openh264_unittests',
|
| + 'type': '<(gtest_target_type)',
|
| + 'dependencies': [
|
| + '<(DEPTH)/testing/gtest.gyp:gtest',
|
| + '<(DEPTH)/third_party/webrtc/common_video/common_video.gyp:common_video',
|
| + '../openh264.gyp:openh264_encoder',
|
| + '../openh264.gyp:openh264_decoder',
|
| + ],
|
| + 'defines': [
|
| + 'INCLUDE_OPENH264_UNITTESTS',
|
| + ],
|
| + 'include_dirs': [
|
| + '<(DEPTH)',
|
| + '<(DEPTH)/third_party',
|
| + ],
|
| + 'sources': [
|
| + 'h264_codec_tester.cc',
|
| + 'h264_codec_tester.h',
|
| + 'h264_decoder_impl.cc',
|
| + 'h264_decoder_impl.h',
|
| + 'h264_encoder_impl.cc',
|
| + 'h264_encoder_impl.h',
|
| + 'i420_utils.cc',
|
| + 'i420_utils.h',
|
| + 'openh264_unittests.cc',
|
| + ],
|
| + },
|
| + ],
|
| + }, {
|
| + # When building without OpenH264 we still produce a test binary but it
|
| + # won't contain any tests.
|
| + 'targets': [
|
| + {
|
| + 'target_name': 'openh264_unittests',
|
| + 'type': '<(gtest_target_type)',
|
| + 'dependencies': [
|
| + '<(DEPTH)/testing/gtest.gyp:gtest',
|
| + ],
|
| + 'include_dirs': [
|
| + '<(DEPTH)',
|
| + ],
|
| + 'sources': [
|
| + 'openh264_unittests.cc',
|
| + ],
|
| + },
|
| + ],
|
| + }],
|
| + ],
|
| +}
|
|
|