rtc_use_h264 flag (replacing use_third_party_h264 flag) for building OpenH264/FFmpeg, false by default but can be overridden in supplement.gypi and build_overrides/webrtc.gni.

BUG=468365
NOTRY=True

Review URL: https://codereview.webrtc.org/1601813005

Cr-Commit-Position: refs/heads/master@{#11333}
This commit is contained in:
hbos
2016-01-21 03:34:40 -08:00
committed by Commit bot
parent 0b98cf72c6
commit 902c03e724
4 changed files with 25 additions and 22 deletions

View File

@ -137,12 +137,11 @@ source_set("webrtc_h264") {
"../../system_wrappers",
]
if (use_third_party_h264) {
# Dependency added so that variables use_openh264 and ffmpeg_branding are
# recognized build arguments (avoid "Build argument has no effect" error).
# The variables and dependencies will be used for real as soon as
# https://codereview.webrtc.org/1306813009/ lands. In the meantime, the
# build arguments are to be used by waterfall/trybots.
if (rtc_use_h264) {
# Dependency for sake of compiling and so that variables use_openh264 and
# ffmpeg_branding are recognized build arguments (avoid "Build argument has
# no effect" error). The variables and dependencies will be used for real as
# soon as https://codereview.webrtc.org/1306813009/ lands.
deps += [
"//third_party/ffmpeg:ffmpeg",
"//third_party/openh264:encoder",

View File

@ -23,6 +23,14 @@
'h264_objc.mm',
],
}],
['rtc_use_h264==1', {
# Dependency for sake of compiling The dependencies will be used for
# real as soon as https://codereview.webrtc.org/1306813009/ lands.
'dependencies': [
'<(DEPTH)/third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
'<(DEPTH)/third_party/openh264/openh264.gyp:openh264_encoder',
],
}],
],
'sources': [
'h264.cc',