1 # Copyright 2013 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.
10 'nacl/nacl_defines.gypi',
16 'target_conditions': [
17 # This part is shared between the targets defined below. Only files and
18 # settings relevant for building the Win64 target should be added here.
21 '<(INTERMEDIATE_DIR)',
27 # .cc, .h, and .mm files under nacl that are used on all
28 # platforms, including both 32-bit and 64-bit Windows.
29 # Test files are also not included.
30 'nacl/loader/nacl_ipc_adapter.cc',
31 'nacl/loader/nacl_ipc_adapter.h',
32 'nacl/loader/nacl_main.cc',
33 'nacl/loader/nacl_main_platform_delegate.h',
34 'nacl/loader/nacl_main_platform_delegate_linux.cc',
35 'nacl/loader/nacl_main_platform_delegate_mac.mm',
36 'nacl/loader/nacl_main_platform_delegate_win.cc',
37 'nacl/loader/nacl_listener.cc',
38 'nacl/loader/nacl_listener.h',
39 'nacl/loader/nacl_validation_db.h',
40 'nacl/loader/nacl_validation_query.cc',
41 'nacl/loader/nacl_validation_query.h',
43 # TODO(gregoryd): consider switching NaCl to use Chrome OS defines
47 '__STDC_LIMIT_MACROS=1',
50 '<(DEPTH)/third_party/wtl/include',
55 '__STDC_LIMIT_MACROS=1',
58 '../components/nacl/common/nacl_paths.cc',
59 '../components/nacl/common/nacl_paths.h',
60 '../components/nacl/zygote/nacl_fork_delegate_linux.cc',
61 '../components/nacl/zygote/nacl_fork_delegate_linux.h',
72 'target_name': 'nacl',
73 'type': 'static_library',
78 '../base/base.gyp:base',
80 '../ppapi/native_client/src/trusted/plugin/plugin.gyp:ppGoogleNaClPluginChrome',
81 '../ppapi/ppapi_internal.gyp:ppapi_shared',
82 '../ppapi/ppapi_internal.gyp:ppapi_ipc',
83 '../native_client/src/trusted/service_runtime/service_runtime.gyp:sel_main_chrome',
86 ['disable_nacl_untrusted==0', {
88 '../ppapi/native_client/native_client.gyp:nacl_irt',
89 '../ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_irt_shim.gyp:pnacl_irt_shim',
90 '../ppapi/native_client/src/untrusted/pnacl_support_extension/pnacl_support_extension.gyp:pnacl_support_extension',
94 'direct_dependent_settings': {
101 'target_name': 'nacl_browser',
102 'type': 'static_library',
104 'nacl/browser/nacl_broker_host_win.cc',
105 'nacl/browser/nacl_broker_host_win.h',
106 'nacl/browser/nacl_broker_service_win.cc',
107 'nacl/browser/nacl_broker_service_win.h',
108 'nacl/browser/nacl_browser.cc',
109 'nacl/browser/nacl_browser.h',
110 'nacl/browser/nacl_file_host.cc',
111 'nacl/browser/nacl_file_host.h',
112 'nacl/browser/nacl_host_message_filter.cc',
113 'nacl/browser/nacl_host_message_filter.h',
114 'nacl/browser/nacl_process_host.cc',
115 'nacl/browser/nacl_process_host.h',
116 'nacl/browser/nacl_validation_cache.cc',
117 'nacl/browser/nacl_validation_cache.h',
118 'nacl/browser/pnacl_host.cc',
119 'nacl/browser/pnacl_host.h',
120 'nacl/browser/pnacl_translation_cache.cc',
121 'nacl/browser/pnacl_translation_cache.h',
122 'nacl/common/nacl_debug_exception_handler_win.cc',
123 'nacl/common/nacl_debug_exception_handler_win.h',
131 '../native_client/src/trusted/service_runtime/service_runtime.gyp:sel',
132 '../content/content.gyp:content_browser',
137 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
138 'msvs_disabled_warnings': [4267, ],
141 'target_name': 'nacl_renderer',
142 'type': 'static_library',
144 'nacl/renderer/pnacl_translation_resource_host.cc',
145 'nacl/renderer/pnacl_translation_resource_host.h',
146 'nacl/renderer/ppb_nacl_private_impl.cc',
147 'nacl/renderer/ppb_nacl_private_impl.h',
153 '../content/content.gyp:content_renderer',
154 '../third_party/WebKit/public/blink.gyp:blink',
155 '../webkit/common/webkit_common.gyp:webkit_common',
160 'direct_dependent_settings': {
171 'target_name': 'nacl_helper',
172 'type': 'executable',
179 '../crypto/crypto.gyp:crypto',
180 '../sandbox/sandbox.gyp:libc_urandom_override',
181 '../sandbox/sandbox.gyp:sandbox',
185 # Allow .cc files to know if they're being compiled as part
190 'nacl/loader/nacl_helper_linux.cc',
191 'nacl/loader/nacl_helper_linux.h',
192 'nacl/loader/nacl_sandbox_linux.cc',
193 'nacl/loader/nonsfi/abi_conversion.cc',
194 'nacl/loader/nonsfi/abi_conversion.h',
195 'nacl/loader/nonsfi/elf_loader.cc',
196 'nacl/loader/nonsfi/elf_loader.h',
197 'nacl/loader/nonsfi/irt_basic.cc',
198 'nacl/loader/nonsfi/irt_clock.cc',
199 'nacl/loader/nonsfi/irt_fdio.cc',
200 'nacl/loader/nonsfi/irt_futex.cc',
201 'nacl/loader/nonsfi/irt_interfaces.cc',
202 'nacl/loader/nonsfi/irt_interfaces.h',
203 'nacl/loader/nonsfi/irt_memory.cc',
204 'nacl/loader/nonsfi/irt_thread.cc',
205 'nacl/loader/nonsfi/irt_util.h',
206 'nacl/loader/nonsfi/nonsfi_main.cc',
207 'nacl/loader/nonsfi/nonsfi_main.h',
208 '../base/posix/unix_domain_socket_linux.cc',
209 '../content/common/child_process_sandbox_support_impl_shm_linux.cc',
210 '../content/common/sandbox_linux/sandbox_bpf_base_policy_linux.cc',
211 '../content/common/sandbox_linux/sandbox_init_linux.cc',
212 '../content/common/sandbox_linux/sandbox_seccomp_bpf_linux.cc',
213 '../content/public/common/content_switches.cc',
216 ['toolkit_uses_gtk == 1', {
218 '../build/linux/system.gyp:gtk',
223 '../build/linux/system.gyp:glib',
226 ['os_posix == 1 and OS != "mac"', {
228 ['linux_use_tcmalloc==1', {
230 '../base/allocator/allocator.gyp:allocator',
235 ['use_seccomp_bpf == 0', {
237 '../content/common/sandbox_linux/sandbox_bpf_base_policy_linux.cc',
238 '../content/common/sandbox_linux/sandbox_init_linux.cc',
241 'defines': ['USE_SECCOMP_BPF'],
251 ['OS=="win" and target_arch=="ia32"', {
254 'target_name': 'nacl_win64',
255 'type': 'static_library',
261 '../native_client/src/trusted/service_runtime/service_runtime.gyp:sel_main_chrome64',
262 '../ppapi/ppapi_internal.gyp:ppapi_shared_win64',
263 '../ppapi/ppapi_internal.gyp:ppapi_ipc_win64',
265 'export_dependent_settings': [
266 '../ppapi/ppapi_internal.gyp:ppapi_ipc_win64',
269 '../components/nacl/broker/nacl_broker_listener.cc',
270 '../components/nacl/broker/nacl_broker_listener.h',
271 '../components/nacl/common/nacl_debug_exception_handler_win.cc',
272 '../components/nacl/loader/nacl_helper_win_64.cc',
273 '../components/nacl/loader/nacl_helper_win_64.h',
279 '<@(nacl_win64_defines)',
280 'COMPILE_CONTENT_STATICALLY',
284 'msvs_target_platform': 'x64',
287 'direct_dependent_settings': {
294 'target_name': 'nacl_switches_win64',
295 'type': 'static_library',
297 'nacl/common/nacl_switches.cc',
298 'nacl/common/nacl_switches.h',
305 'msvs_target_platform': 'x64',
310 'target_name': 'nacl_common_win64',
311 'type': 'static_library',
313 'COMPILE_CONTENT_STATICALLY',
316 'nacl/common/nacl_cmd_line.cc',
317 'nacl/common/nacl_cmd_line.h',
318 'nacl/common/nacl_messages.cc',
319 'nacl/common/nacl_messages.h',
320 'nacl/common/nacl_types.cc',
321 'nacl/common/nacl_types.h',
328 'msvs_target_platform': 'x64',
335 }, { # else (disable_nacl==1)
338 'target_name': 'nacl',
347 'target_name': 'nacl_win64',
352 'target_name': 'nacl_switches_win64',
363 'target_name': 'nacl_switches',
364 'type': 'static_library',
366 'nacl/common/nacl_switches.cc',
367 'nacl/common/nacl_switches.h',
374 'target_name': 'nacl_common',
375 'type': 'static_library',
377 'nacl/common/nacl_cmd_line.cc',
378 'nacl/common/nacl_cmd_line.h',
379 'nacl/common/nacl_host_messages.h',
380 'nacl/common/nacl_host_messages.cc',
381 'nacl/common/nacl_messages.cc',
382 'nacl/common/nacl_messages.h',
383 'nacl/common/nacl_process_type.h',
384 'nacl/common/nacl_sandbox_type_mac.h',
385 'nacl/common/nacl_types.cc',
386 'nacl/common/nacl_types.h',
387 'nacl/common/pnacl_types.cc',
388 'nacl/common/pnacl_types.h',