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 26 matching lines...) Expand all Loading... | |
37 sysroot = "$android_ndk_root/$mips_android_sysroot_subdir" | 37 sysroot = "$android_ndk_root/$mips_android_sysroot_subdir" |
38 } else if (current_cpu == "x64") { | 38 } else if (current_cpu == "x64") { |
39 sysroot = "$android_ndk_root/$x86_64_android_sysroot_subdir" | 39 sysroot = "$android_ndk_root/$x86_64_android_sysroot_subdir" |
40 } else if (current_cpu == "arm64") { | 40 } else if (current_cpu == "arm64") { |
41 sysroot = "$android_ndk_root/$arm64_android_sysroot_subdir" | 41 sysroot = "$android_ndk_root/$arm64_android_sysroot_subdir" |
42 } else if (current_cpu == "mips64el") { | 42 } else if (current_cpu == "mips64el") { |
43 sysroot = "$android_ndk_root/$mips64_android_sysroot_subdir" | 43 sysroot = "$android_ndk_root/$mips64_android_sysroot_subdir" |
44 } else { | 44 } else { |
45 sysroot = "" | 45 sysroot = "" |
46 } | 46 } |
47 } else if (is_linux && !is_chromeos && use_sysroot) { | 47 } else if (is_linux && use_sysroot) { |
48 # By default build against a sysroot image downloaded from Cloud Storage | 48 # By default build against a sysroot image downloaded from Cloud Storage |
49 # during gclient runhooks. | 49 # during gclient runhooks. |
50 if (current_cpu == "x64") { | 50 if (is_chromeos) { |
51 sysroot = "//build/linux/debian_wheezy_amd64-sysroot" | 51 sysroot = "//build/linux/ubuntu_precise_amd64-sysroot" |
Dirk Pranke
2016/08/25 03:27:22
add a comment here about why we're using a precise
Tom (Use chromium acct)
2016/08/25 18:28:51
Done.
| |
52 } else if (current_cpu == "x86") { | |
53 sysroot = "//build/linux/debian_wheezy_i386-sysroot" | |
54 } else if (current_cpu == "mipsel") { | |
55 sysroot = "//build/linux/debian_wheezy_mips-sysroot" | |
56 } else if (current_cpu == "arm") { | |
57 sysroot = "//build/linux/debian_wheezy_arm-sysroot" | |
58 } else if (current_cpu == "arm64") { | |
59 sysroot = "//build/linux/debian_jessie_arm64-sysroot" | |
60 } else { | 52 } else { |
61 # Any other builds don't use a sysroot. | 53 if (current_cpu == "x64") { |
62 sysroot = "" | 54 sysroot = "//build/linux/debian_wheezy_amd64-sysroot" |
55 } else if (current_cpu == "x86") { | |
56 sysroot = "//build/linux/debian_wheezy_i386-sysroot" | |
57 } else if (current_cpu == "mipsel") { | |
58 sysroot = "//build/linux/debian_wheezy_mips-sysroot" | |
59 } else if (current_cpu == "arm") { | |
60 sysroot = "//build/linux/debian_wheezy_arm-sysroot" | |
61 } else if (current_cpu == "arm64") { | |
62 sysroot = "//build/linux/debian_jessie_arm64-sysroot" | |
63 } else { | |
64 # Any other builds don't use a sysroot. | |
65 sysroot = "" | |
66 } | |
63 } | 67 } |
64 | 68 |
65 if (sysroot != "") { | 69 if (sysroot != "") { |
66 # Our sysroot images only contains gcc 4.6 headers, but chromium requires | 70 # Our sysroot images only contains gcc 4.6 headers, but chromium requires |
67 # gcc 4.9. Clang is able to detect and work with the 4.6 headers while | 71 # gcc 4.9. Clang is able to detect and work with the 4.6 headers while |
68 # gcc is not. This check can be removed if we ever update to a more modern | 72 # gcc is not. This check can be removed if we ever update to a more modern |
69 # sysroot. | 73 # sysroot. |
70 assert(is_clang, "sysroot images require clang (try use_sysroot=false)") | 74 assert(is_clang, "sysroot images require clang (try use_sysroot=false)") |
71 | 75 |
72 _script_arch = current_cpu | 76 _script_arch = current_cpu |
(...skipping 10 matching lines...) Expand all Loading... | |
83 } | 87 } |
84 } else if (is_mac) { | 88 } else if (is_mac) { |
85 import("//build/config/mac/mac_sdk.gni") | 89 import("//build/config/mac/mac_sdk.gni") |
86 sysroot = mac_sdk_path | 90 sysroot = mac_sdk_path |
87 } else if (is_ios) { | 91 } else if (is_ios) { |
88 import("//build/config/ios/ios_sdk.gni") | 92 import("//build/config/ios/ios_sdk.gni") |
89 sysroot = ios_sdk_path | 93 sysroot = ios_sdk_path |
90 } else { | 94 } else { |
91 sysroot = "" | 95 sysroot = "" |
92 } | 96 } |
OLD | NEW |