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

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

Issue 2101243005: Add a snapshot of flutter/engine/src/build to our sdk (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: add README.dart Created 4 years, 5 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/goma.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
(Empty)
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
3 # found in the LICENSE file.
4
5 import("//build/config/sysroot.gni")
6 import("//build/toolchain/ccache.gni")
7 import("//build/toolchain/clang.gni")
8 import("//build/toolchain/gcc_toolchain.gni")
9 import("//build/toolchain/goma.gni")
10
11 if (use_goma) {
12 assert(!use_ccache, "Goma and ccache can't be used together.")
13 compiler_prefix = "$goma_dir/gomacc "
14 } else if (use_ccache) {
15 compiler_prefix = "ccache "
16 } else {
17 compiler_prefix = ""
18 }
19
20 gcc_toolchain("arm") {
21 cc = "${compiler_prefix}arm-linux-gnueabi-gcc"
22 cxx = "${compiler_prefix}arm-linux-gnueabi-g++"
23
24 ar = "arm-linux-gnueabi-ar"
25 ld = cxx
26 readelf = "arm-linux-gnueabi-readelf"
27 nm = "arm-linux-gnueabi-nm"
28
29 toolchain_cpu = "arm"
30 toolchain_os = "linux"
31 is_clang = false
32 }
33
34 gcc_toolchain("clang_x86") {
35 if (use_clang_type_profiler) {
36 prefix = rebase_path("//third_party/llvm-allocated-type/Linux_ia32/bin",
37 root_build_dir)
38 } else {
39 prefix = rebase_path("//third_party/llvm-build/Release+Asserts/bin",
40 root_build_dir)
41 }
42 cc = "${compiler_prefix}$prefix/clang"
43 cxx = "${compiler_prefix}$prefix/clang++"
44 readelf = "readelf"
45 nm = "nm"
46 ar = "ar"
47 ld = cxx
48
49 toolchain_cpu = "x86"
50 toolchain_os = "linux"
51 is_clang = true
52 }
53
54 gcc_toolchain("x86") {
55 cc = "${compiler_prefix}gcc"
56 cxx = "$compiler_prefix}g++"
57
58 readelf = "readelf"
59 nm = "nm"
60 ar = "ar"
61 ld = cxx
62
63 toolchain_cpu = "x86"
64 toolchain_os = "linux"
65 is_clang = false
66 }
67
68 gcc_toolchain("clang_x64") {
69 if (use_clang_type_profiler) {
70 prefix = rebase_path("//third_party/llvm-allocated-type/Linux_x64/bin",
71 root_build_dir)
72 } else {
73 prefix = rebase_path("//third_party/llvm-build/Release+Asserts/bin",
74 root_build_dir)
75 }
76 cc = "${compiler_prefix}$prefix/clang"
77 cxx = "${compiler_prefix}$prefix/clang++"
78
79 readelf = "readelf"
80 nm = "nm"
81 ar = "ar"
82 ld = cxx
83 strip = "strip"
84
85 toolchain_cpu = "x64"
86 toolchain_os = "linux"
87 is_clang = true
88 }
89
90 gcc_toolchain("x64") {
91 cc = "${compiler_prefix}gcc"
92 cxx = "${compiler_prefix}g++"
93
94 readelf = "readelf"
95 nm = "nm"
96 ar = "ar"
97 ld = cxx
98
99 toolchain_cpu = "x64"
100 toolchain_os = "linux"
101 is_clang = false
102 }
103
104 gcc_toolchain("mipsel") {
105 cc = "mipsel-linux-gnu-gcc"
106 cxx = "mipsel-linux-gnu-g++"
107 ar = "mipsel-linux-gnu-ar"
108 ld = cxx
109 readelf = "mipsel-linux-gnu-readelf"
110 nm = "mipsel-linux-gnu-nm"
111
112 toolchain_cpu = "mipsel"
113 toolchain_os = "linux"
114 is_clang = false
115 }
OLDNEW
« no previous file with comments | « build/toolchain/goma.gni ('k') | build/toolchain/mac/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698