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

Side by Side 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 unified diff | Download patch
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # This header file defines the "sysroot" variable which is the absolute path 5 # This header file defines the "sysroot" variable which is the absolute path
6 # of the sysroot. If no sysroot applies, the variable will be an empty string. 6 # of the sysroot. If no sysroot applies, the variable will be an empty string.
7 7
8 import("//build/config/chrome_build.gni") 8 import("//build/config/chrome_build.gni")
9 9
10 declare_args() { 10 declare_args() {
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 [ rebase_path(sysroot) ], 68 [ rebase_path(sysroot) ],
69 "string") == "True", 69 "string") == "True",
70 "Missing sysroot ($sysroot). To fix, run: build/linux/sysroot_scripts/in stall-sysroot.py --arch=$_script_arch") 70 "Missing sysroot ($sysroot). To fix, run: build/linux/sysroot_scripts/in stall-sysroot.py --arch=$_script_arch")
71 } 71 }
72 } else if (is_mac) { 72 } else if (is_mac) {
73 import("//build/config/mac/mac_sdk.gni") 73 import("//build/config/mac/mac_sdk.gni")
74 sysroot = mac_sdk_path 74 sysroot = mac_sdk_path
75 } else if (is_ios) { 75 } else if (is_ios) {
76 import("//build/config/ios/ios_sdk.gni") 76 import("//build/config/ios/ios_sdk.gni")
77 sysroot = ios_sdk_path 77 sysroot = ios_sdk_path
78 } else if (is_fuchsia) {
79 import("//build/config/fuchsia/config.gni")
80 if (current_cpu == "arm64") {
81 sysroot = fuchsia_sdk + "/sysroot/aarch64-fuchsia"
82 } else if (current_cpu == "x64") {
83 sysroot = fuchsia_sdk + "/sysroot/x86_64-fuchsia"
84 } else {
85 sysroot = ""
86 }
87 sysroot_stamp = rebase_path("$sysroot/.stamp")
88 sysroot_version = read_file(sysroot_stamp, "trim string")
78 } else { 89 } else {
79 sysroot = "" 90 sysroot = ""
80 } 91 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698