1
0
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
592 B

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