blob: 2a103843ef18610e2c295bf0a7c1364799c2e298 [file] [log] [blame]
Zeke Chin71f6f442015-06-29 14:34:58 -07001# 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': [
hbos9dc59282016-02-03 05:09:37 -080018 # TODO(hbos): Consider renaming this flag and the below macro to
19 # something which helps distinguish OpenH264/FFmpeg from other H264
20 # implementations.
hbos902c03e2016-01-21 03:34:40 -080021 ['rtc_use_h264==1', {
hbosbab934b2016-01-27 01:36:03 -080022 'defines': [
hbos9dc59282016-02-03 05:09:37 -080023 'WEBRTC_USE_H264',
hbosbab934b2016-01-27 01:36:03 -080024 ],
hbosc5a39c22016-02-02 02:26:05 -080025 'conditions': [
26 ['rtc_initialize_ffmpeg==1', {
27 'defines': [
28 'WEBRTC_INITIALIZE_FFMPEG',
29 ],
30 }],
31 ],
hbos902c03e2016-01-21 03:34:40 -080032 'dependencies': [
33 '<(DEPTH)/third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
34 '<(DEPTH)/third_party/openh264/openh264.gyp:openh264_encoder',
kjellanderf6b55092016-02-07 23:04:26 -080035 '<(webrtc_root)/common_video/common_video.gyp:common_video',
hbos902c03e2016-01-21 03:34:40 -080036 ],
hbosbab934b2016-01-27 01:36:03 -080037 'sources': [
38 'h264_decoder_impl.cc',
39 'h264_decoder_impl.h',
40 'h264_encoder_impl.cc',
41 'h264_encoder_impl.h',
42 ],
hbos902c03e2016-01-21 03:34:40 -080043 }],
Zeke Chin71f6f442015-06-29 14:34:58 -070044 ],
45 'sources': [
46 'h264.cc',
47 'include/h264.h',
48 ],
49 }, # webrtc_h264
50 ],
Zeke Chin71f6f442015-06-29 14:34:58 -070051}