Zeke Chin | 71f6f44 | 2015-06-29 14:34:58 -0700 | [diff] [blame] | 1 | # Copyright (c) 2015 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': [ |
| 11 | '../../../../build/common.gypi', |
| 12 | ], |
| 13 | 'targets': [ |
| 14 | { |
| 15 | 'target_name': 'webrtc_h264', |
| 16 | 'type': 'static_library', |
| 17 | 'conditions': [ |
hbos | 9dc5928 | 2016-02-03 05:09:37 -0800 | [diff] [blame] | 18 | # TODO(hbos): Consider renaming this flag and the below macro to |
| 19 | # something which helps distinguish OpenH264/FFmpeg from other H264 |
| 20 | # implementations. |
hbos | 902c03e | 2016-01-21 03:34:40 -0800 | [diff] [blame] | 21 | ['rtc_use_h264==1', { |
hbos | bab934b | 2016-01-27 01:36:03 -0800 | [diff] [blame] | 22 | 'defines': [ |
hbos | 9dc5928 | 2016-02-03 05:09:37 -0800 | [diff] [blame] | 23 | 'WEBRTC_USE_H264', |
hbos | bab934b | 2016-01-27 01:36:03 -0800 | [diff] [blame] | 24 | ], |
hbos | c5a39c2 | 2016-02-02 02:26:05 -0800 | [diff] [blame] | 25 | 'conditions': [ |
| 26 | ['rtc_initialize_ffmpeg==1', { |
| 27 | 'defines': [ |
| 28 | 'WEBRTC_INITIALIZE_FFMPEG', |
| 29 | ], |
| 30 | }], |
| 31 | ], |
hbos | 902c03e | 2016-01-21 03:34:40 -0800 | [diff] [blame] | 32 | 'dependencies': [ |
| 33 | '<(DEPTH)/third_party/ffmpeg/ffmpeg.gyp:ffmpeg', |
| 34 | '<(DEPTH)/third_party/openh264/openh264.gyp:openh264_encoder', |
kjellander | f6b5509 | 2016-02-07 23:04:26 -0800 | [diff] [blame] | 35 | '<(webrtc_root)/common_video/common_video.gyp:common_video', |
hbos | 902c03e | 2016-01-21 03:34:40 -0800 | [diff] [blame] | 36 | ], |
hbos | bab934b | 2016-01-27 01:36:03 -0800 | [diff] [blame] | 37 | 'sources': [ |
| 38 | 'h264_decoder_impl.cc', |
| 39 | 'h264_decoder_impl.h', |
| 40 | 'h264_encoder_impl.cc', |
| 41 | 'h264_encoder_impl.h', |
| 42 | ], |
hbos | 902c03e | 2016-01-21 03:34:40 -0800 | [diff] [blame] | 43 | }], |
Zeke Chin | 71f6f44 | 2015-06-29 14:34:58 -0700 | [diff] [blame] | 44 | ], |
| 45 | 'sources': [ |
| 46 | 'h264.cc', |
| 47 | 'include/h264.h', |
| 48 | ], |
| 49 | }, # webrtc_h264 |
| 50 | ], |
Zeke Chin | 71f6f44 | 2015-06-29 14:34:58 -0700 | [diff] [blame] | 51 | } |