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

Unified 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, 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 side-by-side diff with in-line comments
Download patch
Index: components/nacl/BUILD.gn
diff --git a/components/nacl/BUILD.gn b/components/nacl/BUILD.gn
index ceb79717289caa4a54264bf5f3a8adc01a723eaf..c9a1368fd9fa8b436e4d56cb5d689ab1296820e7 100644
--- a/components/nacl/BUILD.gn
+++ b/components/nacl/BUILD.gn
@@ -234,11 +234,94 @@ if (enable_nacl) {
}
}
}
+
+ if (is_nacl) {
+ executable("nacl_helper_nonsfi_nexe") {
+ output_name = "nacl_helper_nonsfi"
+ set_sources_assignment_filter([])
+ sources = [
+ "common/nacl_messages.cc",
+ "common/nacl_messages.h",
+ "common/nacl_types.cc",
+ "common/nacl_types.h",
+ "common/nacl_types_param_traits.cc",
+ "common/nacl_types_param_traits.h",
+ "loader/nacl_helper_linux.cc",
+ "loader/nacl_helper_linux.h",
+ "loader/nacl_trusted_listener.cc",
+ "loader/nacl_trusted_listener.h",
+ "loader/nonsfi/nonsfi_listener.cc",
+ "loader/nonsfi/nonsfi_listener.h",
+ "loader/nonsfi/nonsfi_main.cc",
+ "loader/nonsfi/nonsfi_main.h",
+ ]
+ ldflags = [
+ "-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
+ "-Wt,--noirt",
+ "-Wt,--noirtshim",
+ "-nodefaultlibs",
+ ]
+ libs = [
+ "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.
+ "m",
+ "c",
+ "pnaclmm",
+ ]
+ deps = [
+ ":nacl_switches",
+ ":nacl_helper_nonsfi_sandbox",
+ "//base",
+ "//components/tracing",
+ "//content",
+ "//ipc",
+ "//native_client/src/nonsfi/irt:nacl_sys_private",
+ "//native_client/src/nonsfi/loader:elf_loader",
+ "//native_client/src/untrusted/nacl:nacl",
+ "//ppapi/proxy",
+ "//sandbox/linux:sandbox_linux_nacl_nonsfi",
+ ]
+ }
+
+ source_set("nacl_helper_nonsfi_sandbox") {
+ set_sources_assignment_filter([])
+ sources = [
+ "loader/nonsfi/nonsfi_sandbox.cc",
+ "loader/nonsfi/nonsfi_sandbox.h",
+ "loader/sandbox_linux/nacl_sandbox_linux.cc",
+ "loader/sandbox_linux/nacl_sandbox_linux.h",
+ ]
+ deps = [
+ "//base",
+ "//content",
+ "//sandbox/linux:sandbox_linux_nacl_nonsfi",
+ ]
+ }
+
+ copy("nacl_helper_nonsfi_copy") {
+ sources = [
+ "${root_out_dir}/nacl_helper_nonsfi",
+ ]
+ outputs = [
+ "${root_build_dir}/{{source_file_part}}",
+ ]
+ deps = [
+ ":nacl_helper_nonsfi_nexe",
+ ]
+ }
+
+ group("nacl_helper_nonsfi") {
+ deps = [
+ ":nacl_helper_nonsfi_copy(//build/toolchain/nacl:newlib_pnacl_nonsfi)",
+ ]
+ }
+ }
} else {
group("nacl") {
}
group("nacl_helper") {
}
+ group("nacl_helper_nonsfi") {
+ }
}
source_set("nacl_switches") {

Powered by Google App Engine
This is Rietveld 408576698