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 27 matching lines...) Expand all Loading... |
38 # By default build against a sysroot image downloaded from Cloud Storage | 38 # By default build against a sysroot image downloaded from Cloud Storage |
39 # during gclient runhooks. | 39 # during gclient runhooks. |
40 if (current_cpu == "x64") { | 40 if (current_cpu == "x64") { |
41 sysroot = "//build/linux/debian_wheezy_amd64-sysroot" | 41 sysroot = "//build/linux/debian_wheezy_amd64-sysroot" |
42 } else if (current_cpu == "x86") { | 42 } else if (current_cpu == "x86") { |
43 sysroot = "//build/linux/debian_wheezy_i386-sysroot" | 43 sysroot = "//build/linux/debian_wheezy_i386-sysroot" |
44 } else if (current_cpu == "mipsel") { | 44 } else if (current_cpu == "mipsel") { |
45 sysroot = "//build/linux/debian_wheezy_mips-sysroot" | 45 sysroot = "//build/linux/debian_wheezy_mips-sysroot" |
46 } else if (current_cpu == "arm") { | 46 } else if (current_cpu == "arm") { |
47 sysroot = "//build/linux/debian_wheezy_arm-sysroot" | 47 sysroot = "//build/linux/debian_wheezy_arm-sysroot" |
| 48 } else if (current_cpu == "arm64") { |
| 49 sysroot = "//build/linux/debian_jessie_arm64-sysroot" |
48 } else { | 50 } else { |
49 # Any other builds don't use a sysroot. | 51 # Any other builds don't use a sysroot. |
50 sysroot = "" | 52 sysroot = "" |
51 } | 53 } |
52 | 54 |
53 if (sysroot != "") { | 55 if (sysroot != "") { |
54 # Our sysroot images only contains gcc 4.6 headers, but chromium requires | 56 # Our sysroot images only contains gcc 4.6 headers, but chromium requires |
55 # gcc 4.9. Clang is able to detect and work with the 4.6 headers while | 57 # gcc 4.9. Clang is able to detect and work with the 4.6 headers while |
56 # gcc is not. This check can be removed if we ever update to a more modern | 58 # gcc is not. This check can be removed if we ever update to a more modern |
57 # sysroot. | 59 # sysroot. |
(...skipping 13 matching lines...) Expand all Loading... |
71 } | 73 } |
72 } else if (is_mac) { | 74 } else if (is_mac) { |
73 import("//build/config/mac/mac_sdk.gni") | 75 import("//build/config/mac/mac_sdk.gni") |
74 sysroot = mac_sdk_path | 76 sysroot = mac_sdk_path |
75 } else if (is_ios) { | 77 } else if (is_ios) { |
76 import("//build/config/ios/ios_sdk.gni") | 78 import("//build/config/ios/ios_sdk.gni") |
77 sysroot = ios_sdk_path | 79 sysroot = ios_sdk_path |
78 } else { | 80 } else { |
79 sysroot = "" | 81 sysroot = "" |
80 } | 82 } |
OLD | NEW |