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("//mipsel-sysroot/sysroot", ".", "") |
| 39 } else { |
| 40 sysroot = "" |
| 41 } |
36 } else if (is_mac) { | 42 } else if (is_mac) { |
37 import("//build/config/mac/mac_sdk.gni") | 43 import("//build/config/mac/mac_sdk.gni") |
38 | 44 |
39 sysroot = mac_sdk_path | 45 sysroot = mac_sdk_path |
40 } else { | 46 } else { |
41 sysroot = "" | 47 sysroot = "" |
42 } | 48 } |
OLD | NEW |