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:
@ -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",
|
||||
|
||||
@ -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',
|
||||
|
||||
Reference in New Issue
Block a user