Chromium Code Reviews| Index: build/toolchain/cros/BUILD.gn |
| diff --git a/build/toolchain/cros/BUILD.gn b/build/toolchain/cros/BUILD.gn |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..7ab305ae2ee5a6d2321d72fff8bf68990b59535c |
| --- /dev/null |
| +++ b/build/toolchain/cros/BUILD.gn |
| @@ -0,0 +1,28 @@ |
| +# Copyright 2014 The Chromium Authors. All rights reserved. |
| +# Use of this source code is governed by a BSD-style license that can be |
| +# found in the LICENSE file. |
| + |
| +import("//build/toolchain/clang.gni") |
| +import("//build/toolchain/gcc_toolchain.gni") |
| + |
| +declare_args() { |
| + cros_target_cc = "" |
|
brettw
2014/09/23 20:20:17
Documentation.
Chris Masone
2014/09/23 22:33:59
Done.
|
| + cros_target_cxx = "" |
| + cros_target_ar = "" |
| +} |
| + |
| +gcc_toolchain("target") { |
| + assert(cros_target_cc != "", "Must provide target CC.") |
| + assert(cros_target_cxx != "", "Must provide target CXX.") |
| + assert(cros_target_ar != "", "Must provide target AR.") |
| + |
| + cc = "${cros_target_cc}" |
| + cxx = "${cros_target_cxx}" |
| + |
| + ar = "${cros_target_ar}" |
| + ld = cxx |
| + |
| + toolchain_cpu_arch = "${cpu_arch}" |
| + toolchain_os = "linux" |
| + is_clang = is_clang |
| +} |