Index: third_party/openh264/testing/openh264_testing.gyp |
diff --git a/third_party/openh264/testing/openh264_testing.gyp b/third_party/openh264/testing/openh264_testing.gyp |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b8124c1eb29e6c1817ea81f80c01a38b157e37e7 |
--- /dev/null |
+++ b/third_party/openh264/testing/openh264_testing.gyp |
@@ -0,0 +1,47 @@ |
+# 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', { |
+ # Building with OpenH264. |
+ 'targets': [ |
+ { |
+ 'target_name': 'openh264_testing', |
+ 'type': 'static_library', |
+ 'dependencies': [ |
+ '<(DEPTH)/third_party/webrtc/common_video/common_video.gyp:common_video', |
+ '../openh264.gyp:openh264_encoder', |
+ '../openh264.gyp:openh264_decoder', |
+ ], |
+ 'include_dirs': [ |
+ '<(DEPTH)', |
+ ], |
+ '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', |
+ ], |
+ }, |
+ ], |
+ },{ |
+ # Building without OpenH264. Defining a dummy target because every build |
+ # file needs to have at least one target. |
+ 'targets': [ |
+ { |
+ 'target_name': 'openh264_testing_dummy_target', |
+ 'type': 'none', |
+ } |
+ ], |
+ }], |
+ ], |
+} |