mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-29 03:00:19 +00:00
fa32ced1e0
Long-term libvda will be replaced with an implementation that can function outside of ChromeOS. In the meantime thes allows crosvm to be built externally and pass clippy with all features enabled. BUG=b:191507399 TEST=Tests in crosvm and cros_sdk both pass: $ ./test_all $ cros_run_unit_tests --package=crosvm Cq-Depend: chromium:2989315, chromium:2986403 Change-Id: Ic37bda4426d69d16cb4bc0d7ba6f81052f6f2f59 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2983505 Tested-by: Dennis Kempin <denniskempin@google.com> Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Dennis Kempin <denniskempin@google.com> Reviewed-by: Alexandre Courbot <acourbot@chromium.org>
16 lines
592 B
Rust
16 lines
592 B
Rust
// Copyright 2019 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() {
|
|
match pkg_config::probe_library("libvda") {
|
|
Ok(_) => (),
|
|
// Ignore a pkg-config failure to allow cargo-clippy to run even when libvda.pc doesn't
|
|
// exist.
|
|
Err(pkg_config::Error::Failure { command, .. })
|
|
if command == r#""pkg-config" "--libs" "--cflags" "libvda""# => {}
|
|
Err(e) => panic!("{}", e),
|
|
};
|
|
|
|
println!("cargo:rustc-link-lib=dylib=vda");
|
|
}
|