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

Unified Diff: content/BUILD.gn

Issue 1395573003: Build nacl_helper_nonsfi with GN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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
« no previous file with comments | « components/nacl/BUILD.gn ('k') | ipc/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/BUILD.gn
diff --git a/content/BUILD.gn b/content/BUILD.gn
index bf859909319c9798bf2e2a2ddf097c7d0e0daa6d..7ffa31cdba597be9c9288336c04cfa5dc8350727 100644
--- a/content/BUILD.gn
+++ b/content/BUILD.gn
@@ -3,6 +3,7 @@
# found in the LICENSE file.
import("//tools/grit/grit_rule.gni")
+import("//build/config/nacl/config.gni")
# Applied by targets internal to content.
config("content_implementation") {
@@ -37,18 +38,21 @@ config("content_implementation") {
# targets make sure the dependency goes through the content shared library
# when doing a component build).
-content_shared_components = [
- "//content/gpu:gpu_sources",
- "//content/public/browser:browser_sources",
- "//content/public/child:child_sources",
- "//content/public/common:common_sources",
- "//content/public/plugin:plugin_sources",
- "//content/public/renderer:renderer_sources",
- "//content/public/utility:utility_sources",
-]
+if (!is_nacl_nonsfi) {
+ content_shared_components = [
+ "//content/gpu:gpu_sources",
+ "//content/public/browser:browser_sources",
+ "//content/public/child:child_sources",
+ "//content/public/common:common_sources",
+ "//content/public/plugin:plugin_sources",
+ "//content/public/renderer:renderer_sources",
+ "//content/public/utility:utility_sources",
+ ]
-if (enable_plugins) {
- content_shared_components += [ "//content/ppapi_plugin:ppapi_plugin_sources" ]
+ if (enable_plugins) {
+ content_shared_components +=
+ [ "//content/ppapi_plugin:ppapi_plugin_sources" ]
+ }
}
if (is_component_build) {
@@ -59,6 +63,23 @@ if (is_component_build) {
"//build/config/sanitizers:deps",
]
}
+} else if (is_nacl_nonsfi) {
+ source_set("content") {
+ set_sources_assignment_filter([])
+ sources = [
+ "common/sandbox_linux/sandbox_init_linux.cc",
+ "common/sandbox_linux/sandbox_seccomp_bpf_linux.cc",
+ "common/send_zygote_child_ping_linux.cc",
+ "public/common/content_switches.cc",
+ ]
+ set_sources_assignment_filter(sources_assignment_filter)
+
+ defines = [ "USE_SECCOMP_BPF=1" ]
+
+ deps = [
+ "//base",
+ ]
+ }
} else {
group("content") {
deps = content_shared_components
« no previous file with comments | « components/nacl/BUILD.gn ('k') | ipc/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698