| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 { | 5 { |
| 6 'targets': [ | 6 'targets': [ |
| 7 # We have two principal targets: sandbox and sandbox_linux_unittests | 7 # We have two principal targets: sandbox and sandbox_linux_unittests |
| 8 # All other targets are listed as dependencies. | 8 # All other targets are listed as dependencies. |
| 9 # FIXME(jln): for historial reasons, sandbox_linux is the setuid sandbox | 9 # FIXME(jln): for historial reasons, sandbox_linux is the setuid sandbox |
| 10 # and is its own target. | 10 # and is its own target. |
| 11 { | 11 { |
| 12 'target_name': 'sandbox', | 12 'target_name': 'sandbox', |
| 13 'type': 'none', | 13 'type': 'none', |
| 14 'dependencies': [ | 14 'dependencies': [ |
| 15 'suid_sandbox_client', | 15 'suid_sandbox_client', |
| 16 'sandbox_services', |
| 16 ], | 17 ], |
| 17 'conditions': [ | 18 'conditions': [ |
| 18 # Only compile in the seccomp mode 1 code for the flag combination | 19 # Only compile in the seccomp mode 1 code for the flag combination |
| 19 # where we support it. | 20 # where we support it. |
| 20 [ 'OS=="linux" and (target_arch=="ia32" or target_arch=="x64") ' | 21 [ 'OS=="linux" and (target_arch=="ia32" or target_arch=="x64") ' |
| 21 'and toolkit_views==0 and selinux==0', { | 22 'and toolkit_views==0 and selinux==0', { |
| 22 'dependencies': [ | 23 'dependencies': [ |
| 23 'linux/seccomp-legacy/seccomp.gyp:seccomp_sandbox', | 24 'linux/seccomp-legacy/seccomp.gyp:seccomp_sandbox', |
| 24 ], | 25 ], |
| 25 }], | 26 }], |
| (...skipping 12 matching lines...) Expand all Loading... |
| 38 'type': 'executable', | 39 'type': 'executable', |
| 39 'dependencies': [ | 40 'dependencies': [ |
| 40 'sandbox', | 41 'sandbox', |
| 41 '../testing/gtest.gyp:gtest', | 42 '../testing/gtest.gyp:gtest', |
| 42 ], | 43 ], |
| 43 'sources': [ | 44 'sources': [ |
| 44 'tests/main.cc', | 45 'tests/main.cc', |
| 45 'tests/unit_tests.cc', | 46 'tests/unit_tests.cc', |
| 46 'tests/unit_tests.h', | 47 'tests/unit_tests.h', |
| 47 'suid/client/setuid_sandbox_client_unittest.cc', | 48 'suid/client/setuid_sandbox_client_unittest.cc', |
| 49 'services/broker_process_unittest.cc', |
| 48 ], | 50 ], |
| 49 'include_dirs': [ | 51 'include_dirs': [ |
| 50 '../..', | 52 '../..', |
| 51 ], | 53 ], |
| 52 'conditions': [ | 54 'conditions': [ |
| 53 [ 'OS=="linux" and (target_arch=="ia32" or target_arch=="x64" ' | 55 [ 'OS=="linux" and (target_arch=="ia32" or target_arch=="x64" ' |
| 54 'or target_arch=="arm")', { | 56 'or target_arch=="arm")', { |
| 55 'sources': [ | 57 'sources': [ |
| 56 'seccomp-bpf/bpf_tests.h', | 58 'seccomp-bpf/bpf_tests.h', |
| 57 'seccomp-bpf/codegen_unittest.cc', | 59 'seccomp-bpf/codegen_unittest.cc', |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 'suid/sandbox.c', | 108 'suid/sandbox.c', |
| 107 ], | 109 ], |
| 108 'cflags': [ | 110 'cflags': [ |
| 109 # For ULLONG_MAX | 111 # For ULLONG_MAX |
| 110 '-std=gnu99', | 112 '-std=gnu99', |
| 111 ], | 113 ], |
| 112 'include_dirs': [ | 114 'include_dirs': [ |
| 113 '../..', | 115 '../..', |
| 114 ], | 116 ], |
| 115 }, | 117 }, |
| 118 { 'target_name': 'sandbox_services', |
| 119 'type': 'static_library', |
| 120 'sources': [ |
| 121 'services/broker_process.cc', |
| 122 'services/broker_process.h', |
| 123 ], |
| 124 'dependencies': [ |
| 125 '../base/base.gyp:base', |
| 126 ], |
| 127 'include_dirs': [ |
| 128 '..', |
| 129 ], |
| 130 }, |
| 116 { | 131 { |
| 132 # We make this its own target so that it does not interfere |
| 133 # with our tests. |
| 117 'target_name': 'libc_urandom_override', | 134 'target_name': 'libc_urandom_override', |
| 118 'type': 'static_library', | 135 'type': 'static_library', |
| 119 'sources': [ | 136 'sources': [ |
| 120 'services/libc_urandom_override.cc', | 137 'services/libc_urandom_override.cc', |
| 121 'services/libc_urandom_override.h', | 138 'services/libc_urandom_override.h', |
| 122 ], | 139 ], |
| 123 'dependencies': [ | 140 'dependencies': [ |
| 124 '../base/base.gyp:base', | 141 '../base/base.gyp:base', |
| 125 ], | 142 ], |
| 126 'include_dirs': [ | 143 'include_dirs': [ |
| (...skipping 12 matching lines...) Expand all Loading... |
| 139 'dependencies': [ | 156 'dependencies': [ |
| 140 '../base/base.gyp:base', | 157 '../base/base.gyp:base', |
| 141 ], | 158 ], |
| 142 'include_dirs': [ | 159 'include_dirs': [ |
| 143 '..', | 160 '..', |
| 144 ], | 161 ], |
| 145 }, | 162 }, |
| 146 | 163 |
| 147 ], | 164 ], |
| 148 } | 165 } |
| OLD | NEW |