mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2026-11-18 22:16:18 -05:00
13 lines
323 B
Rust
13 lines
323 B
Rust
#[path = "build/desktop.rs"]
|
|
mod desktop;
|
|
#[path = "build/ios.rs"]
|
|
mod ios;
|
|
|
|
fn main() {
|
|
match std::env::var("CARGO_CFG_TARGET_OS").as_deref() {
|
|
Ok("ios") => ios::build(),
|
|
Ok("macos" | "linux" | "freebsd" | "openbsd") => desktop::build(),
|
|
target => panic!("Unsupported OpenConnect target: {target:?}"),
|
|
}
|
|
}
|