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 import("//build/config/android/config.gni") |
5 import("//build/config/clang/clang.gni") | 6 import("//build/config/clang/clang.gni") |
6 import("//build/config/nacl/config.gni") | 7 import("//build/config/nacl/config.gni") |
7 import("//build/config/sanitizers/sanitizers.gni") | 8 import("//build/config/sanitizers/sanitizers.gni") |
8 import("//build/config/v8_target_cpu.gni") | 9 import("//build/config/v8_target_cpu.gni") |
9 import("//build/toolchain/cc_wrapper.gni") | 10 import("//build/toolchain/cc_wrapper.gni") |
10 import("//build/toolchain/goma.gni") | 11 import("//build/toolchain/goma.gni") |
11 import("//build/toolchain/toolchain.gni") | 12 import("//build/toolchain/toolchain.gni") |
12 import("//tools/grit/grit_rule.gni") | |
13 | 13 |
14 # This template defines a toolchain for something that works like gcc | 14 # This template defines a toolchain for something that works like gcc |
15 # (including clang). | 15 # (including clang). |
16 # | 16 # |
17 # It requires the following variables specifying the executables to run: | 17 # It requires the following variables specifying the executables to run: |
18 # - ar | 18 # - ar |
19 # - cc | 19 # - cc |
20 # - cxx | 20 # - cxx |
21 # - ld | 21 # - ld |
22 # | 22 # |
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
496 forward_variables_from(invoker, [ "strip" ]) | 496 forward_variables_from(invoker, [ "strip" ]) |
497 | 497 |
498 toolchain_args = { | 498 toolchain_args = { |
499 if (defined(invoker.toolchain_args)) { | 499 if (defined(invoker.toolchain_args)) { |
500 forward_variables_from(invoker.toolchain_args, "*") | 500 forward_variables_from(invoker.toolchain_args, "*") |
501 } | 501 } |
502 is_clang = true | 502 is_clang = true |
503 } | 503 } |
504 } | 504 } |
505 } | 505 } |
OLD | NEW |