// 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(); }