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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 sysroot = "//build/linux/ubuntu_precise_amd64-sysroot" | 56 sysroot = "//build/linux/ubuntu_precise_amd64-sysroot" |
57 } else { | 57 } else { |
58 if (current_cpu == "x64") { | 58 if (current_cpu == "x64") { |
59 sysroot = "//build/linux/debian_wheezy_amd64-sysroot" | 59 sysroot = "//build/linux/debian_wheezy_amd64-sysroot" |
60 | 60 |
61 # TODO(tonikitoo): Remove the whole if clause below when debian/wheezy | 61 # TODO(tonikitoo): Remove the whole if clause below when debian/wheezy |
62 # sysroots are switched to debian/jessie, crbug.com/564904. | 62 # sysroots are switched to debian/jessie, crbug.com/564904. |
63 import("//build_overrides/build.gni") | 63 import("//build_overrides/build.gni") |
64 if (build_with_chromium) { | 64 if (build_with_chromium) { |
65 import("//ui/ozone/ozone.gni") | 65 import("//ui/ozone/ozone.gni") |
66 if (use_ozone && !is_chromecast) { | 66 import("//ui/base/ui_features.gni") |
| 67 if (use_ozone && use_xkbcommon) { |
67 sysroot = "//build/linux/debian_jessie_amd64-sysroot" | 68 sysroot = "//build/linux/debian_jessie_amd64-sysroot" |
68 } | 69 } |
69 } | 70 } |
70 } else if (current_cpu == "x86") { | 71 } else if (current_cpu == "x86") { |
71 sysroot = "//build/linux/debian_wheezy_i386-sysroot" | 72 sysroot = "//build/linux/debian_wheezy_i386-sysroot" |
72 } else if (current_cpu == "mipsel") { | 73 } else if (current_cpu == "mipsel") { |
73 sysroot = "//build/linux/debian_wheezy_mips-sysroot" | 74 sysroot = "//build/linux/debian_wheezy_mips-sysroot" |
74 } else if (current_cpu == "arm") { | 75 } else if (current_cpu == "arm") { |
75 sysroot = "//build/linux/debian_wheezy_arm-sysroot" | 76 sysroot = "//build/linux/debian_wheezy_arm-sysroot" |
76 } else if (current_cpu == "arm64") { | 77 } else if (current_cpu == "arm64") { |
(...skipping 25 matching lines...) Expand all Loading... |
102 } | 103 } |
103 } else if (is_mac) { | 104 } else if (is_mac) { |
104 import("//build/config/mac/mac_sdk.gni") | 105 import("//build/config/mac/mac_sdk.gni") |
105 sysroot = mac_sdk_path | 106 sysroot = mac_sdk_path |
106 } else if (is_ios) { | 107 } else if (is_ios) { |
107 import("//build/config/ios/ios_sdk.gni") | 108 import("//build/config/ios/ios_sdk.gni") |
108 sysroot = ios_sdk_path | 109 sysroot = ios_sdk_path |
109 } else { | 110 } else { |
110 sysroot = "" | 111 sysroot = "" |
111 } | 112 } |
OLD | NEW |