| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 import("//build/config/compiler/compiler.gni") | 5 import("//build/config/compiler/compiler.gni") |
| 6 import("//build/config/sysroot.gni") | 6 import("//build/config/sysroot.gni") |
| 7 import("//build/toolchain/gcc_toolchain.gni") | 7 import("//build/toolchain/gcc_toolchain.gni") |
| 8 import("//build/toolchain/cros_toolchain.gni") | 8 import("//build/toolchain/cros_toolchain.gni") |
| 9 | 9 |
| 10 # This is the normal toolchain for most targets. | 10 # This is the normal toolchain for most targets. |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 } | 86 } |
| 87 if (cros_host_readelf != "") { | 87 if (cros_host_readelf != "") { |
| 88 readelf = cros_host_readelf | 88 readelf = cros_host_readelf |
| 89 } | 89 } |
| 90 extra_cflags = cros_host_extra_cflags | 90 extra_cflags = cros_host_extra_cflags |
| 91 extra_cppflags = cros_host_extra_cppflags | 91 extra_cppflags = cros_host_extra_cppflags |
| 92 extra_cxxflags = cros_host_extra_cxxflags | 92 extra_cxxflags = cros_host_extra_cxxflags |
| 93 extra_ldflags = cros_host_extra_ldflags | 93 extra_ldflags = cros_host_extra_ldflags |
| 94 | 94 |
| 95 toolchain_args = { | 95 toolchain_args = { |
| 96 use_cras = false |
| 97 ozone_platform_gbm = false |
| 98 use_system_harfbuzz = false |
| 99 use_ozone = false |
| 96 cc_wrapper = "" | 100 cc_wrapper = "" |
| 97 is_clang = cros_host_is_clang | 101 is_clang = cros_host_is_clang |
| 98 current_cpu = host_cpu | 102 current_cpu = host_cpu |
| 99 current_os = "linux" | 103 current_os = "linux" |
| 100 use_sysroot = false | 104 use_sysroot = false |
| 101 } | 105 } |
| 102 } | 106 } |
| 103 | 107 |
| 104 gcc_toolchain("v8_snapshot") { | 108 gcc_toolchain("v8_snapshot") { |
| 105 # These are args for the template. | 109 # These are args for the template. |
| (...skipping 21 matching lines...) Expand all Loading... |
| 127 if (target_cpu == "x86" || target_cpu == "arm" || target_cpu == "mipsel") { | 131 if (target_cpu == "x86" || target_cpu == "arm" || target_cpu == "mipsel") { |
| 128 current_cpu = "x86" | 132 current_cpu = "x86" |
| 129 } else { | 133 } else { |
| 130 current_cpu = "x64" | 134 current_cpu = "x64" |
| 131 } | 135 } |
| 132 v8_current_cpu = v8_target_cpu | 136 v8_current_cpu = v8_target_cpu |
| 133 current_os = "linux" | 137 current_os = "linux" |
| 134 use_sysroot = false | 138 use_sysroot = false |
| 135 } | 139 } |
| 136 } | 140 } |
| OLD | NEW |