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 25 matching lines...) Expand all Loading... |
36 } else if (is_linux && !is_chromeos) { | 36 } else if (is_linux && !is_chromeos) { |
37 if (cpu_arch == "mipsel") { | 37 if (cpu_arch == "mipsel") { |
38 sysroot = rebase_path("//mipsel-sysroot/sysroot", ".", "") | 38 sysroot = rebase_path("//mipsel-sysroot/sysroot", ".", "") |
39 } else { | 39 } else { |
40 sysroot = "" | 40 sysroot = "" |
41 } | 41 } |
42 } else if (is_mac) { | 42 } else if (is_mac) { |
43 import("//build/config/mac/mac_sdk.gni") | 43 import("//build/config/mac/mac_sdk.gni") |
44 | 44 |
45 sysroot = mac_sdk_path | 45 sysroot = mac_sdk_path |
| 46 } else if (is_ios) { |
| 47 import("//build/config/ios/ios_sdk.gni") |
| 48 sysroot = ios_sdk_path |
46 } else { | 49 } else { |
47 sysroot = "" | 50 sysroot = "" |
48 } | 51 } |
OLD | NEW |