()
| 1 | use std::env; |
| 2 | |
| 3 | fn main() { |
| 4 | let target_os = env::var("CARGO_CFG_TARGET_OS").unwrap(); |
| 5 | |
| 6 | match target_os.as_str() { |
| 7 | "ios" => { |
| 8 | println!("cargo:rustc-link-lib=framework=UIKit"); |
| 9 | println!("cargo:rustc-link-lib=framework=Metal"); |
| 10 | println!("cargo:rustc-link-lib=framework=QuartzCore"); |
| 11 | } |
| 12 | "android" => { |
| 13 | println!("cargo:rustc-link-lib=dylib=GLESv3"); |
| 14 | println!("cargo:rustc-link-lib=dylib=EGL"); |
| 15 | println!("cargo:rustc-link-lib=dylib=android"); |
| 16 | } |
| 17 | _ => {} |
| 18 | } |
| 19 | } |
nothing calls this directly
no outgoing calls
no test coverage detected