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 if (is_android) { | 8 if (is_android) { |
9 import("//build/config/android/config.gni") | 9 import("//build/config/android/config.gni") |
10 if (!is_android_webview_build) { | 10 if (!is_android_webview_build) { |
(...skipping 15 matching lines...) Expand all Loading... | |
26 if (cpu_arch == "x64") { | 26 if (cpu_arch == "x64") { |
27 sysroot = rebase_path( | 27 sysroot = rebase_path( |
28 "//chrome/installer/linux/debian_wheezy_amd64-sysroot", ".", "") | 28 "//chrome/installer/linux/debian_wheezy_amd64-sysroot", ".", "") |
29 } else if (cpu_arch == "x86") { | 29 } else if (cpu_arch == "x86") { |
30 sysroot = rebase_path( | 30 sysroot = rebase_path( |
31 "//chrome/installer/linux/debian_wheezy_i386-sysroot", ".", "") | 31 "//chrome/installer/linux/debian_wheezy_i386-sysroot", ".", "") |
32 } else { | 32 } else { |
33 # Any other builds don't use a sysroot. | 33 # Any other builds don't use a sysroot. |
34 sysroot = "" | 34 sysroot = "" |
35 } | 35 } |
36 } else if (is_linux && !is_chromeos) { | |
37 if (cpu_arch == "mipsel") { | |
38 sysroot = rebase_path( | |
brettw
2014/01/22 01:04:30
I think this fits on one line
petarj
2014/01/22 01:22:22
Done.
| |
39 "//mipsel-sysroot/sysroot", ".", "") | |
40 } else { | |
41 sysroot = "" | |
42 } | |
36 } else if (is_mac) { | 43 } else if (is_mac) { |
37 import("//build/config/mac/mac_sdk.gni") | 44 import("//build/config/mac/mac_sdk.gni") |
38 | 45 |
39 sysroot = mac_sdk_path | 46 sysroot = mac_sdk_path |
40 } else { | 47 } else { |
41 sysroot = "" | 48 sysroot = "" |
42 } | 49 } |
OLD | NEW |