summaryrefslogtreecommitdiffstats
path: root/sandbox/linux/seccomp/seccomp.gyp
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/linux/seccomp/seccomp.gyp')
-rw-r--r--sandbox/linux/seccomp/seccomp.gyp93
1 files changed, 93 insertions, 0 deletions
diff --git a/sandbox/linux/seccomp/seccomp.gyp b/sandbox/linux/seccomp/seccomp.gyp
new file mode 100644
index 0000000..596be21
--- /dev/null
+++ b/sandbox/linux/seccomp/seccomp.gyp
@@ -0,0 +1,93 @@
+# Copyright (c) 2010 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+{
+ 'variables': {
+ 'chromium_code': 1,
+ 'seccomp_intermediate_dir': '<(INTERMEDIATE_DIR)/seccomp-sandbox',
+ },
+ 'targets': [
+ {
+ 'target_name': 'seccomp_sandbox',
+ 'type': 'static_library',
+ 'sources': [
+ 'access.cc',
+ 'allocator.cc',
+ 'allocator.h',
+ 'clone.cc',
+ 'exit.cc',
+ 'debug.cc',
+ 'getpid.cc',
+ 'gettid.cc',
+ 'ioctl.cc',
+ 'ipc.cc',
+ 'library.cc',
+ 'library.h',
+ 'linux_syscall_support.h',
+ 'madvise.cc',
+ 'maps.cc',
+ 'maps.h',
+ 'mmap.cc',
+ 'mprotect.cc',
+ 'munmap.cc',
+ 'mutex.h',
+ 'open.cc',
+ 'sandbox.cc',
+ 'sandbox.h',
+ 'sandbox_impl.h',
+ 'securemem.cc',
+ 'securemem.h',
+ 'sigaction.cc',
+ 'sigprocmask.cc',
+ 'socketcall.cc',
+ 'stat.cc',
+ 'syscall.cc',
+ 'syscall.h',
+ 'syscall_table.c',
+ 'syscall_table.h',
+ 'tls.h',
+ 'trusted_process.cc',
+ 'trusted_thread.cc',
+ 'x86_decode.cc',
+ 'x86_decode.h',
+ ],
+ },
+ {
+ 'target_name': 'seccomp_tests',
+ 'type': 'executable',
+ 'sources': [
+ 'tests/test_syscalls.cc',
+ ],
+ 'include_dirs': [
+ '.',
+ '<(seccomp_intermediate_dir)',
+ ],
+ 'dependencies': [
+ 'seccomp_sandbox',
+ ],
+ 'libraries': [
+ '-lpthread',
+ '-lutil', # For openpty()
+ ],
+ 'actions': [
+ {
+ 'action_name': 'make_test_list',
+ 'inputs': [
+ 'tests/list_tests.py',
+ 'tests/test_syscalls.cc',
+ ],
+ 'outputs': ['<(seccomp_intermediate_dir)/test-list.h'],
+ 'action': ['sh', '-c', 'python <(_inputs) > <(_outputs)'],
+ },
+ ],
+ },
+ {
+ 'target_name': 'timestats',
+ 'type': 'executable',
+ 'sources': [
+ 'timestats.cc',
+ ],
+ },
+ ],
+}