1 // Copyright 2022 The ChromiumOS Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
6 // Do not require dependencies when generating docs.
7 if std::env::var("CARGO_DOC").is_ok() || std::env::var("DOCS_RS").is_ok() {
11 match pkg_config::probe_library("libva") {
13 Err(e) => panic!("libva not found: {}", e),
16 println!("cargo:rustc-link-lib=dylib=va");
17 println!("cargo:rustc-link-lib=dylib=va-drm"); // for the vaGetDisplayDRM entrypoint