MCPcopy Create free account
hub / github.com/algoscienceacademy/RustUI / main

Function main

build.rs:3–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1use std::env;
2
3fn 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected