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

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: Created 5 years, 2 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
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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 toolchain_tuple = "i686-nacl" 150 toolchain_tuple = "i686-nacl"
151 } 151 }
152 152
153 nacl_clang_toolchains("x64") { 153 nacl_clang_toolchains("x64") {
154 toolchain_tuple = "x86_64-nacl" 154 toolchain_tuple = "x86_64-nacl"
155 } 155 }
156 156
157 nacl_clang_toolchains("arm") { 157 nacl_clang_toolchains("arm") {
158 toolchain_tuple = "arm-nacl" 158 toolchain_tuple = "arm-nacl"
159 } 159 }
160
161 nacl_toolchain("newlib_pnacl_nonsfi") {
162 toolchain_package = "pnacl_newlib"
163 toolchain_revision = pnacl_newlib_rev
164 toolchain_cpu = "pnacl"
165 toolprefix =
166 rebase_path("${nacl_toolchain_dir}/${toolchain_package}/bin/pnacl-",
167 root_build_dir)
168 is_nacl_nonsfi = true
169
170 is_clang = true
171 cc = toolprefix + "clang"
172 cxx = toolprefix + "clang++"
173 ar = toolprefix + "ar"
174 ld = cxx
175 executable_extension = ""
176
177 #executable_extension = ".pexe"
Dirk Pranke 2015/10/21 20:03:52 why is the rest of this commented out?
178
179 #translate = toolprefix + "translate"
180 #portable_file =
181 # "{{root_out_dir}}/{{target_output_name}}${executable_extension}"
182 #translated_file = "{{root_out_dir}}/{{target_output_name}}.nexe"
183 #postlink = "$translate -arch x86-32-nonsfi $portable_file -o $translated_file "
184 #link_outputs = [ translated_file ]
185 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698