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

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: Set cflags locally rather than globally 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..d76450782b4270e59a1b0ef464f7823c51b8fed7 100644
--- a/components/nacl/BUILD.gn
+++ b/components/nacl/BUILD.gn
@@ -234,11 +234,82 @@ if (enable_nacl) {
}
}
}
+
+ if (is_nacl) {
brettw 2015/10/25 08:45:33 Do we want these for all nacl variants? It seems l
Petr Hosek 2015/10/25 22:50:48 Done.
+ 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",
+ ]
+ 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") {
brettw 2015/10/25 08:45:33 The way this is set up is a bit confused. There ar
Petr Hosek 2015/10/25 22:50:48 Done; I went with the option #2.
+ deps = [
+ ":nacl_helper_nonsfi_copy(//build/toolchain/nacl:newlib_pnacl_nonsfi)",
+ ]
+ }
+ }
} else {
group("nacl") {
brettw 2015/10/25 08:58:08 Also, in either case I mentioned above, you can de
Petr Hosek 2015/10/25 22:50:48 Done.
}
group("nacl_helper") {
}
+ group("nacl_helper_nonsfi") {
+ }
}
source_set("nacl_switches") {
« build/toolchain/nacl/BUILD.gn ('K') | « chrome/test/BUILD.gn ('k') | content/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698