mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-04 17:58:11 +00:00
aa4c70e3da
Update the ffmpeg bindings and build script to use 5.0 and update our code to match the API changes since 4.4. BUG=None TEST=cargo test -p ffmpeg TEST=cargo test --features "video-decoder,ffmpeg" -p devices video TEST=v4l2r example from the crosvm book passses. Change-Id: If7820a4dd270d715e89c60d55f89b9730f40e864 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3835501 Reviewed-by: Tatsuyuki Ishi <ishitatsuyuki@google.com> Tested-by: Alexandre Courbot <acourbot@chromium.org> Reviewed-by: Dennis Kempin <denniskempin@google.com> Commit-Queue: Alexandre Courbot <acourbot@chromium.org> Reviewed-by: Takaya Saeki <takayas@chromium.org> Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org>
25 lines
722 B
Rust
25 lines
722 B
Rust
// Copyright 2022 The Chromium OS Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
use pkg_config::Config;
|
|
|
|
fn main() {
|
|
// Skip building dependencies when generating documents.
|
|
if std::env::var("CARGO_DOC").is_ok() {
|
|
return;
|
|
}
|
|
|
|
// Match all ffmpeg 5.0 versions with which our generated bindings are compatible.
|
|
Config::new()
|
|
.range_version("59".."60")
|
|
.probe("libavcodec")
|
|
.unwrap();
|
|
Config::new()
|
|
.range_version("57".."58")
|
|
.probe("libavutil")
|
|
.unwrap();
|
|
Config::new()
|
|
.range_version("6".."7")
|
|
.probe("libswscale")
|
|
.unwrap();
|
|
}
|