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_trusted_listener.cc',
40 'nacl/loader/nacl_trusted_listener.h',
41 'nacl/loader/nacl_validation_db.h',
42 'nacl/loader/nacl_validation_query.cc',
43 'nacl/loader/nacl_validation_query.h',
45 # TODO(gregoryd): consider switching NaCl to use Chrome OS defines
49 '__STDC_LIMIT_MACROS=1',
52 '<(DEPTH)/third_party/wtl/include',
57 '__STDC_LIMIT_MACROS=1',
60 '../components/nacl/common/nacl_paths.cc',
61 '../components/nacl/common/nacl_paths.h',
62 '../components/nacl/zygote/nacl_fork_delegate_linux.cc',
63 '../components/nacl/zygote/nacl_fork_delegate_linux.h',
74 'target_name': 'nacl',
75 'type': 'static_library',
80 '../base/base.gyp:base',
82 '../ppapi/native_client/src/trusted/plugin/plugin.gyp:ppGoogleNaClPluginChrome',
83 '../ppapi/ppapi_internal.gyp:ppapi_shared',
84 '../ppapi/ppapi_internal.gyp:ppapi_ipc',
85 '../native_client/src/trusted/service_runtime/service_runtime.gyp:sel_main_chrome',
88 ['disable_nacl_untrusted==0', {
90 '../ppapi/native_client/native_client.gyp:nacl_irt',
91 '../ppapi/native_client/src/untrusted/pnacl_support_extension/pnacl_support_extension.gyp:pnacl_support_extension',
95 'direct_dependent_settings': {
102 'target_name': 'nacl_browser',
103 'type': 'static_library',
105 'nacl/browser/nacl_broker_host_win.cc',
106 'nacl/browser/nacl_broker_host_win.h',
107 'nacl/browser/nacl_broker_service_win.cc',
108 'nacl/browser/nacl_broker_service_win.h',
109 'nacl/browser/nacl_browser.cc',
110 'nacl/browser/nacl_browser.h',
111 'nacl/browser/nacl_file_host.cc',
112 'nacl/browser/nacl_file_host.h',
113 'nacl/browser/nacl_host_message_filter.cc',
114 'nacl/browser/nacl_host_message_filter.h',
115 'nacl/browser/nacl_process_host.cc',
116 'nacl/browser/nacl_process_host.h',
117 'nacl/browser/nacl_validation_cache.cc',
118 'nacl/browser/nacl_validation_cache.h',
119 'nacl/browser/pnacl_host.cc',
120 'nacl/browser/pnacl_host.h',
121 'nacl/browser/pnacl_translation_cache.cc',
122 'nacl/browser/pnacl_translation_cache.h',
123 'nacl/common/nacl_debug_exception_handler_win.cc',
124 'nacl/common/nacl_debug_exception_handler_win.h',
132 '../native_client/src/trusted/service_runtime/service_runtime.gyp:sel',
133 '../content/content.gyp:content_browser',
138 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
139 'msvs_disabled_warnings': [4267, ],
142 'target_name': 'nacl_renderer',
143 'type': 'static_library',
145 'nacl/renderer/pnacl_translation_resource_host.cc',
146 'nacl/renderer/pnacl_translation_resource_host.h',
147 'nacl/renderer/ppb_nacl_private_impl.cc',
148 'nacl/renderer/ppb_nacl_private_impl.h',
149 'nacl/renderer/trusted_plugin_channel.cc',
150 'nacl/renderer/trusted_plugin_channel.h',
156 '../content/content.gyp:content_renderer',
157 '../third_party/WebKit/public/blink.gyp:blink',
158 '../webkit/common/webkit_common.gyp:webkit_common',
163 'direct_dependent_settings': {
174 'target_name': 'nacl_helper',
175 'type': 'executable',
182 '../components/tracing.gyp:tracing',
183 '../crypto/crypto.gyp:crypto',
184 '../sandbox/sandbox.gyp:libc_urandom_override',
185 '../sandbox/sandbox.gyp:sandbox',
186 '../ppapi/ppapi_internal.gyp:ppapi_proxy',
190 # Allow .cc files to know if they're being compiled as part
195 'nacl/loader/nacl_helper_linux.cc',
196 'nacl/loader/nacl_helper_linux.h',
197 'nacl/loader/nacl_sandbox_linux.cc',
198 'nacl/loader/nonsfi/abi_conversion.cc',
199 'nacl/loader/nonsfi/abi_conversion.h',
200 'nacl/loader/nonsfi/elf_loader.cc',
201 'nacl/loader/nonsfi/elf_loader.h',
202 'nacl/loader/nonsfi/irt_basic.cc',
203 'nacl/loader/nonsfi/irt_clock.cc',
204 'nacl/loader/nonsfi/irt_fdio.cc',
205 'nacl/loader/nonsfi/irt_futex.cc',
206 'nacl/loader/nonsfi/irt_interfaces.cc',
207 'nacl/loader/nonsfi/irt_interfaces.h',
208 'nacl/loader/nonsfi/irt_memory.cc',
209 'nacl/loader/nonsfi/irt_ppapi.cc',
210 'nacl/loader/nonsfi/irt_thread.cc',
211 'nacl/loader/nonsfi/irt_util.h',
212 'nacl/loader/nonsfi/nonsfi_main.cc',
213 'nacl/loader/nonsfi/nonsfi_main.h',
214 '../base/posix/unix_domain_socket_linux.cc',
215 '../content/common/child_process_sandbox_support_impl_shm_linux.cc',
216 '../content/common/sandbox_linux/sandbox_bpf_base_policy_linux.cc',
217 '../content/common/sandbox_linux/sandbox_init_linux.cc',
218 '../content/common/sandbox_linux/sandbox_seccomp_bpf_linux.cc',
219 '../content/public/common/content_switches.cc',
220 '../ppapi/proxy/plugin_main_irt.cc',
221 '../ppapi/proxy/plugin_main_irt.h',
224 ['toolkit_uses_gtk == 1', {
226 '../build/linux/system.gyp:gtk',
231 '../build/linux/system.gyp:glib',
234 ['os_posix == 1 and OS != "mac"', {
236 ['linux_use_tcmalloc==1', {
238 '../base/allocator/allocator.gyp:allocator',
243 ['use_seccomp_bpf == 0', {
245 '../content/common/sandbox_linux/sandbox_bpf_base_policy_linux.cc',
246 '../content/common/sandbox_linux/sandbox_init_linux.cc',
249 'defines': ['USE_SECCOMP_BPF'],
259 ['OS=="win" and target_arch=="ia32"', {
262 'target_name': 'nacl_win64',
263 'type': 'static_library',
269 '../native_client/src/trusted/service_runtime/service_runtime.gyp:sel_main_chrome64',
270 '../ppapi/ppapi_internal.gyp:ppapi_shared_win64',
271 '../ppapi/ppapi_internal.gyp:ppapi_ipc_win64',
273 'export_dependent_settings': [
274 '../ppapi/ppapi_internal.gyp:ppapi_ipc_win64',
277 '../components/nacl/broker/nacl_broker_listener.cc',
278 '../components/nacl/broker/nacl_broker_listener.h',
279 '../components/nacl/common/nacl_debug_exception_handler_win.cc',
280 '../components/nacl/loader/nacl_helper_win_64.cc',
281 '../components/nacl/loader/nacl_helper_win_64.h',
287 '<@(nacl_win64_defines)',
288 'COMPILE_CONTENT_STATICALLY',
292 'msvs_target_platform': 'x64',
295 'direct_dependent_settings': {
302 'target_name': 'nacl_switches_win64',
303 'type': 'static_library',
305 'nacl/common/nacl_switches.cc',
306 'nacl/common/nacl_switches.h',
313 'msvs_target_platform': 'x64',
318 'target_name': 'nacl_common_win64',
319 'type': 'static_library',
321 'COMPILE_CONTENT_STATICALLY',
324 'nacl/common/nacl_cmd_line.cc',
325 'nacl/common/nacl_cmd_line.h',
326 'nacl/common/nacl_messages.cc',
327 'nacl/common/nacl_messages.h',
328 'nacl/common/nacl_types.cc',
329 'nacl/common/nacl_types.h',
336 'msvs_target_platform': 'x64',
343 }, { # else (disable_nacl==1)
346 'target_name': 'nacl',
355 'target_name': 'nacl_win64',
360 'target_name': 'nacl_switches_win64',
371 'target_name': 'nacl_switches',
372 'type': 'static_library',
374 'nacl/common/nacl_switches.cc',
375 'nacl/common/nacl_switches.h',
382 'target_name': 'nacl_common',
383 'type': 'static_library',
385 'nacl/common/nacl_cmd_line.cc',
386 'nacl/common/nacl_cmd_line.h',
387 'nacl/common/nacl_host_messages.h',
388 'nacl/common/nacl_host_messages.cc',
389 'nacl/common/nacl_messages.cc',
390 'nacl/common/nacl_messages.h',
391 'nacl/common/nacl_process_type.h',
392 'nacl/common/nacl_sandbox_type_mac.h',
393 'nacl/common/nacl_types.cc',
394 'nacl/common/nacl_types.h',
395 'nacl/common/pnacl_types.cc',
396 'nacl/common/pnacl_types.h',