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

Side by Side Diff: sandbox/sandbox_linux.gypi

Issue 10808003: Move sandbox/sandbox_linux.gypi to sandbox/linux (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sandbox/sandbox.gyp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright (c) 2012 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.
4
5 {
6 'targets': [
7 # We have two principal targets: sandbox and sandbox_linux_unittests
8 # All other targets are listed as dependencies.
9 # FIXME(jln): for historial reasons, sandbox_linux is the setuid sandbox
10 # and is its own target.
11 {
12 'target_name': 'sandbox',
13 'type': 'none',
14 'conditions': [
15 # Only compile in the seccomp mode 1 code for the flag combination
16 # where we support it.
17 [ 'OS=="linux" and (target_arch=="ia32" or target_arch=="x64") '
18 'and toolkit_views==0 and selinux==0', {
19 'dependencies': [
20 'linux/seccomp-legacy/seccomp.gyp:seccomp_sandbox',
21 ],
22 }],
23 # Similarly, compile seccomp BPF when we support it
24 [ 'OS=="linux" and (target_arch=="ia32" or target_arch=="x64")', {
25 'type': 'static_library',
26 'dependencies': [
27 'seccomp_bpf',
28 ],
29 }],
30 ],
31 },
32 {
33 'target_name': 'sandbox_linux_unittests',
34 'type': 'executable',
35 'dependencies': [
36 'sandbox',
37 '../testing/gtest.gyp:gtest',
38 ],
39 'sources': [
40 'linux/tests/unit_tests.cc',
41 ],
42 'include_dirs': [
43 '..',
44 ],
45 'conditions': [
46 [ 'OS=="linux" and (target_arch=="ia32" or target_arch=="x64")', {
47 'sources': [
48 'linux/seccomp-bpf/sandbox_bpf_unittest.cc',
49 ],
50 }],
51 ],
52 },
53 {
54 'target_name': 'seccomp_bpf',
55 'type': 'static_library',
56 'sources': [
57 'linux/seccomp-bpf/sandbox_bpf.cc',
58 'linux/seccomp-bpf/sandbox_bpf.h',
59 'linux/seccomp-bpf/verifier.cc',
60 'linux/seccomp-bpf/verifier.h',
61 ],
62 'dependencies': [
63 '../base/base.gyp:base',
64 ],
65 'include_dirs': [
66 '..',
67 ],
68 },
69 {
70 # The setuid sandbox, for Linux
71 'target_name': 'chrome_sandbox',
72 'type': 'executable',
73 'sources': [
74 'linux/suid/linux_util.c',
75 'linux/suid/linux_util.h',
76 'linux/suid/process_util.h',
77 'linux/suid/process_util_linux.c',
78 'linux/suid/sandbox.h',
79 'linux/suid/sandbox.c',
80 ],
81 'cflags': [
82 # For ULLONG_MAX
83 '-std=gnu99',
84 ],
85 'include_dirs': [
86 '..',
87 ],
88 },
89 {
90 'target_name': 'libc_urandom_override',
91 'type': 'static_library',
92 'sources': [
93 'linux/services/libc_urandom_override.cc',
94 'linux/services/libc_urandom_override.h',
95 ],
96 'dependencies': [
97 '../base/base.gyp:base',
98 ],
99 'include_dirs': [
100 '..',
101 ],
102 },
103 ],
104 }
OLDNEW
« no previous file with comments | « sandbox/sandbox.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698