mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 18:38:01 +00:00
26 lines
722 B
Rust
26 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 4.4 versions with which our generated bindings are compatible.
|
||
|
Config::new()
|
||
|
.range_version("58".."59")
|
||
|
.probe("libavcodec")
|
||
|
.unwrap();
|
||
|
Config::new()
|
||
|
.range_version("56".."57")
|
||
|
.probe("libavutil")
|
||
|
.unwrap();
|
||
|
Config::new()
|
||
|
.range_version("5".."6")
|
||
|
.probe("libswscale")
|
||
|
.unwrap();
|
||
|
}
|