Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(235)

Side by Side Diff: build/toolchain/linux/BUILD.gn

Issue 2848943003: [infra] Assembles the SDK using GN rather than create_sdk.py (Closed)
Patch Set: Move copy_dev_compiler_tools out of the default full SDK build Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build/toolchain/gcc_toolchain.gni ('k') | build/toolchain/mac/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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("//build/config/sysroot.gni") 5 import("//build/config/sysroot.gni")
6 import("//build/toolchain/ccache.gni") 6 import("//build/toolchain/ccache.gni")
7 import("//build/toolchain/clang.gni") 7 import("//build/toolchain/clang.gni")
8 import("//build/toolchain/gcc_toolchain.gni") 8 import("//build/toolchain/gcc_toolchain.gni")
9 import("//build/toolchain/goma.gni") 9 import("//build/toolchain/goma.gni")
10 10
(...skipping 16 matching lines...) Expand all
27 prefix = toolchain_prefix 27 prefix = toolchain_prefix
28 } 28 }
29 29
30 cc = "${compiler_prefix}${prefix}gcc" 30 cc = "${compiler_prefix}${prefix}gcc"
31 cxx = "${compiler_prefix}${prefix}g++" 31 cxx = "${compiler_prefix}${prefix}g++"
32 32
33 ar = "${prefix}ar" 33 ar = "${prefix}ar"
34 ld = cxx 34 ld = cxx
35 readelf = "${prefix}readelf" 35 readelf = "${prefix}readelf"
36 nm = "${prefix}nm" 36 nm = "${prefix}nm"
37 strip = "${prefix}strip"
37 38
38 toolchain_cpu = "arm" 39 toolchain_cpu = "arm"
39 toolchain_os = "linux" 40 toolchain_os = "linux"
40 is_clang = false 41 is_clang = false
41 } 42 }
42 43
43 gcc_toolchain("arm64") { 44 gcc_toolchain("arm64") {
44 prefix = "aarch64-linux-gnu-" 45 prefix = "aarch64-linux-gnu-"
45 if (toolchain_prefix != "") { 46 if (toolchain_prefix != "") {
46 prefix = toolchain_prefix 47 prefix = toolchain_prefix
47 } 48 }
48 49
49 cc = "${compiler_prefix}${prefix}gcc" 50 cc = "${compiler_prefix}${prefix}gcc"
50 cxx = "${compiler_prefix}${prefix}g++" 51 cxx = "${compiler_prefix}${prefix}g++"
51 52
52 ar = "${prefix}ar" 53 ar = "${prefix}ar"
53 ld = cxx 54 ld = cxx
54 readelf = "${prefix}readelf" 55 readelf = "${prefix}readelf"
55 nm = "${prefix}nm" 56 nm = "${prefix}nm"
57 strip = "${prefix}strip"
56 58
57 toolchain_cpu = "arm64" 59 toolchain_cpu = "arm64"
58 toolchain_os = "linux" 60 toolchain_os = "linux"
59 is_clang = false 61 is_clang = false
60 } 62 }
61 63
62 gcc_toolchain("clang_x86") { 64 gcc_toolchain("clang_x86") {
63 prefix = rebase_path("//buildtools/toolchain/clang+llvm-x86_64-linux/bin", 65 prefix = rebase_path("//buildtools/toolchain/clang+llvm-x86_64-linux/bin",
64 root_build_dir) 66 root_build_dir)
65 cc = "${compiler_prefix}$prefix/clang" 67 if (toolchain_prefix != "") {
66 cxx = "${compiler_prefix}$prefix/clang++" 68 prefix = toolchain_prefix
69 }
70 cc = "${compiler_prefix}${prefix}/clang"
71 cxx = "${compiler_prefix}${prefix}/clang++"
67 readelf = "readelf" 72 readelf = "readelf"
68 nm = "nm" 73 nm = "${prefix}/llvm-nm"
69 ar = "ar" 74 ar = "${prefix}/llvm-ar"
70 ld = cxx 75 ld = cxx
76 strip = "${prefix}/strip"
71 77
72 toolchain_cpu = "x86" 78 toolchain_cpu = "x86"
73 toolchain_os = "linux" 79 toolchain_os = "linux"
74 is_clang = true 80 is_clang = true
75 } 81 }
76 82
77 gcc_toolchain("x86") { 83 gcc_toolchain("x86") {
78 cc = "${compiler_prefix}gcc" 84 prefix = ""
79 cxx = "${compiler_prefix}g++" 85 if (toolchain_prefix != "") {
86 prefix = toolchain_prefix
87 }
88 cc = "${compiler_prefix}${prefix}gcc"
89 cxx = "${compiler_prefix}${prefix}g++"
80 90
81 readelf = "readelf" 91 readelf = "${prefix}readelf"
82 nm = "nm" 92 nm = "${prefix}nm"
83 ar = "ar" 93 ar = "${prefix}ar"
84 ld = cxx 94 ld = cxx
95 strip = "${prefix}strip"
85 96
86 toolchain_cpu = "x86" 97 toolchain_cpu = "x86"
87 toolchain_os = "linux" 98 toolchain_os = "linux"
88 is_clang = false 99 is_clang = false
89 } 100 }
90 101
91 gcc_toolchain("clang_x64") { 102 gcc_toolchain("clang_x64") {
92 prefix = rebase_path("//buildtools/toolchain/clang+llvm-x86_64-linux/bin", 103 prefix = rebase_path("//buildtools/toolchain/clang+llvm-x86_64-linux/bin",
93 root_build_dir) 104 root_build_dir)
94 cc = "${compiler_prefix}$prefix/clang" 105 if (toolchain_prefix != "") {
95 cxx = "${compiler_prefix}$prefix/clang++" 106 prefix = toolchain_prefix
107 }
108 cc = "${compiler_prefix}${prefix}/clang"
109 cxx = "${compiler_prefix}${prefix}/clang++"
96 110
97 readelf = "readelf" 111 readelf = "readelf"
98 nm = "nm" 112 nm = "${prefix}/llvm-nm"
99 ar = "ar" 113 ar = "${prefix}/llvm-ar"
100 ld = cxx 114 ld = cxx
115 strip = "${prefix}/strip"
101 116
102 toolchain_cpu = "x64" 117 toolchain_cpu = "x64"
103 toolchain_os = "linux" 118 toolchain_os = "linux"
104 is_clang = true 119 is_clang = true
105 } 120 }
106 121
107 gcc_toolchain("x64") { 122 gcc_toolchain("x64") {
108 cc = "${compiler_prefix}gcc" 123 prefix = ""
109 cxx = "${compiler_prefix}g++" 124 if (toolchain_prefix != "") {
125 prefix = toolchain_prefix
126 }
127 cc = "${compiler_prefix}${prefix}gcc"
128 cxx = "${compiler_prefix}${prefix}g++"
110 129
111 readelf = "readelf" 130 readelf = "${prefix}readelf"
112 nm = "nm" 131 nm = "${prefix}nm"
113 ar = "ar" 132 ar = "${prefix}ar"
114 ld = cxx 133 ld = cxx
134 strip = "${prefix}strip"
115 135
116 toolchain_cpu = "x64" 136 toolchain_cpu = "x64"
117 toolchain_os = "linux" 137 toolchain_os = "linux"
118 is_clang = false 138 is_clang = false
119 } 139 }
120 140
121 gcc_toolchain("mipsel") { 141 gcc_toolchain("mipsel") {
122 cc = "${compiler_prefix}${toolchain_prefix}gcc" 142 cc = "${compiler_prefix}${toolchain_prefix}gcc"
123 cxx = "${compiler_prefix}${toolchain_prefix}g++" 143 cxx = "${compiler_prefix}${toolchain_prefix}g++"
124 ar = "${toolchain_prefix}ar" 144 ar = "${toolchain_prefix}ar"
125 ld = cxx 145 ld = cxx
126 readelf = "${toolchain_prefix}readelf" 146 readelf = "${toolchain_prefix}readelf"
127 nm = "${toolchain_prefix}nm" 147 nm = "${toolchain_prefix}nm"
148 strip = "${toolchain_prefix}strip"
128 149
129 toolchain_cpu = "${target_cpu}" 150 toolchain_cpu = "${target_cpu}"
130 toolchain_os = "linux" 151 toolchain_os = "linux"
131 is_clang = is_clang 152 is_clang = is_clang
132 } 153 }
OLDNEW
« no previous file with comments | « build/toolchain/gcc_toolchain.gni ('k') | build/toolchain/mac/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698