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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 cc_wrapper = "" | 96 cc_wrapper = "" |
97 is_clang = cros_host_is_clang | 97 is_clang = cros_host_is_clang |
98 current_cpu = host_cpu | 98 current_cpu = host_cpu |
99 current_os = "linux" | 99 current_os = "linux" |
100 use_sysroot = false | 100 use_sysroot = false |
| 101 |
| 102 use_cras = false |
| 103 ozone_platform_gbm = false |
| 104 use_ozone = false |
| 105 use_system_harfbuzz = false |
101 } | 106 } |
102 } | 107 } |
103 | 108 |
104 gcc_toolchain("v8_snapshot") { | 109 gcc_toolchain("v8_snapshot") { |
105 # These are args for the template. | 110 # These are args for the template. |
106 ar = cros_v8_snapshot_ar | 111 ar = cros_v8_snapshot_ar |
107 cc = cros_v8_snapshot_cc | 112 cc = cros_v8_snapshot_cc |
108 cxx = cros_v8_snapshot_cxx | 113 cxx = cros_v8_snapshot_cxx |
109 ld = cxx | 114 ld = cxx |
110 if (cros_v8_snapshot_ld != "") { | 115 if (cros_v8_snapshot_ld != "") { |
(...skipping 16 matching lines...) Expand all Loading... |
127 if (target_cpu == "x86" || target_cpu == "arm" || target_cpu == "mipsel") { | 132 if (target_cpu == "x86" || target_cpu == "arm" || target_cpu == "mipsel") { |
128 current_cpu = "x86" | 133 current_cpu = "x86" |
129 } else { | 134 } else { |
130 current_cpu = "x64" | 135 current_cpu = "x64" |
131 } | 136 } |
132 v8_current_cpu = v8_target_cpu | 137 v8_current_cpu = v8_target_cpu |
133 current_os = "linux" | 138 current_os = "linux" |
134 use_sysroot = false | 139 use_sysroot = false |
135 } | 140 } |
136 } | 141 } |
OLD | NEW |