// Copyright 2019 The ChromiumOS Authors1// Use of this source code is governed by a BSD-style license that can be2// found in the LICENSE file.34fn main() {5// libvda is only avalable on chromeos build.6// To enable clippy checks with this feature enabled upstream we will just skip7// linking the library, allowing the crate to be compiled, but not linked.8println!("cargo:rerun-if-env-changed=CROSVM_BUILD_VARIANT");9if std::env::var("CROSVM_BUILD_VARIANT").unwrap_or_default() == "chromeos" {10pkg_config::probe_library("libvda").unwrap();11println!("cargo:rustc-link-lib=dylib=vda");12}13}141516