OLD | NEW |
---|---|
1 # Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. |
2 # | 2 # |
3 # Use of this source code is governed by a BSD-style license | 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 | 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 | 5 # tree. An additional intellectual property rights grant can be found |
6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
8 | 8 |
9 { | 9 { |
10 'includes': [ | 10 'includes': [ |
11 '../../../../build/common.gypi', | 11 '../../../../build/common.gypi', |
12 ], | 12 ], |
13 'targets': [ | 13 'targets': [ |
14 { | 14 { |
15 'target_name': 'webrtc_h264', | 15 'target_name': 'webrtc_h264', |
16 'type': 'static_library', | 16 'type': 'static_library', |
17 'conditions': [ | 17 'conditions': [ |
18 ['OS=="ios"', { | 18 ['OS=="ios"', { |
19 'dependencies': [ | |
20 'webrtc_h264_video_toolbox', | |
21 ], | |
22 'sources': [ | 19 'sources': [ |
23 'h264_objc.mm', | 20 'h264_objc.mm', |
magjed_webrtc
2016/11/01 14:00:20
Is it possible to nuke h264_objc.mm and remove thi
kthelgason
2016/11/01 15:14:30
Yup, great, thanks for pointing that out!
| |
24 ], | 21 ], |
25 }], | 22 }], |
26 # TODO(hbos): Consider renaming this flag and the below macro to | 23 # TODO(hbos): Consider renaming this flag and the below macro to |
27 # something which helps distinguish OpenH264/FFmpeg from other H264 | 24 # something which helps distinguish OpenH264/FFmpeg from other H264 |
28 # implementations. | 25 # implementations. |
29 ['rtc_use_h264==1', { | 26 ['rtc_use_h264==1', { |
30 'defines': [ | 27 'defines': [ |
31 'WEBRTC_USE_H264', | 28 'WEBRTC_USE_H264', |
32 ], | 29 ], |
33 'conditions': [ | 30 'conditions': [ |
(...skipping 15 matching lines...) Expand all Loading... | |
49 'h264_encoder_impl.h', | 46 'h264_encoder_impl.h', |
50 ], | 47 ], |
51 }], | 48 }], |
52 ], | 49 ], |
53 'sources': [ | 50 'sources': [ |
54 'h264.cc', | 51 'h264.cc', |
55 'include/h264.h', | 52 'include/h264.h', |
56 ], | 53 ], |
57 }, # webrtc_h264 | 54 }, # webrtc_h264 |
58 ], | 55 ], |
59 'conditions': [ | |
60 ['OS=="ios"', { | |
61 'targets': [ | |
62 { | |
63 'target_name': 'webrtc_h264_video_toolbox', | |
64 'type': 'static_library', | |
65 'includes': [ '../../../../build/objc_common.gypi' ], | |
66 'dependencies': [ | |
67 '<(webrtc_root)/sdk/sdk.gyp:rtc_sdk_common_objc', | |
68 ], | |
69 'link_settings': { | |
70 'xcode_settings': { | |
71 'OTHER_LDFLAGS': [ | |
72 '-framework CoreFoundation', | |
73 '-framework CoreMedia', | |
74 '-framework CoreVideo', | |
75 '-framework VideoToolbox', | |
76 ], | |
77 }, | |
78 }, | |
79 'sources': [ | |
80 'h264_video_toolbox_decoder.cc', | |
81 'h264_video_toolbox_decoder.h', | |
82 'h264_video_toolbox_encoder.h', | |
83 'h264_video_toolbox_encoder.mm', | |
84 'h264_video_toolbox_nalu.cc', | |
85 'h264_video_toolbox_nalu.h', | |
86 ], | |
87 'conditions': [ | |
88 ['build_libyuv==1', { | |
89 'dependencies': ['<(DEPTH)/third_party/libyuv/libyuv.gyp:libyuv'], | |
90 }], | |
91 ], | |
92 }, # webrtc_h264_video_toolbox | |
93 ], # targets | |
94 }], # OS=="ios" | |
95 ], # conditions | |
96 } | 56 } |
OLD | NEW |