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

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

Issue 1395573003: Build nacl_helper_nonsfi with GN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Set cflags locally rather than globally Created 5 years, 1 month 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
OLDNEW
1 # Copyright (c) 2014 The Native Client Authors. All rights reserved. 1 # Copyright (c) 2014 The Native Client 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/config/nacl/config.gni") 6 import("//build/config/nacl/config.gni")
7 import("//build/toolchain/nacl_toolchain.gni") 7 import("//build/toolchain/nacl_toolchain.gni")
8 8
9 # Add the toolchain revision as a preprocessor define so that sources are 9 # Add the toolchain revision as a preprocessor define so that sources are
10 # rebuilt when a toolchain is updated. 10 # rebuilt when a toolchain is updated.
(...skipping 28 matching lines...) Expand all
39 executable_extension = ".pexe.debug" 39 executable_extension = ".pexe.debug"
40 40
41 finalize = toolprefix + "finalize" 41 finalize = toolprefix + "finalize"
42 nonfinal_file = 42 nonfinal_file =
43 "{{root_out_dir}}/{{target_output_name}}${executable_extension}" 43 "{{root_out_dir}}/{{target_output_name}}${executable_extension}"
44 finalized_file = "{{root_out_dir}}/{{target_output_name}}.pexe" 44 finalized_file = "{{root_out_dir}}/{{target_output_name}}.pexe"
45 postlink = "$finalize $nonfinal_file -o $finalized_file" 45 postlink = "$finalize $nonfinal_file -o $finalized_file"
46 link_outputs = [ finalized_file ] 46 link_outputs = [ finalized_file ]
47 } 47 }
48 48
49 nacl_toolchain("newlib_pnacl_nonsfi") {
50 toolchain_package = "pnacl_newlib"
51 toolchain_revision = pnacl_newlib_rev
52 toolchain_cpu = "pnacl"
53 toolprefix =
54 rebase_path("${nacl_toolchain_dir}/${toolchain_package}/bin/pnacl-",
55 root_build_dir)
56 is_nacl_nonsfi = true
57
58 is_clang = true
59 cc = toolprefix + "clang"
60 cxx = toolprefix + "clang++"
61 ar = toolprefix + "ar"
62 ld = cxx
63 executable_extension = ""
brettw 2015/10/25 08:45:33 I think this should default to empty, right? I thi
Petr Hosek 2015/10/25 22:50:48 nacl_toolchain sets this to ".nexe" unless it's ov
64 }
65
49 template("nacl_glibc_toolchain") { 66 template("nacl_glibc_toolchain") {
50 toolchain_cpu = target_name 67 toolchain_cpu = target_name
51 assert(defined(invoker.toolchain_tuple), "Must define toolchain_tuple") 68 assert(defined(invoker.toolchain_tuple), "Must define toolchain_tuple")
52 assert(defined(invoker.toolchain_package), "Must define toolchain_package") 69 assert(defined(invoker.toolchain_package), "Must define toolchain_package")
53 assert(defined(invoker.toolchain_revision), "Must define toolchain_revision") 70 assert(defined(invoker.toolchain_revision), "Must define toolchain_revision")
54 forward_variables_from(invoker, 71 forward_variables_from(invoker,
55 [ 72 [
56 "toolchain_package", 73 "toolchain_package",
57 "toolchain_revision", 74 "toolchain_revision",
58 ]) 75 ])
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 toolchain_tuple = "i686-nacl" 181 toolchain_tuple = "i686-nacl"
165 } 182 }
166 183
167 nacl_clang_toolchains("x64") { 184 nacl_clang_toolchains("x64") {
168 toolchain_tuple = "x86_64-nacl" 185 toolchain_tuple = "x86_64-nacl"
169 } 186 }
170 187
171 nacl_clang_toolchains("arm") { 188 nacl_clang_toolchains("arm") {
172 toolchain_tuple = "arm-nacl" 189 toolchain_tuple = "arm-nacl"
173 } 190 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698