| # Copyright 2026 The Fuchsia Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| declare_args() { |
| # Use a prebuilt ffmpeg binary rather than building it locally. See |
| # //src/media/lib/ffmpeg/README.md for details. This is ignored when |
| # building in variant builds for which there is no prebuilt. In that case, |
| # ffmpeg is always built from source so as to be built with the selected |
| # variant's config. When this is false (either explicitly or in a variant |
| # build) then //third_party/ffmpeg must be in the source tree, which |
| # requires: |
| # |
| # ``` |
| # jiri import -name third_party/ffmpeg -revision HEAD third_party/ffmpeg http://fuchsia.googlesource.com/integration |
| # ``` |
| # TODO(https://fxbug.dev/42068172): This isn't currently working. Use the method below. |
| # |
| # Or, if already importing a different manifest from there, resulting in |
| # errors from jiri update, it can work to just git clone (but jiri update |
| # won't manage third_party/ffmpeg in this case): |
| # |
| # ``` |
| # mkdir build/secondary/third_party/ffmpeg |
| # git clone https://fuchsia.googlesource.com/third_party/ffmpeg build/secondary/third_party/ffmpeg |
| # mkdir third_party/yasm |
| # git clone https://fuchsia.googlesource.com/third_party/yasm third_party/yasm |
| # mkdir third_party/ffmpeg/src |
| # git clone https://chromium.googlesource.com/chromium/third_party/ffmpeg third_party/ffmpeg/src |
| # ``` |
| use_prebuilt_ffmpeg = true |
| } |
| |
| if (use_prebuilt_ffmpeg) { |
| # When use_prebuilt_ffmpeg is false, this is declared in //third_party/ffmpeg. |
| declare_args() { |
| ffmpeg_profile = "default" |
| } |
| } |