mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-05 18:20:34 +00:00
19 lines
577 B
Rust
19 lines
577 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.
|
||
|
|
||
|
fn main() {
|
||
|
// Skip installing dependencies when generating documents.
|
||
|
if std::env::var("CARGO_DOC").is_ok() {
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
match pkg_config::probe_library("libva") {
|
||
|
Ok(_) => (),
|
||
|
Err(e) => panic!("Libva not found: {}", e),
|
||
|
};
|
||
|
|
||
|
println!("cargo:rustc-link-lib=dylib=va");
|
||
|
println!("cargo:rustc-link-lib=dylib=va-drm"); // for the vaGetDisplayDRM entrypoint
|
||
|
}
|