OLD | NEW |
1 # Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2012 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 # This file contains common settings for building WebRTC components. | 9 # This file contains common settings for building WebRTC components. |
10 | 10 |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 | 135 |
136 # Enable this to use HW H.264 encoder/decoder on iOS/Mac PeerConnections. | 136 # Enable this to use HW H.264 encoder/decoder on iOS/Mac PeerConnections. |
137 # Enabling this may break interop with Android clients that support H264. | 137 # Enabling this may break interop with Android clients that support H264. |
138 'use_objc_h264%': 0, | 138 'use_objc_h264%': 0, |
139 | 139 |
140 # Enable this to build OpenH264 encoder/FFmpeg decoder. This is supported on | 140 # Enable this to build OpenH264 encoder/FFmpeg decoder. This is supported on |
141 # all platforms except iOS. Because FFmpeg can be built with/without H.264 | 141 # all platforms except iOS. Because FFmpeg can be built with/without H.264 |
142 # support, |ffmpeg_branding| has to separately be set to a value that | 142 # support, |ffmpeg_branding| has to separately be set to a value that |
143 # includes H.264, for example "Chrome". If FFmpeg is built without H.264, | 143 # includes H.264, for example "Chrome". If FFmpeg is built without H.264, |
144 # compilation succeeds but |H264DecoderImpl| fails to initialize. | 144 # compilation succeeds but |H264DecoderImpl| fails to initialize. |
| 145 # See also: |rtc_skip_ffmpeg_init|. |
145 # CHECK THE OPENH264, FFMPEG AND H.264 LICENSES/PATENTS BEFORE BUILDING. | 146 # CHECK THE OPENH264, FFMPEG AND H.264 LICENSES/PATENTS BEFORE BUILDING. |
146 # http://www.openh264.org, https://www.ffmpeg.org/ | 147 # http://www.openh264.org, https://www.ffmpeg.org/ |
147 'rtc_use_h264%': 0, | 148 'rtc_use_h264%': 0, |
148 | 149 |
| 150 # FFmpeg must be initialized for |H264DecoderImpl| to work. This can be done |
| 151 # by WebRTC during |H264DecoderImpl::InitDecode| or externally. FFmpeg must |
| 152 # only be initialized once. Projects that initialize FFmpeg externally, such |
| 153 # as Chromium, must set this flag so that WebRTC does not also initialize. |
| 154 'rtc_skip_ffmpeg_init%': '<(build_with_chromium)', |
| 155 |
149 'conditions': [ | 156 'conditions': [ |
150 ['build_with_chromium==1', { | 157 ['build_with_chromium==1', { |
151 # Exclude pulse audio on Chromium since its prerequisites don't require | 158 # Exclude pulse audio on Chromium since its prerequisites don't require |
152 # pulse audio. | 159 # pulse audio. |
153 'include_pulse_audio%': 0, | 160 'include_pulse_audio%': 0, |
154 | 161 |
155 # Exclude internal ADM since Chromium uses its own IO handling. | 162 # Exclude internal ADM since Chromium uses its own IO handling. |
156 'include_internal_audio_device%': 0, | 163 'include_internal_audio_device%': 0, |
157 | 164 |
158 # Remove tests for Chromium to avoid slowing down GYP generation. | 165 # Remove tests for Chromium to avoid slowing down GYP generation. |
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
462 # of a more specific macro. | 469 # of a more specific macro. |
463 'defines': [ | 470 'defines': [ |
464 'WEBRTC_POSIX', | 471 'WEBRTC_POSIX', |
465 ], | 472 ], |
466 }], | 473 }], |
467 ], | 474 ], |
468 }, | 475 }, |
469 }, # target_defaults | 476 }, # target_defaults |
470 } | 477 } |
471 | 478 |
OLD | NEW |