OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |