-
Notifications
You must be signed in to change notification settings - Fork 339
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build wg with daita support for android
- Loading branch information
1 parent
eb94e6d
commit 6c61ed5
Showing
10 changed files
with
27 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,7 @@ | ||
fn main() { | ||
tonic_build::compile_protos("proto/management_interface.proto").unwrap(); | ||
|
||
let target_os = std::env::var("CARGO_CFG_TARGET_OS").expect("CARGO_CFG_TARGET_OS not set"); | ||
|
||
// Enable DAITA by default on desktop | ||
// Enable DAITA by default on desktop and android | ||
println!("cargo::rustc-check-cfg=cfg(daita)"); | ||
if let "linux" | "windows" | "macos" = target_os.as_str() { | ||
println!(r#"cargo::rustc-cfg=daita"#); | ||
} | ||
println!(r#"cargo::rustc-cfg=daita"#); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
fn main() { | ||
let target_os = std::env::var("CARGO_CFG_TARGET_OS").expect("CARGO_CFG_TARGET_OS not set"); | ||
|
||
// Enable DAITA by default on desktop | ||
// Enable DAITA by default on desktop and android | ||
println!("cargo::rustc-check-cfg=cfg(daita)"); | ||
if let "linux" | "windows" | "macos" = target_os.as_str() { | ||
println!(r#"cargo::rustc-cfg=daita"#); | ||
} | ||
println!(r#"cargo::rustc-cfg=daita"#); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
fn main() { | ||
let target_os = std::env::var("CARGO_CFG_TARGET_OS").expect("CARGO_CFG_TARGET_OS not set"); | ||
|
||
// Enable DAITA by default on desktop | ||
// Enable DAITA by default on desktop and android | ||
println!("cargo::rustc-check-cfg=cfg(daita)"); | ||
if let "linux" | "windows" | "macos" = target_os.as_str() { | ||
println!(r#"cargo::rustc-cfg=daita"#); | ||
} | ||
println!(r#"cargo::rustc-cfg=daita"#); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
fn main() { | ||
let target_os = std::env::var("CARGO_CFG_TARGET_OS").expect("CARGO_CFG_TARGET_OS not set"); | ||
|
||
// Enable DAITA by default on desktop | ||
// Enable DAITA by default on desktop and android | ||
println!("cargo::rustc-check-cfg=cfg(daita)"); | ||
if let "linux" | "windows" | "macos" = target_os.as_str() { | ||
println!(r#"cargo::rustc-cfg=daita"#); | ||
} | ||
println!(r#"cargo::rustc-cfg=daita"#); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters