1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/sandbox/moz.build Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,143 @@ 1.4 +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- 1.5 +# vim: set filetype=python: 1.6 +# This Source Code Form is subject to the terms of the Mozilla Public 1.7 +# License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.9 + 1.10 +if CONFIG['OS_ARCH'] == 'Linux': 1.11 + 1.12 + DIRS += ['linux'] 1.13 + 1.14 +elif CONFIG['OS_ARCH'] == 'WINNT': 1.15 + LIBRARY_NAME = 'sandbox_s' 1.16 + EXPORT_LIBRARY = True 1.17 + FORCE_STATIC_LIB = True 1.18 + 1.19 + DIRS += [ 1.20 + 'win/src/sandboxbroker', 1.21 + 'win/src/sandboxtarget', 1.22 + ] 1.23 + 1.24 + SOURCES += [ 1.25 + 'chromium/base/at_exit.cc', 1.26 + 'chromium/base/base_switches.cc', 1.27 + 'chromium/base/callback_internal.cc', 1.28 + 'chromium/base/cpu.cc', 1.29 + 'chromium/base/debug/alias.cc', 1.30 + 'chromium/base/debug/profiler.cc', 1.31 + 'chromium/base/lazy_instance.cc', 1.32 + 'chromium/base/location.cc', 1.33 + 'chromium/base/memory/ref_counted.cc', 1.34 + 'chromium/base/memory/singleton.cc', 1.35 + 'chromium/base/shim/base/logging.cpp', 1.36 + 'chromium/base/strings/nullable_string16.cc', 1.37 + 'chromium/base/strings/string_number_conversions.cc', 1.38 + 'chromium/base/strings/string_piece.cc', 1.39 + 'chromium/base/strings/string_util_constants.cc', 1.40 + 'chromium/base/strings/string_util_stripped.cc', 1.41 + 'chromium/base/strings/stringprintf.cc', 1.42 + 'chromium/base/strings/utf_string_conversion_utils.cc', 1.43 + 'chromium/base/strings/utf_string_conversions.cc', 1.44 + 'chromium/base/synchronization/lock.cc', 1.45 + 'chromium/base/synchronization/lock_impl_win.cc', 1.46 + 'chromium/base/third_party/dmg_fp/dtoa.cc', 1.47 + 'chromium/base/third_party/dmg_fp/g_fmt.cc', 1.48 + 'chromium/base/third_party/icu/icu_utf.cc', 1.49 + 'chromium/base/threading/platform_thread_win.cc', 1.50 + 'chromium/base/threading/thread_collision_warner.cc', 1.51 + 'chromium/base/threading/thread_id_name_manager.cc', 1.52 + 'chromium/base/threading/thread_local_win.cc', 1.53 + 'chromium/base/threading/thread_restrictions.cc', 1.54 + 'chromium/base/time/time.cc', 1.55 + 'chromium/base/time/time_win.cc', 1.56 + 'chromium/base/win/event_trace_provider.cc', 1.57 + 'chromium/base/win/pe_image.cc', 1.58 + 'chromium/base/win/registry.cc', 1.59 + 'chromium/base/win/scoped_handle.cc', 1.60 + 'chromium/base/win/scoped_process_information.cc', 1.61 + 'chromium/base/win/startup_information.cc', 1.62 + 'chromium/base/win/windows_version.cc', 1.63 + 'win/src/acl.cc', 1.64 + 'win/src/app_container.cc', 1.65 + 'win/src/broker_services.cc', 1.66 + 'win/src/crosscall_server.cc', 1.67 + 'win/src/eat_resolver.cc', 1.68 + 'win/src/filesystem_dispatcher.cc', 1.69 + 'win/src/filesystem_interception.cc', 1.70 + 'win/src/filesystem_policy.cc', 1.71 + 'win/src/handle_closer.cc', 1.72 + 'win/src/handle_closer_agent.cc', 1.73 + 'win/src/handle_dispatcher.cc', 1.74 + 'win/src/handle_interception.cc', 1.75 + 'win/src/handle_policy.cc', 1.76 + 'win/src/handle_table.cc', 1.77 + 'win/src/interception.cc', 1.78 + 'win/src/interception_agent.cc', 1.79 + 'win/src/job.cc', 1.80 + 'win/src/named_pipe_dispatcher.cc', 1.81 + 'win/src/named_pipe_interception.cc', 1.82 + 'win/src/named_pipe_policy.cc', 1.83 + 'win/src/policy_broker.cc', 1.84 + 'win/src/policy_engine_opcodes.cc', 1.85 + 'win/src/policy_engine_processor.cc', 1.86 + 'win/src/policy_low_level.cc', 1.87 + 'win/src/policy_target.cc', 1.88 + 'win/src/process_mitigations.cc', 1.89 + 'win/src/process_thread_dispatcher.cc', 1.90 + 'win/src/process_thread_interception.cc', 1.91 + 'win/src/process_thread_policy.cc', 1.92 + 'win/src/registry_dispatcher.cc', 1.93 + 'win/src/registry_interception.cc', 1.94 + 'win/src/registry_policy.cc', 1.95 + 'win/src/resolver.cc', 1.96 + 'win/src/restricted_token.cc', 1.97 + 'win/src/restricted_token_utils.cc', 1.98 + 'win/src/sandbox.cc', 1.99 + 'win/src/sandbox_nt_util.cc', 1.100 + 'win/src/sandbox_policy_base.cc', 1.101 + 'win/src/sandbox_utils.cc', 1.102 + 'win/src/service_resolver.cc', 1.103 + 'win/src/shared_handles.cc', 1.104 + 'win/src/sharedmem_ipc_client.cc', 1.105 + 'win/src/sharedmem_ipc_server.cc', 1.106 + 'win/src/sid.cc', 1.107 + 'win/src/sync_dispatcher.cc', 1.108 + 'win/src/sync_interception.cc', 1.109 + 'win/src/sync_policy.cc', 1.110 + 'win/src/target_interceptions.cc', 1.111 + 'win/src/target_process.cc', 1.112 + 'win/src/target_services.cc', 1.113 + 'win/src/win2k_threadpool.cc', 1.114 + 'win/src/win_utils.cc', 1.115 + 'win/src/window.cc', 1.116 + ] 1.117 + 1.118 + if CONFIG['CPU_ARCH'] == 'x86_64': 1.119 + SOURCES += [ 1.120 + 'win/src/interceptors_64.cc', 1.121 + 'win/src/resolver_64.cc', 1.122 + 'win/src/service_resolver_64.cc', 1.123 + 'win/src/Wow64_64.cc', 1.124 + ] 1.125 + else: 1.126 + SOURCES += [ 1.127 + 'win/src/resolver_32.cc', 1.128 + 'win/src/service_resolver_32.cc', 1.129 + 'win/src/sidestep/ia32_modrm_map.cpp', 1.130 + 'win/src/sidestep/ia32_opcode_map.cpp', 1.131 + 'win/src/sidestep/mini_disassembler.cpp', 1.132 + 'win/src/sidestep/preamble_patcher_with_stub.cpp', 1.133 + 'win/src/sidestep_resolver.cc', 1.134 + 'win/src/Wow64.cc', 1.135 + ] 1.136 + 1.137 + for var in ('UNICODE', '_UNICODE', 'NS_NO_XPCOM', 'SANDBOX_EXPORTS', 1.138 + 'NOMINMAX', '_CRT_RAND_S', 'CHROMIUM_SANDBOX_BUILD'): 1.139 + DEFINES[var] = True 1.140 + 1.141 + LOCAL_INCLUDES += ['/security/sandbox/chromium/base/shim'] 1.142 + LOCAL_INCLUDES += ['/security/sandbox/chromium'] 1.143 + LOCAL_INCLUDES += ['/security'] 1.144 + LOCAL_INCLUDES += ['/nsprpub'] 1.145 + 1.146 + DISABLE_STL_WRAPPING = True