OLD | NEW |
(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 'sources': [ |
| 7 'src/acl.cc', |
| 8 'src/acl.h', |
| 9 'src/broker_services.cc', |
| 10 'src/broker_services.h', |
| 11 'src/crosscall_client.h', |
| 12 'src/crosscall_params.h', |
| 13 'src/crosscall_server.cc', |
| 14 'src/crosscall_server.h', |
| 15 'src/dep.cc', |
| 16 'src/dep.h', |
| 17 'src/eat_resolver.cc', |
| 18 'src/eat_resolver.h', |
| 19 'src/filesystem_dispatcher.cc', |
| 20 'src/filesystem_dispatcher.h', |
| 21 'src/filesystem_interception.cc', |
| 22 'src/filesystem_interception.h', |
| 23 'src/filesystem_policy.cc', |
| 24 'src/filesystem_policy.h', |
| 25 'src/handle_closer.cc', |
| 26 'src/handle_closer.h', |
| 27 'src/handle_closer_agent.cc', |
| 28 'src/handle_closer_agent.h', |
| 29 'src/handle_dispatcher.cc', |
| 30 'src/handle_dispatcher.h', |
| 31 'src/handle_interception.cc', |
| 32 'src/handle_interception.h', |
| 33 'src/handle_policy.cc', |
| 34 'src/handle_policy.h', |
| 35 'src/handle_table.cc', |
| 36 'src/handle_table.h', |
| 37 'src/interception.cc', |
| 38 'src/interception.h', |
| 39 'src/interception_agent.cc', |
| 40 'src/interception_agent.h', |
| 41 'src/interception_internal.h', |
| 42 'src/interceptors.h', |
| 43 'src/internal_types.h', |
| 44 'src/ipc_tags.h', |
| 45 'src/job.cc', |
| 46 'src/job.h', |
| 47 'src/named_pipe_dispatcher.cc', |
| 48 'src/named_pipe_dispatcher.h', |
| 49 'src/named_pipe_interception.cc', |
| 50 'src/named_pipe_interception.h', |
| 51 'src/named_pipe_policy.cc', |
| 52 'src/named_pipe_policy.h', |
| 53 'src/nt_internals.h', |
| 54 'src/policy_broker.cc', |
| 55 'src/policy_broker.h', |
| 56 'src/policy_engine_opcodes.cc', |
| 57 'src/policy_engine_opcodes.h', |
| 58 'src/policy_engine_params.h', |
| 59 'src/policy_engine_processor.cc', |
| 60 'src/policy_engine_processor.h', |
| 61 'src/policy_low_level.cc', |
| 62 'src/policy_low_level.h', |
| 63 'src/policy_params.h', |
| 64 'src/policy_target.cc', |
| 65 'src/policy_target.h', |
| 66 'src/process_thread_dispatcher.cc', |
| 67 'src/process_thread_dispatcher.h', |
| 68 'src/process_thread_interception.cc', |
| 69 'src/process_thread_interception.h', |
| 70 'src/process_thread_policy.cc', |
| 71 'src/process_thread_policy.h', |
| 72 'src/registry_dispatcher.cc', |
| 73 'src/registry_dispatcher.h', |
| 74 'src/registry_interception.cc', |
| 75 'src/registry_interception.h', |
| 76 'src/registry_policy.cc', |
| 77 'src/registry_policy.h', |
| 78 'src/resolver.cc', |
| 79 'src/resolver.h', |
| 80 'src/restricted_token_utils.cc', |
| 81 'src/restricted_token_utils.h', |
| 82 'src/restricted_token.cc', |
| 83 'src/restricted_token.h', |
| 84 'src/sandbox_factory.h', |
| 85 'src/sandbox_nt_types.h', |
| 86 'src/sandbox_nt_util.cc', |
| 87 'src/sandbox_nt_util.h', |
| 88 'src/sandbox_policy_base.cc', |
| 89 'src/sandbox_policy_base.h', |
| 90 'src/sandbox_policy.h', |
| 91 'src/sandbox_types.h', |
| 92 'src/sandbox_utils.cc', |
| 93 'src/sandbox_utils.h', |
| 94 'src/sandbox.cc', |
| 95 'src/sandbox.h', |
| 96 'src/security_level.h', |
| 97 'src/service_resolver.cc', |
| 98 'src/service_resolver.h', |
| 99 'src/shared_handles.cc', |
| 100 'src/shared_handles.h', |
| 101 'src/sharedmem_ipc_client.cc', |
| 102 'src/sharedmem_ipc_client.h', |
| 103 'src/sharedmem_ipc_server.cc', |
| 104 'src/sharedmem_ipc_server.h', |
| 105 'src/sid.cc', |
| 106 'src/sid.h', |
| 107 'src/sync_dispatcher.cc', |
| 108 'src/sync_dispatcher.h', |
| 109 'src/sync_interception.cc', |
| 110 'src/sync_interception.h', |
| 111 'src/sync_policy.cc', |
| 112 'src/sync_policy.h', |
| 113 'src/target_interceptions.cc', |
| 114 'src/target_interceptions.h', |
| 115 'src/target_process.cc', |
| 116 'src/target_process.h', |
| 117 'src/target_services.cc', |
| 118 'src/target_services.h', |
| 119 'src/win_utils.cc', |
| 120 'src/win_utils.h', |
| 121 'src/win2k_threadpool.cc', |
| 122 'src/win2k_threadpool.h', |
| 123 'src/window.cc', |
| 124 'src/window.h', |
| 125 ], |
| 126 |
| 127 'targets': [ |
| 128 { |
| 129 'target_name': 'sandbox', |
| 130 'type': 'static_library', |
| 131 'dependencies': [ |
| 132 '../testing/gtest.gyp:gtest', |
| 133 '../base/base.gyp:base', |
| 134 '../base/base.gyp:base_static', |
| 135 ], |
| 136 'export_dependent_settings': [ |
| 137 '../base/base.gyp:base', |
| 138 ], |
| 139 'sources': [ |
| 140 # Files that are used by the 32-bit version of Windows sandbox only. |
| 141 'src/resolver_32.cc', |
| 142 'src/service_resolver_32.cc', |
| 143 'src/sidestep_resolver.cc', |
| 144 'src/sidestep_resolver.h', |
| 145 'src/sidestep\ia32_modrm_map.cpp', |
| 146 'src/sidestep\ia32_opcode_map.cpp', |
| 147 'src/sidestep\mini_disassembler_types.h', |
| 148 'src/sidestep\mini_disassembler.cpp', |
| 149 'src/sidestep\mini_disassembler.h', |
| 150 'src/sidestep\preamble_patcher_with_stub.cpp', |
| 151 'src/sidestep\preamble_patcher.h', |
| 152 'src/Wow64.cc', |
| 153 'src/Wow64.h', |
| 154 ], |
| 155 'include_dirs': [ |
| 156 '..', |
| 157 ], |
| 158 'copies': [ |
| 159 { |
| 160 'destination': '<(PRODUCT_DIR)', |
| 161 'files': [ |
| 162 'wow_helper/wow_helper.exe', |
| 163 'wow_helper/wow_helper.pdb', |
| 164 ], |
| 165 }, |
| 166 ], |
| 167 'direct_dependent_settings': { |
| 168 'include_dirs': [ |
| 169 'src', |
| 170 '..', |
| 171 ], |
| 172 }, |
| 173 }, |
| 174 { |
| 175 'target_name': 'sandbox_win64', |
| 176 'type': 'static_library', |
| 177 'dependencies': [ |
| 178 '../testing/gtest.gyp:gtest', |
| 179 '../base/base.gyp:base_nacl_win64', |
| 180 '../base/base.gyp:base_static_win64', |
| 181 ], |
| 182 'configurations': { |
| 183 'Common_Base': { |
| 184 'msvs_target_platform': 'x64', |
| 185 }, |
| 186 }, |
| 187 'sources': [ |
| 188 # Files that are used by the 64-bit version of Windows sandbox only. |
| 189 'src/interceptors_64.cc', |
| 190 'src/interceptors_64.h', |
| 191 'src/resolver_64.cc', |
| 192 'src/service_resolver_64.cc', |
| 193 'src/Wow64_64.cc', |
| 194 ], |
| 195 'include_dirs': [ |
| 196 '..', |
| 197 ], |
| 198 'direct_dependent_settings': { |
| 199 'include_dirs': [ |
| 200 'src', |
| 201 '..', |
| 202 ], |
| 203 }, |
| 204 'defines': [ |
| 205 '<@(nacl_win64_defines)', |
| 206 ] |
| 207 }, |
| 208 { |
| 209 'target_name': 'sbox_integration_tests', |
| 210 'type': 'executable', |
| 211 'dependencies': [ |
| 212 'sandbox', |
| 213 '../testing/gtest.gyp:gtest', |
| 214 ], |
| 215 'sources': [ |
| 216 'tests/common/controller.cc', |
| 217 'tests/common/controller.h', |
| 218 'tests/common/test_utils.cc', |
| 219 'tests/common/test_utils.h', |
| 220 'tests/integration_tests/integration_tests.cc', |
| 221 'src/dep_test.cc', |
| 222 'src/file_policy_test.cc', |
| 223 'src/handle_policy_test.cc', |
| 224 'tests/integration_tests/integration_tests_test.cc', |
| 225 'src/handle_closer_test.cc', |
| 226 'src/integrity_level_test.cc', |
| 227 'src/ipc_ping_test.cc', |
| 228 'src/named_pipe_policy_test.cc', |
| 229 'src/policy_target_test.cc', |
| 230 'src/process_policy_test.cc', |
| 231 'src/registry_policy_test.cc', |
| 232 'src/sync_policy_test.cc', |
| 233 'src/unload_dll_test.cc', |
| 234 ], |
| 235 }, |
| 236 { |
| 237 'target_name': 'sbox_validation_tests', |
| 238 'type': 'executable', |
| 239 'dependencies': [ |
| 240 'sandbox', |
| 241 '../testing/gtest.gyp:gtest', |
| 242 ], |
| 243 'sources': [ |
| 244 'tests/common/controller.cc', |
| 245 'tests/common/controller.h', |
| 246 'tests/validation_tests/unit_tests.cc', |
| 247 'tests/validation_tests/commands.cc', |
| 248 'tests/validation_tests/commands.h', |
| 249 'tests/validation_tests/suite.cc', |
| 250 ], |
| 251 }, |
| 252 { |
| 253 'target_name': 'sbox_unittests', |
| 254 'type': 'executable', |
| 255 'dependencies': [ |
| 256 'sandbox', |
| 257 '../testing/gtest.gyp:gtest', |
| 258 ], |
| 259 'sources': [ |
| 260 'tests/common/test_utils.cc', |
| 261 'tests/common/test_utils.h', |
| 262 'tests/unit_tests/unit_tests.cc', |
| 263 'src/interception_unittest.cc', |
| 264 'src/service_resolver_unittest.cc', |
| 265 'src/restricted_token_unittest.cc', |
| 266 'src/job_unittest.cc', |
| 267 'src/sid_unittest.cc', |
| 268 'src/policy_engine_unittest.cc', |
| 269 'src/policy_low_level_unittest.cc', |
| 270 'src/policy_opcodes_unittest.cc', |
| 271 'src/ipc_unittest.cc', |
| 272 'src/threadpool_unittest.cc', |
| 273 'src/win_utils_unittest.cc', |
| 274 ], |
| 275 }, |
| 276 { |
| 277 'target_name': 'sandbox_poc', |
| 278 'type': 'executable', |
| 279 'dependencies': [ |
| 280 'sandbox', |
| 281 'pocdll', |
| 282 ], |
| 283 'sources': [ |
| 284 'sandbox_poc/main_ui_window.cc', |
| 285 'sandbox_poc/main_ui_window.h', |
| 286 'sandbox_poc/resource.h', |
| 287 'sandbox_poc/sandbox.cc', |
| 288 'sandbox_poc/sandbox.h', |
| 289 'sandbox_poc/sandbox.ico', |
| 290 'sandbox_poc/sandbox.rc', |
| 291 ], |
| 292 'link_settings': { |
| 293 'libraries': [ |
| 294 '-lcomctl32.lib', |
| 295 ], |
| 296 }, |
| 297 'msvs_settings': { |
| 298 'VCLinkerTool': { |
| 299 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS |
| 300 }, |
| 301 }, |
| 302 }, |
| 303 { |
| 304 'target_name': 'pocdll', |
| 305 'type': 'shared_library', |
| 306 'sources': [ |
| 307 'sandbox_poc/pocdll/exports.h', |
| 308 'sandbox_poc/pocdll/fs.cc', |
| 309 'sandbox_poc/pocdll/handles.cc', |
| 310 'sandbox_poc/pocdll/invasive.cc', |
| 311 'sandbox_poc/pocdll/network.cc', |
| 312 'sandbox_poc/pocdll/pocdll.cc', |
| 313 'sandbox_poc/pocdll/processes_and_threads.cc', |
| 314 'sandbox_poc/pocdll/registry.cc', |
| 315 'sandbox_poc/pocdll/spyware.cc', |
| 316 'sandbox_poc/pocdll/utils.h', |
| 317 ], |
| 318 'defines': [ |
| 319 'POCDLL_EXPORTS', |
| 320 ], |
| 321 'include_dirs': [ |
| 322 '..', |
| 323 ], |
| 324 }, |
| 325 ], |
| 326 } |
OLD | NEW |