1 # Copyright (c) 2012 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.
7 '../native_client/build/untrusted.gypi',
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)',
24 # .cc, .h, and .mm files under nacl that are used on all
25 # platforms, including both 32-bit and 64-bit Windows.
26 # Test files are also not included.
27 'nacl/nacl_ipc_adapter.cc',
28 'nacl/nacl_ipc_adapter.h',
30 'nacl/nacl_main_platform_delegate.h',
31 'nacl/nacl_main_platform_delegate_linux.cc',
32 'nacl/nacl_main_platform_delegate_mac.mm',
33 'nacl/nacl_main_platform_delegate_win.cc',
34 'nacl/nacl_listener.cc',
35 'nacl/nacl_listener.h',
36 'nacl/nacl_validation_db.h',
37 'nacl/nacl_validation_query.cc',
38 'nacl/nacl_validation_query.h',
40 # TODO(gregoryd): consider switching NaCl to use Chrome OS defines
44 '__STDC_LIMIT_MACROS=1',
47 '<(DEPTH)/third_party/wtl/include',
52 '__STDC_LIMIT_MACROS=1',
55 'app/nacl_fork_delegate_linux.cc',
56 'app/nacl_fork_delegate_linux.h',
67 'target_name': 'nacl',
68 'type': 'static_library',
73 '../base/base.gyp:base',
75 '../ppapi/native_client/src/trusted/plugin/plugin.gyp:ppGoogleNaClPluginChrome',
76 '../ppapi/ppapi_internal.gyp:ppapi_shared',
77 '../ppapi/ppapi_internal.gyp:ppapi_ipc',
78 '../native_client/src/trusted/service_runtime/service_runtime.gyp:sel_main_chrome',
81 ['disable_nacl_untrusted==0', {
83 '../ppapi/native_client/native_client.gyp:nacl_irt',
84 '../ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_irt_shim.gyp:pnacl_irt_shim',
85 '../ppapi/native_client/src/untrusted/pnacl_support_extension/pnacl_support_extension.gyp:pnacl_support_extension',
89 'direct_dependent_settings': {
97 ['OS=="win" and target_arch=="ia32"', {
100 'target_name': 'nacl_win64',
101 'type': 'static_library',
106 '../native_client/src/trusted/service_runtime/service_runtime.gyp:sel_main_chrome64',
107 '../ppapi/ppapi_internal.gyp:ppapi_shared_win64',
108 '../ppapi/ppapi_internal.gyp:ppapi_ipc_win64',
110 'export_dependent_settings': [
111 '../ppapi/ppapi_internal.gyp:ppapi_ipc_win64',
114 'common/nacl_cmd_line.cc',
115 'common/nacl_debug_exception_handler_win.cc',
116 'common/nacl_messages.cc',
117 'common/nacl_types.cc',
118 'nacl/nacl_broker_listener.cc',
119 'nacl/nacl_broker_listener.h',
125 '<@(nacl_win64_defines)',
126 'COMPILE_CONTENT_STATICALLY',
130 'msvs_target_platform': 'x64',
133 'direct_dependent_settings': {
144 'target_name': 'nacl_helper',
145 'type': 'executable',
150 '../crypto/crypto.gyp:crypto',
151 '../sandbox/sandbox.gyp:libc_urandom_override',
155 'nacl/nacl_helper_linux.cc',
156 '../base/posix/unix_domain_socket_linux.cc',
157 '../chrome/common/nacl_messages.cc',
158 '../chrome/common/nacl_types.cc',
159 '../content/common/child_process_sandbox_support_impl_shm_linux.cc',
162 ['toolkit_uses_gtk == 1', {
164 '../build/linux/system.gyp:gtk',
169 '../build/linux/system.gyp:glib',
172 ['os_posix == 1 and OS != "mac"', {
174 ['linux_use_tcmalloc==1', {
176 '../base/allocator/allocator.gyp:allocator',
190 }, { # else (disable_nacl==1)
193 'target_name': 'nacl',
202 'target_name': 'nacl_win64',