OLD | NEW |
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 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("../clang.gni") | 5 import("../clang.gni") |
6 import("../goma.gni") | 6 import("../goma.gni") |
7 import("../gcc_toolchain.gni") | 7 import("../gcc_toolchain.gni") |
8 | 8 |
9 if (is_gyp) { | 9 if (is_gyp) { |
10 # Set the compilers for GYP to use. This logic is only relevant to GYP where | 10 # Set the compilers for GYP to use. This logic is only relevant to GYP where |
(...skipping 11 matching lines...) Expand all Loading... |
22 # There is a TODO(yyanagisawa) in common.gypi about the make generator not | 22 # There is a TODO(yyanagisawa) in common.gypi about the make generator not |
23 # supporting CC_wrapper without CC. As a result, we must add a condition | 23 # supporting CC_wrapper without CC. As a result, we must add a condition |
24 # when on the generator when we're not explicitly setting the variables | 24 # when on the generator when we're not explicitly setting the variables |
25 # above (which happens when gyp_header is empty at this point). | 25 # above (which happens when gyp_header is empty at this point). |
26 # | 26 # |
27 # GYP will interpret the file once for each generator, so we have to write | 27 # GYP will interpret the file once for each generator, so we have to write |
28 # this condition into the GYP file since the user could have more than one | 28 # this condition into the GYP file since the user could have more than one |
29 # generator set. | 29 # generator set. |
30 gyp_header = | 30 gyp_header = |
31 "'conditions':" + | 31 "'conditions':" + |
32 "['\"<(GENERATOR)\"==\"ninja\"', { 'make_global_settings': [" + | 32 "[['\"<(GENERATOR)\"==\"ninja\"', { 'make_global_settings': [" + |
33 make_global_settings + | 33 make_global_settings + |
34 make_goma_global_settings + | 34 make_goma_global_settings + |
35 "]}]," | 35 "]}]]," |
36 } else { | 36 } else { |
37 gyp_header = "'make_global_settings': [" + make_global_settings + "]," | 37 gyp_header = "'make_global_settings': [" + make_global_settings + "]," |
38 } | 38 } |
39 } | 39 } |
40 | 40 |
41 # ARM -------------------------------------------------------------------------- | 41 # ARM -------------------------------------------------------------------------- |
42 | 42 |
43 gcc_toolchain("arm") { | 43 gcc_toolchain("arm") { |
44 cc = "arm-linux-gnueabi-gcc" | 44 cc = "arm-linux-gnueabi-gcc" |
45 cxx = "arm-linux-gnueabi-g++" | 45 cxx = "arm-linux-gnueabi-g++" |
(...skipping 30 matching lines...) Expand all Loading... |
76 | 76 |
77 gcc_toolchain("mipsel") { | 77 gcc_toolchain("mipsel") { |
78 cc = "mipsel-linux-gnu-gcc" | 78 cc = "mipsel-linux-gnu-gcc" |
79 cxx = "mipsel-linux-gnu-g++" | 79 cxx = "mipsel-linux-gnu-g++" |
80 ar = "mipsel-linux-gnu-ar" | 80 ar = "mipsel-linux-gnu-ar" |
81 ld = cxx | 81 ld = cxx |
82 | 82 |
83 toolchain_cpu_arch = "mipsel" | 83 toolchain_cpu_arch = "mipsel" |
84 toolchain_os = "linux" | 84 toolchain_os = "linux" |
85 } | 85 } |
OLD | NEW |