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

Side by Side Diff: build/config/sysroot.gni

Issue 2784063002: Config changes to support target_os="fuchsia" (Closed)
Patch Set: self review Created 3 years, 8 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 [ rebase_path(sysroot) ], 97 [ rebase_path(sysroot) ],
98 "string") == "True", 98 "string") == "True",
99 "Missing sysroot ($sysroot). To fix, run: build/linux/sysroot_scripts/in stall-sysroot.py --arch=$_script_arch") 99 "Missing sysroot ($sysroot). To fix, run: build/linux/sysroot_scripts/in stall-sysroot.py --arch=$_script_arch")
100 } 100 }
101 } else if (is_mac) { 101 } else if (is_mac) {
102 import("//build/config/mac/mac_sdk.gni") 102 import("//build/config/mac/mac_sdk.gni")
103 sysroot = mac_sdk_path 103 sysroot = mac_sdk_path
104 } else if (is_ios) { 104 } else if (is_ios) {
105 import("//build/config/ios/ios_sdk.gni") 105 import("//build/config/ios/ios_sdk.gni")
106 sysroot = ios_sdk_path 106 sysroot = ios_sdk_path
107 } else if (is_fuchsia) {
108 import("//build/config/fuchsia/config.gni")
109 if (current_cpu == "arm64") {
110 sysroot = fuchsia_sdk + "/sysroot/aarch64-fuchsia"
111 } else if (current_cpu == "x64") {
112 sysroot = fuchsia_sdk + "/sysroot/x86_64-fuchsia"
113 } else {
114 sysroot = ""
115 }
116 sysroot_stamp = rebase_path("$sysroot/.stamp")
117 sysroot_version = read_file(sysroot_stamp, "trim string")
107 } else { 118 } else {
108 sysroot = "" 119 sysroot = ""
109 } 120 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698