Rename CoalescedPermissionMessage to PermissionMessage
[chromium-blink-merge.git] / sandbox / linux / sandbox_linux_nacl_nonsfi.gyp
blobccb2a62fb77e0cc786177d770f31e9a82e09dccc
1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
6   'variables': {
7     'chromium_code': 1,
8   },
9   'includes': [
10     '../../build/common_untrusted.gypi',
11   ],
12   'conditions': [
13     ['disable_nacl==0 and disable_nacl_untrusted==0', {
14       'targets': [
15         {
16           'target_name': 'sandbox_linux_nacl_nonsfi',
17           'type': 'none',
18           'variables': {
19             'nacl_untrusted_build': 1,
20             'nlib_target': 'libsandbox_linux_nacl_nonsfi.a',
21             'build_glibc': 0,
22             'build_newlib': 0,
23             'build_irt': 0,
24             'build_pnacl_newlib': 0,
25             'build_nonsfi_helper': 1,
27             'sources': [
28               # This is the subset of linux build target, needed for
29               # nacl_helper_nonsfi's sandbox implementation.
30               'bpf_dsl/bpf_dsl.cc',
31               'bpf_dsl/codegen.cc',
32               'bpf_dsl/dump_bpf.cc',
33               'bpf_dsl/errorcode.cc',
34               'bpf_dsl/policy.cc',
35               'bpf_dsl/policy_compiler.cc',
36               'bpf_dsl/syscall_set.cc',
37               'bpf_dsl/verifier.cc',
38               'seccomp-bpf-helpers/sigsys_handlers.cc',
39               'seccomp-bpf-helpers/syscall_parameters_restrictions.cc',
40               'seccomp-bpf/die.cc',
41               'seccomp-bpf/sandbox_bpf.cc',
42               'seccomp-bpf/syscall.cc',
43               'seccomp-bpf/trap.cc',
44               'services/credentials.cc',
45               'services/namespace_sandbox.cc',
46               'services/namespace_utils.cc',
47               'services/proc_util.cc',
48               'services/resource_limits.cc',
49               'services/syscall_wrappers.cc',
50               'services/thread_helpers.cc',
51               'suid/client/setuid_sandbox_client.cc',
52             ],
53           },
54           'dependencies': [
55             '../../base/base_nacl.gyp:base_nacl_nonsfi',
56           ],
57         },
58       ],
59     }],
61     ['disable_nacl==0 and disable_nacl_untrusted==0 and enable_nacl_nonsfi_test==1', {
62       'targets': [
63         {
64           'target_name': 'sandbox_linux_test_utils_nacl_nonsfi',
65           'type': 'none',
66           'variables': {
67             'nacl_untrusted_build': 1,
68             'nlib_target': 'libsandbox_linux_test_utils_nacl_nonsfi.a',
69             'build_glibc': 0,
70             'build_newlib': 0,
71             'build_irt': 0,
72             'build_pnacl_newlib': 0,
73             'build_nonsfi_helper': 1,
75             'sources': [
76               'seccomp-bpf/sandbox_bpf_test_runner.cc',
77               'tests/sandbox_test_runner.cc',
78               'tests/unit_tests.cc',
79             ],
80           },
81           'dependencies': [
82             '../../testing/gtest_nacl.gyp:gtest_nacl',
83           ],
84         },
85       ],
86     }],
87   ],