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