OLD | NEW |
(Empty) | |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 { |
| 6 'includes': [ |
| 7 '../openh264_args.gypi', |
| 8 ], |
| 9 'conditions': [ |
| 10 ['use_openh264==1', { |
| 11 'targets': [ |
| 12 { |
| 13 'target_name': 'openh264_unittests', |
| 14 'type': '<(gtest_target_type)', |
| 15 'dependencies': [ |
| 16 '<(DEPTH)/testing/gtest.gyp:gtest', |
| 17 '<(DEPTH)/third_party/webrtc/common_video/common_video.gyp:common_vi
deo', |
| 18 '../openh264.gyp:openh264_encoder', |
| 19 '../openh264.gyp:openh264_decoder', |
| 20 ], |
| 21 'defines': [ |
| 22 'INCLUDE_OPENH264_UNITTESTS', |
| 23 ], |
| 24 'include_dirs': [ |
| 25 '<(DEPTH)', |
| 26 '<(DEPTH)/third_party', |
| 27 ], |
| 28 'sources': [ |
| 29 'h264_codec_tester.cc', |
| 30 'h264_codec_tester.h', |
| 31 'h264_decoder_impl.cc', |
| 32 'h264_decoder_impl.h', |
| 33 'h264_encoder_impl.cc', |
| 34 'h264_encoder_impl.h', |
| 35 'i420_utils.cc', |
| 36 'i420_utils.h', |
| 37 'openh264_unittests.cc', |
| 38 ], |
| 39 }, |
| 40 ], |
| 41 }, { |
| 42 # When building without OpenH264 we still produce a test binary but it |
| 43 # won't contain any tests. |
| 44 'targets': [ |
| 45 { |
| 46 'target_name': 'openh264_unittests', |
| 47 'type': '<(gtest_target_type)', |
| 48 'dependencies': [ |
| 49 '<(DEPTH)/testing/gtest.gyp:gtest', |
| 50 ], |
| 51 'include_dirs': [ |
| 52 '<(DEPTH)', |
| 53 ], |
| 54 'sources': [ |
| 55 'openh264_unittests.cc', |
| 56 ], |
| 57 }, |
| 58 ], |
| 59 }], |
| 60 ], |
| 61 } |
OLD | NEW |