blob: 51768dfca07d514d5c8c82912111b76469de0068 [file] [log] [blame]
James Robinson646469d2014-10-03 15:33:28 -07001# Copyright 2013 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5import("//build/config/sysroot.gni")
6import("//build/toolchain/clang.gni")
7import("//build/toolchain/gcc_toolchain.gni")
James Robinson646469d2014-10-03 15:33:28 -07008
9gcc_toolchain("arm") {
Petr Hoseka392b302015-09-28 18:26:20 -070010 cc = "arm-linux-gnueabi-gcc"
11 cxx = "arm-linux-gnueabi-g++"
James Robinson646469d2014-10-03 15:33:28 -070012
13 ar = "arm-linux-gnueabi-ar"
14 ld = cxx
James Robinsonc8f302a2015-05-14 16:38:33 -070015 readelf = "arm-linux-gnueabi-readelf"
16 nm = "arm-linux-gnueabi-nm"
James Robinson646469d2014-10-03 15:33:28 -070017
Benjamin Lermane8ca9b72015-02-24 16:42:13 +010018 toolchain_cpu = "arm"
James Robinson646469d2014-10-03 15:33:28 -070019 toolchain_os = "linux"
20 is_clang = false
21}
22
23gcc_toolchain("clang_x86") {
24 if (use_clang_type_profiler) {
25 prefix = rebase_path("//third_party/llvm-allocated-type/Linux_ia32/bin",
26 root_build_dir)
27 } else {
28 prefix = rebase_path("//third_party/llvm-build/Release+Asserts/bin",
29 root_build_dir)
30 }
Petr Hoseka392b302015-09-28 18:26:20 -070031 cc = "$prefix/clang"
32 cxx = "$prefix/clang++"
James Robinsonc8f302a2015-05-14 16:38:33 -070033 readelf = "readelf"
34 nm = "nm"
James Robinson646469d2014-10-03 15:33:28 -070035 ar = "ar"
36 ld = cxx
37
Benjamin Lermane8ca9b72015-02-24 16:42:13 +010038 toolchain_cpu = "x86"
James Robinson646469d2014-10-03 15:33:28 -070039 toolchain_os = "linux"
40 is_clang = true
41}
42
43gcc_toolchain("x86") {
Petr Hoseka392b302015-09-28 18:26:20 -070044 cc = "gcc"
45 cxx = "g++"
James Robinson646469d2014-10-03 15:33:28 -070046
James Robinsonc8f302a2015-05-14 16:38:33 -070047 readelf = "readelf"
48 nm = "nm"
James Robinson646469d2014-10-03 15:33:28 -070049 ar = "ar"
50 ld = cxx
51
Benjamin Lermane8ca9b72015-02-24 16:42:13 +010052 toolchain_cpu = "x86"
James Robinson646469d2014-10-03 15:33:28 -070053 toolchain_os = "linux"
54 is_clang = false
55}
56
57gcc_toolchain("clang_x64") {
58 if (use_clang_type_profiler) {
59 prefix = rebase_path("//third_party/llvm-allocated-type/Linux_x64/bin",
60 root_build_dir)
61 } else {
62 prefix = rebase_path("//third_party/llvm-build/Release+Asserts/bin",
63 root_build_dir)
64 }
Petr Hoseka392b302015-09-28 18:26:20 -070065 cc = "$prefix/clang"
66 cxx = "$prefix/clang++"
James Robinson646469d2014-10-03 15:33:28 -070067
James Robinsonc8f302a2015-05-14 16:38:33 -070068 readelf = "readelf"
69 nm = "nm"
James Robinson646469d2014-10-03 15:33:28 -070070 ar = "ar"
71 ld = cxx
72
Benjamin Lermane8ca9b72015-02-24 16:42:13 +010073 toolchain_cpu = "x64"
James Robinson646469d2014-10-03 15:33:28 -070074 toolchain_os = "linux"
75 is_clang = true
76}
77
78gcc_toolchain("x64") {
Petr Hoseka392b302015-09-28 18:26:20 -070079 cc = "gcc"
80 cxx = "g++"
James Robinson646469d2014-10-03 15:33:28 -070081
James Robinsonc8f302a2015-05-14 16:38:33 -070082 readelf = "readelf"
83 nm = "nm"
James Robinson646469d2014-10-03 15:33:28 -070084 ar = "ar"
85 ld = cxx
86
Benjamin Lermane8ca9b72015-02-24 16:42:13 +010087 toolchain_cpu = "x64"
James Robinson646469d2014-10-03 15:33:28 -070088 toolchain_os = "linux"
89 is_clang = false
90}
91
92gcc_toolchain("mipsel") {
93 cc = "mipsel-linux-gnu-gcc"
94 cxx = "mipsel-linux-gnu-g++"
95 ar = "mipsel-linux-gnu-ar"
96 ld = cxx
James Robinsonc8f302a2015-05-14 16:38:33 -070097 readelf = "mipsel-linux-gnu-readelf"
98 nm = "mipsel-linux-gnu-nm"
James Robinson646469d2014-10-03 15:33:28 -070099
Benjamin Lermane8ca9b72015-02-24 16:42:13 +0100100 toolchain_cpu = "mipsel"
James Robinson646469d2014-10-03 15:33:28 -0700101 toolchain_os = "linux"
102 is_clang = false
Petr Hoseka392b302015-09-28 18:26:20 -0700103 use_ccache = false
104 use_goma = false
James Robinson646469d2014-10-03 15:33:28 -0700105}