diff options
author | jln@chromium.org <jln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-07 09:22:04 +0000 |
---|---|---|
committer | jln@chromium.org <jln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-07 09:22:04 +0000 |
commit | e03a8f124f59c27870f10d99da7d1a79fbe8de58 (patch) | |
tree | ac43abd47f372d2a066f9a6e752f608008a6be42 /sandbox/sandbox.gyp | |
parent | 9d1a731a6c7e200e0ee01378b1e8d71fd6268640 (diff) | |
download | chromium_src-e03a8f124f59c27870f10d99da7d1a79fbe8de58.zip chromium_src-e03a8f124f59c27870f10d99da7d1a79fbe8de58.tar.gz chromium_src-e03a8f124f59c27870f10d99da7d1a79fbe8de58.tar.bz2 |
Compile the new sandbox-bpf API code, don't use it yet.
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com/10537048
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140985 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sandbox/sandbox.gyp')
-rw-r--r-- | sandbox/sandbox.gyp | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/sandbox/sandbox.gyp b/sandbox/sandbox.gyp index cd564a8..9c801c5 100644 --- a/sandbox/sandbox.gyp +++ b/sandbox/sandbox.gyp @@ -144,13 +144,28 @@ 'target_name': 'sandbox', 'type': 'none', 'conditions': [ - # Only compile in the seccomp code for the flag combination + # Only compile in the seccomp mode 1 code for the flag combination # where we support it. [ 'OS=="linux" and target_arch!="arm" and toolkit_views==0 and selinux==0', { 'dependencies': [ '../seccompsandbox/seccomp.gyp:seccomp_sandbox', ], }], + # This does not include Android. + [ 'OS=="linux" and (target_arch=="ia32" or target_arch=="x64")', { + 'type': 'static_library', + # Compile seccomp mode 2 code on Linux + 'sources': [ + 'linux/seccomp-bpf/sandbox_bpf.cc', + 'linux/seccomp-bpf/sandbox_bpf.h', + ], + 'dependencies': [ + '../base/base.gyp:base', + ], + 'include_dirs': [ + '..', + ], + }], ], }, ], |