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 '../webkit/common/webkit_common.gyp:webkit_common',
159 'direct_dependent_settings': {
170 'target_name': 'nacl_helper',
171 'type': 'executable',
178 '../crypto/crypto.gyp:crypto',
179 '../sandbox/sandbox.gyp:libc_urandom_override',
180 '../sandbox/sandbox.gyp:sandbox',
184 # Allow .cc files to know if they're being compiled as part
189 'nacl/loader/nacl_sandbox_linux.cc',
190 'nacl/loader/nacl_helper_linux.cc',
191 'nacl/loader/nacl_helper_linux.h',
192 '../base/posix/unix_domain_socket_linux.cc',
193 '../content/common/child_process_sandbox_support_impl_shm_linux.cc',
194 '../content/common/sandbox_linux/sandbox_bpf_base_policy_linux.cc',
195 '../content/common/sandbox_linux/sandbox_init_linux.cc',
196 '../content/common/sandbox_linux/sandbox_seccomp_bpf_linux.cc',
197 '../content/public/common/content_switches.cc',
200 ['toolkit_uses_gtk == 1', {
202 '../build/linux/system.gyp:gtk',
207 '../build/linux/system.gyp:glib',
210 ['os_posix == 1 and OS != "mac"', {
212 ['linux_use_tcmalloc==1', {
214 '../base/allocator/allocator.gyp:allocator',
227 ['OS=="win" and target_arch=="ia32"', {
230 'target_name': 'nacl_win64',
231 'type': 'static_library',
237 '../native_client/src/trusted/service_runtime/service_runtime.gyp:sel_main_chrome64',
238 '../ppapi/ppapi_internal.gyp:ppapi_shared_win64',
239 '../ppapi/ppapi_internal.gyp:ppapi_ipc_win64',
241 'export_dependent_settings': [
242 '../ppapi/ppapi_internal.gyp:ppapi_ipc_win64',
245 '../components/nacl/broker/nacl_broker_listener.cc',
246 '../components/nacl/broker/nacl_broker_listener.h',
247 '../components/nacl/common/nacl_debug_exception_handler_win.cc',
248 '../components/nacl/loader/nacl_helper_win_64.cc',
249 '../components/nacl/loader/nacl_helper_win_64.h',
255 '<@(nacl_win64_defines)',
256 'COMPILE_CONTENT_STATICALLY',
260 'msvs_target_platform': 'x64',
263 'direct_dependent_settings': {
270 'target_name': 'nacl_switches_win64',
271 'type': 'static_library',
273 'nacl/common/nacl_switches.cc',
274 'nacl/common/nacl_switches.h',
281 'msvs_target_platform': 'x64',
286 'target_name': 'nacl_common_win64',
287 'type': 'static_library',
289 'COMPILE_CONTENT_STATICALLY',
292 'nacl/common/nacl_cmd_line.cc',
293 'nacl/common/nacl_cmd_line.h',
294 'nacl/common/nacl_messages.cc',
295 'nacl/common/nacl_messages.h',
296 'nacl/common/nacl_types.cc',
297 'nacl/common/nacl_types.h',
304 'msvs_target_platform': 'x64',
311 }, { # else (disable_nacl==1)
314 'target_name': 'nacl',
323 'target_name': 'nacl_win64',
328 'target_name': 'nacl_switches_win64',
339 'target_name': 'nacl_switches',
340 'type': 'static_library',
342 'nacl/common/nacl_switches.cc',
343 'nacl/common/nacl_switches.h',
350 'target_name': 'nacl_common',
351 'type': 'static_library',
353 'nacl/common/nacl_cmd_line.cc',
354 'nacl/common/nacl_cmd_line.h',
355 'nacl/common/nacl_host_messages.h',
356 'nacl/common/nacl_host_messages.cc',
357 'nacl/common/nacl_messages.cc',
358 'nacl/common/nacl_messages.h',
359 'nacl/common/nacl_process_type.h',
360 'nacl/common/nacl_sandbox_type_mac.h',
361 'nacl/common/nacl_types.cc',
362 'nacl/common/nacl_types.h',
363 'nacl/common/pnacl_types.cc',
364 'nacl/common/pnacl_types.h',