1 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 if CONFIG['OS_ARCH'] == 'WINNT':
8 security_sandbox_lcppsrcs = [
9 'chromium/base/at_exit.cc',
10 'chromium/base/base_switches.cc',
11 'chromium/base/callback_internal.cc',
12 'chromium/base/cpu.cc',
13 'chromium/base/debug/alias.cc',
14 'chromium/base/debug/profiler.cc',
15 'chromium/base/lazy_instance.cc',
16 'chromium/base/location.cc',
17 'chromium/base/memory/ref_counted.cc',
18 'chromium/base/memory/singleton.cc',
19 'chromium/base/shim/base/logging.cpp',
20 'chromium/base/strings/nullable_string16.cc',
21 'chromium/base/strings/string_number_conversions.cc',
22 'chromium/base/strings/string_piece.cc',
23 'chromium/base/strings/string_util_constants.cc',
24 'chromium/base/strings/string_util_stripped.cc',
25 'chromium/base/strings/stringprintf.cc',
26 'chromium/base/strings/utf_string_conversion_utils.cc',
27 'chromium/base/strings/utf_string_conversions.cc',
28 'chromium/base/synchronization/lock.cc',
29 'chromium/base/synchronization/lock_impl_win.cc',
30 'chromium/base/third_party/dmg_fp/dtoa.cc',
31 'chromium/base/third_party/dmg_fp/g_fmt.cc',
32 'chromium/base/third_party/icu/icu_utf.cc',
33 'chromium/base/threading/platform_thread_win.cc',
34 'chromium/base/threading/thread_collision_warner.cc',
35 'chromium/base/threading/thread_id_name_manager.cc',
36 'chromium/base/threading/thread_local_win.cc',
37 'chromium/base/threading/thread_restrictions.cc',
38 'chromium/base/time/time.cc',
39 'chromium/base/time/time_win.cc',
40 'chromium/base/win/event_trace_provider.cc',
41 'chromium/base/win/pe_image.cc',
42 'chromium/base/win/registry.cc',
43 'chromium/base/win/scoped_handle.cc',
44 'chromium/base/win/scoped_process_information.cc',
45 'chromium/base/win/startup_information.cc',
46 'chromium/base/win/windows_version.cc',
48 'win/src/app_container.cc',
49 'win/src/broker_services.cc',
50 'win/src/crosscall_server.cc',
51 'win/src/eat_resolver.cc',
52 'win/src/filesystem_dispatcher.cc',
53 'win/src/filesystem_interception.cc',
54 'win/src/filesystem_policy.cc',
55 'win/src/handle_closer.cc',
56 'win/src/handle_closer_agent.cc',
57 'win/src/handle_dispatcher.cc',
58 'win/src/handle_interception.cc',
59 'win/src/handle_policy.cc',
60 'win/src/handle_table.cc',
61 'win/src/interception.cc',
62 'win/src/interception_agent.cc',
64 'win/src/named_pipe_dispatcher.cc',
65 'win/src/named_pipe_interception.cc',
66 'win/src/named_pipe_policy.cc',
67 'win/src/policy_broker.cc',
68 'win/src/policy_engine_opcodes.cc',
69 'win/src/policy_engine_processor.cc',
70 'win/src/policy_low_level.cc',
71 'win/src/policy_target.cc',
72 'win/src/process_mitigations.cc',
73 'win/src/process_thread_dispatcher.cc',
74 'win/src/process_thread_interception.cc',
75 'win/src/process_thread_policy.cc',
76 'win/src/registry_dispatcher.cc',
77 'win/src/registry_interception.cc',
78 'win/src/registry_policy.cc',
79 'win/src/resolver.cc',
80 'win/src/restricted_token.cc',
81 'win/src/restricted_token_utils.cc',
83 'win/src/sandbox_nt_util.cc',
84 'win/src/sandbox_policy_base.cc',
85 'win/src/sandbox_utils.cc',
86 'win/src/service_resolver.cc',
87 'win/src/shared_handles.cc',
88 'win/src/sharedmem_ipc_client.cc',
89 'win/src/sharedmem_ipc_server.cc',
91 'win/src/sync_dispatcher.cc',
92 'win/src/sync_interception.cc',
93 'win/src/sync_policy.cc',
94 'win/src/target_interceptions.cc',
95 'win/src/target_process.cc',
96 'win/src/target_services.cc',
97 'win/src/win2k_threadpool.cc',
98 'win/src/win_utils.cc',
102 if CONFIG['CPU_ARCH'] == 'x86_64':
103 security_sandbox_lcppsrcs += [
104 'win/src/interceptors_64.cc',
105 'win/src/resolver_64.cc',
106 'win/src/service_resolver_64.cc',
107 'win/src/Wow64_64.cc',
110 security_sandbox_lcppsrcs += [
111 'win/src/resolver_32.cc',
112 'win/src/service_resolver_32.cc',
113 'win/src/sidestep/ia32_modrm_map.cpp',
114 'win/src/sidestep/ia32_opcode_map.cpp',
115 'win/src/sidestep/mini_disassembler.cpp',
116 'win/src/sidestep/preamble_patcher_with_stub.cpp',
117 'win/src/sidestep_resolver.cc',
121 security_sandbox_cppsrcs = [
122 '%s/security/sandbox/%s' % (TOPSRCDIR, s)
123 for s in sorted(security_sandbox_lcppsrcs)