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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 } |
OLD | NEW |