Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(336)

Unified Diff: build/config/sysroot.gni

Issue 2784063002: Config changes to support target_os="fuchsia" (Closed)
Patch Set: simplify Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: build/config/sysroot.gni
diff --git a/build/config/sysroot.gni b/build/config/sysroot.gni
index 2c26c34f24181c33d8a521f14e57053323026031..51f106ec2e81b410b136c77e493c9ddb0e1c07f8 100644
--- a/build/config/sysroot.gni
+++ b/build/config/sysroot.gni
@@ -75,6 +75,17 @@ if (current_os == target_os && current_cpu == target_cpu &&
} else if (is_ios) {
import("//build/config/ios/ios_sdk.gni")
sysroot = ios_sdk_path
+} else if (is_fuchsia) {
+ import("//build/config/fuchsia/config.gni")
+ if (current_cpu == "arm64") {
+ sysroot = fuchsia_sdk + "/sysroot/aarch64-fuchsia"
+ } else if (current_cpu == "x64") {
+ sysroot = fuchsia_sdk + "/sysroot/x86_64-fuchsia"
+ } else {
+ sysroot = ""
+ }
+ sysroot_stamp = rebase_path("$sysroot/.stamp")
+ sysroot_version = read_file(sysroot_stamp, "trim string")
} else {
sysroot = ""
}

Powered by Google App Engine
This is Rietveld 408576698