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