Vendor things
This commit is contained in:
parent
5deceec006
commit
977e3c17e5
19434 changed files with 10682014 additions and 0 deletions
21
third-party/vendor/wayland-sys/build.rs
vendored
Normal file
21
third-party/vendor/wayland-sys/build.rs
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
use pkg_config::Config;
|
||||
|
||||
fn main() {
|
||||
if std::env::var_os("CARGO_FEATURE_DLOPEN").is_some() {
|
||||
// Do not link to anything
|
||||
return;
|
||||
}
|
||||
|
||||
if std::env::var_os("CARGO_FEATURE_CLIENT").is_some() {
|
||||
Config::new().probe("wayland-client").unwrap();
|
||||
}
|
||||
if std::env::var_os("CARGO_FEATURE_CURSOR").is_some() {
|
||||
Config::new().probe("wayland-cursor").unwrap();
|
||||
}
|
||||
if std::env::var_os("CARGO_FEATURE_EGL").is_some() {
|
||||
Config::new().probe("wayland-egl").unwrap();
|
||||
}
|
||||
if std::env::var_os("CARGO_FEATURE_SERVER").is_some() {
|
||||
Config::new().probe("wayland-server").unwrap();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue