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

Side by Side Diff: components/nacl/BUILD.gn

Issue 1395573003: Build nacl_helper_nonsfi with GN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup the compiler configuration 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) 2015 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2015 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/crypto.gni") 5 import("//build/config/crypto.gni")
6 import("//build/config/features.gni") 6 import("//build/config/features.gni")
7 import("//build/config/ui.gni") 7 import("//build/config/ui.gni")
8 import("//testing/test.gni") 8 import("//testing/test.gni")
9 9
10 if (enable_nacl) { 10 if (enable_nacl) {
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 227
228 if (use_glib) { 228 if (use_glib) {
229 configs += [ "//build/config/linux:glib" ] 229 configs += [ "//build/config/linux:glib" ]
230 } 230 }
231 231
232 if (use_seccomp_bpf) { 232 if (use_seccomp_bpf) {
233 defines += [ "USE_SECCOMP_BPF" ] 233 defines += [ "USE_SECCOMP_BPF" ]
234 } 234 }
235 } 235 }
236 } 236 }
237
238 if (is_nacl) {
239 executable("nacl_helper_nonsfi_nexe") {
240 output_name = "nacl_helper_nonsfi"
241 set_sources_assignment_filter([])
242 sources = [
243 "common/nacl_messages.cc",
244 "common/nacl_messages.h",
245 "common/nacl_types.cc",
246 "common/nacl_types.h",
247 "common/nacl_types_param_traits.cc",
248 "common/nacl_types_param_traits.h",
249 "loader/nacl_helper_linux.cc",
250 "loader/nacl_helper_linux.h",
251 "loader/nacl_trusted_listener.cc",
252 "loader/nacl_trusted_listener.h",
253 "loader/nonsfi/nonsfi_listener.cc",
254 "loader/nonsfi/nonsfi_listener.h",
255 "loader/nonsfi/nonsfi_main.cc",
256 "loader/nonsfi/nonsfi_main.h",
257 ]
258 ldflags = [
259 "-Wl,--noirt",
Mark Seaborn 2015/10/22 21:48:30 I think these flags (and "-lc++" etc.) belong in t
Petr Hosek 2015/10/23 03:01:15 Done. Yes, I started porting the unit tests as we
260 "-Wt,--noirt",
261 "-Wt,--noirtshim",
262 "-nodefaultlibs",
263 ]
264 libs = [
265 "c++",
Mark Seaborn 2015/10/22 21:48:30 libc++ should be brought in automatically by linki
Petr Hosek 2015/10/23 03:01:15 Done.
266 "m",
267 "c",
268 "pnaclmm",
269 ]
270 deps = [
271 ":nacl_switches",
272 ":nacl_helper_nonsfi_sandbox",
273 "//base",
274 "//components/tracing",
275 "//content",
276 "//ipc",
277 "//native_client/src/nonsfi/irt:nacl_sys_private",
278 "//native_client/src/nonsfi/loader:elf_loader",
279 "//native_client/src/untrusted/nacl:nacl",
280 "//ppapi/proxy",
281 "//sandbox/linux:sandbox_linux_nacl_nonsfi",
282 ]
283 }
284
285 source_set("nacl_helper_nonsfi_sandbox") {
286 set_sources_assignment_filter([])
287 sources = [
288 "loader/nonsfi/nonsfi_sandbox.cc",
289 "loader/nonsfi/nonsfi_sandbox.h",
290 "loader/sandbox_linux/nacl_sandbox_linux.cc",
291 "loader/sandbox_linux/nacl_sandbox_linux.h",
292 ]
293 deps = [
294 "//base",
295 "//content",
296 "//sandbox/linux:sandbox_linux_nacl_nonsfi",
297 ]
298 }
299
300 copy("nacl_helper_nonsfi_copy") {
301 sources = [
302 "${root_out_dir}/nacl_helper_nonsfi",
303 ]
304 outputs = [
305 "${root_build_dir}/{{source_file_part}}",
306 ]
307 deps = [
308 ":nacl_helper_nonsfi_nexe",
309 ]
310 }
311
312 group("nacl_helper_nonsfi") {
313 deps = [
314 ":nacl_helper_nonsfi_copy(//build/toolchain/nacl:newlib_pnacl_nonsfi)",
315 ]
316 }
317 }
237 } else { 318 } else {
238 group("nacl") { 319 group("nacl") {
239 } 320 }
240 group("nacl_helper") { 321 group("nacl_helper") {
241 } 322 }
323 group("nacl_helper_nonsfi") {
324 }
242 } 325 }
243 326
244 source_set("nacl_switches") { 327 source_set("nacl_switches") {
245 sources = [ 328 sources = [
246 "common/nacl_switches.cc", 329 "common/nacl_switches.cc",
247 "common/nacl_switches.h", 330 "common/nacl_switches.h",
248 ] 331 ]
249 } 332 }
250 333
251 source_set("nacl_common") { 334 source_set("nacl_common") {
(...skipping 30 matching lines...) Expand all
282 365
283 if (is_linux) { 366 if (is_linux) {
284 sources += [ 367 sources += [
285 "common/nacl_paths.cc", 368 "common/nacl_paths.cc",
286 "common/nacl_paths.h", 369 "common/nacl_paths.h",
287 ] 370 ]
288 371
289 defines = [ "__STDC_LIMIT_MACROS=1" ] 372 defines = [ "__STDC_LIMIT_MACROS=1" ]
290 } 373 }
291 } 374 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698