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"', { |
| 19 'dependencies': [ |
| 20 'webrtc_h264_video_toolbox', |
| 21 ], |
| 22 'sources': [ |
| 23 'h264_objc.mm', |
| 24 ], |
| 25 }], |
18 # TODO(hbos): Consider renaming this flag and the below macro to | 26 # TODO(hbos): Consider renaming this flag and the below macro to |
19 # something which helps distinguish OpenH264/FFmpeg from other H264 | 27 # something which helps distinguish OpenH264/FFmpeg from other H264 |
20 # implementations. | 28 # implementations. |
21 ['rtc_use_h264==1', { | 29 ['rtc_use_h264==1', { |
22 'defines': [ | 30 'defines': [ |
23 'WEBRTC_USE_H264', | 31 'WEBRTC_USE_H264', |
24 ], | 32 ], |
25 'conditions': [ | 33 'conditions': [ |
26 ['rtc_initialize_ffmpeg==1', { | 34 ['rtc_initialize_ffmpeg==1', { |
27 'defines': [ | 35 'defines': [ |
(...skipping 13 matching lines...) Loading... |
41 'h264_encoder_impl.h', | 49 'h264_encoder_impl.h', |
42 ], | 50 ], |
43 }], | 51 }], |
44 ], | 52 ], |
45 'sources': [ | 53 'sources': [ |
46 'h264.cc', | 54 'h264.cc', |
47 'include/h264.h', | 55 'include/h264.h', |
48 ], | 56 ], |
49 }, # webrtc_h264 | 57 }, # webrtc_h264 |
50 ], | 58 ], |
| 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 |
51 } | 96 } |
OLD | NEW |