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.
13 'target_conditions': [
14 # This part is shared between the targets defined below. Only files and
15 # settings relevant for building the Win64 target should be added here.
18 '<(INTERMEDIATE_DIR)',
21 # .cc, .h, and .mm files under nacl that are used on all
22 # platforms, including both 32-bit and 64-bit Windows.
23 # Test files are also not included.
24 'nacl/loader/nacl_ipc_adapter.cc',
25 'nacl/loader/nacl_ipc_adapter.h',
26 'nacl/loader/nacl_main.cc',
27 'nacl/loader/nacl_main_platform_delegate.h',
28 'nacl/loader/nacl_main_platform_delegate_linux.cc',
29 'nacl/loader/nacl_main_platform_delegate_mac.mm',
30 'nacl/loader/nacl_main_platform_delegate_win.cc',
31 'nacl/loader/nacl_listener.cc',
32 'nacl/loader/nacl_listener.h',
33 'nacl/loader/nacl_trusted_listener.cc',
34 'nacl/loader/nacl_trusted_listener.h',
35 'nacl/loader/nacl_validation_db.h',
36 'nacl/loader/nacl_validation_query.cc',
37 'nacl/loader/nacl_validation_query.h',
39 # TODO(gregoryd): consider switching NaCl to use Chrome OS defines
43 '__STDC_LIMIT_MACROS=1',
46 '<(DEPTH)/third_party/wtl/include',
51 '__STDC_LIMIT_MACROS=1',
54 '../components/nacl/common/nacl_paths.cc',
55 '../components/nacl/common/nacl_paths.h',
66 'target_name': 'nacl',
67 'type': 'static_library',
72 '../base/base.gyp:base',
73 '../base/base.gyp:base_static',
74 '../crypto/crypto.gyp:crypto',
76 '../mojo/mojo_nacl.gyp:monacl_syscall',
77 '../native_client/src/trusted/service_runtime/service_runtime.gyp:sel_main_chrome',
78 '../ppapi/ppapi_internal.gyp:ppapi_ipc',
79 '../ppapi/ppapi_internal.gyp:ppapi_shared',
80 '../third_party/mojo/mojo_edk.gyp:mojo_system_impl',
83 ['disable_nacl_untrusted==0', {
85 '../ppapi/native_client/native_client.gyp:nacl_irt',
86 '../ppapi/native_client/src/untrusted/pnacl_support_extension/pnacl_support_extension.gyp:pnacl_support_extension',
92 'target_name': 'nacl_browser',
93 'type': 'static_library',
95 'nacl/browser/nacl_broker_host_win.cc',
96 'nacl/browser/nacl_broker_host_win.h',
97 'nacl/browser/nacl_broker_service_win.cc',
98 'nacl/browser/nacl_broker_service_win.h',
99 'nacl/browser/nacl_browser.cc',
100 'nacl/browser/nacl_browser.h',
101 'nacl/browser/nacl_file_host.cc',
102 'nacl/browser/nacl_file_host.h',
103 'nacl/browser/nacl_host_message_filter.cc',
104 'nacl/browser/nacl_host_message_filter.h',
105 'nacl/browser/nacl_process_host.cc',
106 'nacl/browser/nacl_process_host.h',
107 'nacl/browser/nacl_validation_cache.cc',
108 'nacl/browser/nacl_validation_cache.h',
109 'nacl/browser/pnacl_host.cc',
110 'nacl/browser/pnacl_host.h',
111 'nacl/browser/pnacl_translation_cache.cc',
112 'nacl/browser/pnacl_translation_cache.h',
113 'nacl/common/nacl_debug_exception_handler_win.cc',
114 'nacl/common/nacl_debug_exception_handler_win.h',
122 '../native_client/src/trusted/service_runtime/service_runtime.gyp:sel',
123 '../content/content.gyp:content_browser',
125 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
126 'msvs_disabled_warnings': [4267, ],
130 '../components/nacl/zygote/nacl_fork_delegate_linux.cc',
131 '../components/nacl/zygote/nacl_fork_delegate_linux.h',
134 # Required by nacl_fork_delegate_linux.cc.
135 '../sandbox/sandbox.gyp:suid_sandbox_client',
136 '../sandbox/sandbox.gyp:sandbox_services',
142 'target_name': 'nacl_renderer',
143 'type': 'static_library',
145 'nacl/renderer/file_downloader.cc',
146 'nacl/renderer/file_downloader.h',
147 'nacl/renderer/histogram.cc',
148 'nacl/renderer/histogram.h',
149 'nacl/renderer/manifest_downloader.cc',
150 'nacl/renderer/manifest_downloader.h',
151 'nacl/renderer/manifest_service_channel.cc',
152 'nacl/renderer/manifest_service_channel.h',
153 'nacl/renderer/nacl_helper.cc',
154 'nacl/renderer/nacl_helper.h',
155 'nacl/renderer/json_manifest.cc',
156 'nacl/renderer/json_manifest.h',
157 'nacl/renderer/nexe_load_manager.cc',
158 'nacl/renderer/nexe_load_manager.h',
159 'nacl/renderer/platform_info.cc',
160 'nacl/renderer/platform_info.h',
161 'nacl/renderer/pnacl_translation_resource_host.cc',
162 'nacl/renderer/pnacl_translation_resource_host.h',
163 'nacl/renderer/ppb_nacl_private_impl.cc',
164 'nacl/renderer/ppb_nacl_private_impl.h',
165 'nacl/renderer/progress_event.cc',
166 'nacl/renderer/progress_event.h',
167 'nacl/renderer/trusted_plugin_channel.cc',
168 'nacl/renderer/trusted_plugin_channel.h',
175 '../content/content.gyp:content_renderer',
176 '../components/nacl/renderer/plugin/plugin.gyp:nacl_trusted_plugin',
177 '../third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
178 '../third_party/WebKit/public/blink.gyp:blink',
182 'target_name': 'nacl_loader_unittests',
183 'type': '<(gtest_target_type)',
185 'nacl/loader/nacl_ipc_adapter_unittest.cc',
186 'nacl/loader/nacl_validation_query_unittest.cc',
187 'nacl/loader/run_all_unittests.cc',
191 '../base/base.gyp:test_support_base',
192 '../ipc/ipc.gyp:test_support_ipc',
193 '../testing/gtest.gyp:gtest',
198 # TODO(mazda): Move this to browser_tests once we have
199 # established a way to run browser_tests on ARM Chrome OS
200 # devices (http://crbug.com/364729).
201 'nacl/loader/nonsfi/irt_icache_unittest.cc',
202 # TODO(hamaji): Currently, we build them twice. Stop building
203 # them for components_unittests. See crbug.com/364751
204 'nacl/loader/nonsfi/nonsfi_sandbox_sigsys_unittest.cc',
205 'nacl/loader/nonsfi/nonsfi_sandbox_unittest.cc',
209 '../sandbox/sandbox.gyp:sandbox_linux_test_utils',
219 'target_name': 'nacl_helper',
220 'type': 'executable',
225 'nacl/loader/nacl_helper_linux.cc',
226 'nacl/loader/nacl_helper_linux.h',
233 # Do not pick the default ASan options from
234 # build/sanitizers/sanitizer_options.cc to avoid a conflict with
235 # those in nacl/nacl_helper_linux.cc.
236 '-Wl,-u_sanitizer_options_link_helper',
242 'target_name': 'nacl_linux',
243 'type': 'static_library',
248 # Allow .cc files to know if they're being compiled as part
253 'nacl/loader/nonsfi/abi_conversion.cc',
254 'nacl/loader/nonsfi/abi_conversion.h',
255 'nacl/loader/nonsfi/elf_loader.cc',
256 'nacl/loader/nonsfi/elf_loader.h',
257 'nacl/loader/nonsfi/irt_basic.cc',
258 'nacl/loader/nonsfi/irt_clock.cc',
259 'nacl/loader/nonsfi/irt_exception_handling.cc',
260 'nacl/loader/nonsfi/irt_fdio.cc',
261 'nacl/loader/nonsfi/irt_futex.cc',
262 'nacl/loader/nonsfi/irt_icache.cc',
263 'nacl/loader/nonsfi/irt_interfaces.cc',
264 'nacl/loader/nonsfi/irt_interfaces.h',
265 'nacl/loader/nonsfi/irt_memory.cc',
266 'nacl/loader/nonsfi/irt_ppapi.cc',
267 'nacl/loader/nonsfi/irt_random.cc',
268 'nacl/loader/nonsfi/irt_resource_open.cc',
269 'nacl/loader/nonsfi/irt_thread.cc',
270 'nacl/loader/nonsfi/irt_util.h',
271 'nacl/loader/nonsfi/nonsfi_listener.cc',
272 'nacl/loader/nonsfi/nonsfi_listener.h',
273 'nacl/loader/nonsfi/nonsfi_main.cc',
274 'nacl/loader/nonsfi/nonsfi_main.h',
275 'nacl/loader/nonsfi/nonsfi_sandbox.cc',
276 'nacl/loader/nonsfi/nonsfi_sandbox.h',
277 'nacl/loader/sandbox_linux/nacl_bpf_sandbox_linux.cc',
278 'nacl/loader/sandbox_linux/nacl_sandbox_linux.cc',
279 '../ppapi/nacl_irt/irt_manifest.h',
280 '../ppapi/nacl_irt/manifest_service.cc',
281 '../ppapi/nacl_irt/manifest_service.h',
282 '../ppapi/nacl_irt/plugin_main.cc',
283 '../ppapi/nacl_irt/plugin_main.h',
284 '../ppapi/nacl_irt/plugin_startup.cc',
285 '../ppapi/nacl_irt/plugin_startup.h',
286 '../ppapi/nacl_irt/ppapi_dispatcher.cc',
287 '../ppapi/nacl_irt/ppapi_dispatcher.h',
293 '../components/tracing.gyp:tracing',
294 '../crypto/crypto.gyp:crypto',
295 '../sandbox/sandbox.gyp:libc_urandom_override',
296 '../sandbox/sandbox.gyp:sandbox',
297 '../ppapi/ppapi_internal.gyp:ppapi_proxy',
302 '../build/linux/system.gyp:glib',
305 ['os_posix == 1 and OS != "mac"', {
307 ['use_allocator!="none"', {
309 '../base/allocator/allocator.gyp:allocator',
314 ['use_seccomp_bpf == 0', {
316 '../content/common/sandbox_linux/sandbox_bpf_base_policy_linux.cc',
317 '../content/common/sandbox_linux/sandbox_init_linux.cc',
320 'defines': ['USE_SECCOMP_BPF'],
327 ['OS=="win" and target_arch=="ia32"', {
330 'target_name': 'nacl_win64',
331 'type': 'static_library',
337 '../mojo/mojo_nacl.gyp:monacl_syscall_win64',
338 '../native_client/src/trusted/service_runtime/service_runtime.gyp:sel_main_chrome64',
339 '../ppapi/ppapi_internal.gyp:ppapi_shared_win64',
340 '../ppapi/ppapi_internal.gyp:ppapi_ipc_win64',
341 '../third_party/mojo/mojo_edk.gyp:mojo_system_impl_win64',
343 'export_dependent_settings': [
344 '../ppapi/ppapi_internal.gyp:ppapi_ipc_win64',
347 '../components/nacl/broker/nacl_broker_listener.cc',
348 '../components/nacl/broker/nacl_broker_listener.h',
349 '../components/nacl/common/nacl_debug_exception_handler_win.cc',
350 '../components/nacl/loader/nacl_helper_win_64.cc',
351 '../components/nacl/loader/nacl_helper_win_64.h',
357 '<@(nacl_win64_defines)',
358 'COMPILE_CONTENT_STATICALLY',
362 'msvs_target_platform': 'x64',
367 'target_name': 'nacl_switches_win64',
368 'type': 'static_library',
370 'nacl/common/nacl_switches.cc',
371 'nacl/common/nacl_switches.h',
378 'msvs_target_platform': 'x64',
383 'target_name': 'nacl_common_win64',
384 'type': 'static_library',
386 'COMPILE_CONTENT_STATICALLY',
389 'nacl/common/nacl_cmd_line.cc',
390 'nacl/common/nacl_cmd_line.h',
391 'nacl/common/nacl_constants.cc',
392 'nacl/common/nacl_constants.h',
393 'nacl/common/nacl_messages.cc',
394 'nacl/common/nacl_messages.h',
395 'nacl/common/nacl_renderer_messages.h',
396 'nacl/common/nacl_renderer_messages.cc',
397 'nacl/common/nacl_types.cc',
398 'nacl/common/nacl_types.h',
399 'nacl/common/nacl_types_param_traits.cc',
400 'nacl/common/nacl_types_param_traits.h',
407 'msvs_target_platform': 'x64',
414 }, { # else (disable_nacl==1)
417 'target_name': 'nacl',
426 'target_name': 'nacl_win64',
431 'target_name': 'nacl_switches_win64',
439 ['disable_nacl!=1 and test_isolation_mode!="noop"', {
442 'target_name': 'nacl_loader_unittests_run',
445 'nacl_loader_unittests',
448 '../build/isolate.gypi',
451 'nacl_loader_unittests.isolate',
459 'target_name': 'nacl_switches',
460 'type': 'static_library',
462 'nacl/common/nacl_switches.cc',
463 'nacl/common/nacl_switches.h',
470 'target_name': 'nacl_common',
471 'type': 'static_library',
473 'nacl/common/nacl_cmd_line.cc',
474 'nacl/common/nacl_cmd_line.h',
475 'nacl/common/nacl_constants.cc',
476 'nacl/common/nacl_constants.h',
477 'nacl/common/nacl_host_messages.h',
478 'nacl/common/nacl_host_messages.cc',
479 'nacl/common/nacl_messages.cc',
480 'nacl/common/nacl_messages.h',
481 'nacl/common/nacl_nonsfi_util.cc',
482 'nacl/common/nacl_nonsfi_util.h',
483 'nacl/common/nacl_process_type.h',
484 'nacl/common/nacl_renderer_messages.h',
485 'nacl/common/nacl_renderer_messages.cc',
486 'nacl/common/nacl_sandbox_type_mac.h',
487 'nacl/common/nacl_types.cc',
488 'nacl/common/nacl_types.h',
489 'nacl/common/nacl_types_param_traits.cc',
490 'nacl/common/nacl_types_param_traits.h',
491 'nacl/common/pnacl_types.cc',
492 'nacl/common/pnacl_types.h',
498 '../content/content.gyp:content_common',