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

Unified Diff: components/nacl.gyp

Issue 117803002: Make building seccomp-bpf a GYP condition (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address nits. Created 7 years 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.gyp
diff --git a/components/nacl.gyp b/components/nacl.gyp
index 3a86d2df4ddcdb730072aaaacadb68b9abe308cf..43138d73497aa9eb4f9214acb9d4a51824768fe5 100644
--- a/components/nacl.gyp
+++ b/components/nacl.gyp
@@ -191,8 +191,6 @@
'nacl/loader/nacl_helper_linux.h',
'../base/posix/unix_domain_socket_linux.cc',
'../content/common/child_process_sandbox_support_impl_shm_linux.cc',
- '../content/common/sandbox_linux/sandbox_bpf_base_policy_linux.cc',
- '../content/common/sandbox_linux/sandbox_init_linux.cc',
'../content/common/sandbox_linux/sandbox_seccomp_bpf_linux.cc',
'../content/public/common/content_switches.cc',
],
@@ -216,6 +214,13 @@
}],
],
}],
+ ['use_seccomp_bpf == 1', {
+ 'sources': [
+ '../content/common/sandbox_linux/sandbox_bpf_base_policy_linux.cc',
+ '../content/common/sandbox_linux/sandbox_init_linux.cc',
+ ],
+ 'defines': ['USE_SECCOMP_BPF'],
+ }],
],
'cflags': ['-fPIE'],
'link_settings': {

Powered by Google App Engine
This is Rietveld 408576698