-
Notifications
You must be signed in to change notification settings - Fork 372
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wip add build system support for daita on android
- Loading branch information
1 parent
095f6e4
commit 901109f
Showing
11 changed files
with
25 additions
and
37 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
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