• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2019 The Chromium OS Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
main()5 fn main() {
6     #[allow(clippy::single_match)]
7     match pkg_config::probe_library("libvda") {
8         Ok(_) => (),
9         // Ignore pkg-config failures on non-chromeos platforms to allow cargo-clippy to run even
10         // if libvda.pc doesn't exist.
11         #[cfg(not(feature = "chromeos"))]
12         Err(_) => (),
13         #[cfg(feature = "chromeos")]
14         Err(e) => panic!("{}", e),
15     };
16 
17     println!("cargo:rustc-link-lib=dylib=vda");
18 }
19