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 '../../build/common_untrusted.gypi',
10 ['disable_nacl==0 and disable_nacl_untrusted==0', {
13 'target_name': 'ppapi_lib',
16 '../../native_client/src/untrusted/pthread/pthread.gyp:pthread_lib',
17 'src/untrusted/irt_stub/irt_stub.gyp:ppapi_stub_lib',
24 'destination': '>(tc_include_dir_newlib)/nacl',
26 'src/trusted/weak_ref/call_on_main_thread.h',
27 'src/shared/ppapi_proxy/ppruntime.h',
32 'destination': '>(tc_lib_dir_pnacl_newlib)',
34 'src/untrusted/irt_stub/libppapi.a',
39 ['target_arch=="ia32" or target_arch=="x64"', {
42 'destination': '>(tc_include_dir_glibc)/include/nacl',
44 'src/trusted/weak_ref/call_on_main_thread.h',
45 'src/shared/ppapi_proxy/ppruntime.h',
48 # Here we copy linker scripts out of the Native Client repo..
49 # These are source, not build artifacts.
51 'destination': '>(tc_lib_dir_newlib32)',
53 'src/untrusted/irt_stub/libppapi.a',
57 'destination': '>(tc_lib_dir_newlib64)',
59 'src/untrusted/irt_stub/libppapi.a',
63 'destination': '>(tc_lib_dir_glibc32)',
65 'src/untrusted/irt_stub/libppapi.a',
66 'src/untrusted/irt_stub/libppapi.so',
70 'destination': '>(tc_lib_dir_glibc64)',
72 'src/untrusted/irt_stub/libppapi.a',
73 'src/untrusted/irt_stub/libppapi.so',
78 ['target_arch=="arm"', {
81 'destination': '>(tc_lib_dir_newlib_arm)',
83 'src/untrusted/irt_stub/libppapi.a',
88 ['target_arch=="mipsel"', {
91 'destination': '>(tc_lib_dir_newlib_mips)',
93 'src/untrusted/irt_stub/libppapi.a',
101 'target_name': 'nacl_irt',
104 'nexe_target': 'nacl_irt',
105 # These out_* fields override the default filenames, which
106 # include a "_newlib" suffix and places them in the target
108 'out_newlib64': '<(PRODUCT_DIR)/nacl_irt_x86_64.nexe',
109 'out_newlib32': '<(PRODUCT_DIR)/nacl_irt_x86_32.nexe',
110 'out_newlib_arm': '<(PRODUCT_DIR)/nacl_irt_arm.nexe',
111 'out_newlib_mips': '<(PRODUCT_DIR)/nacl_irt_mips32.nexe',
121 '-llatency_info_nacl',
122 '-lpnacl_irt_shim_for_irt',
123 '-lppapi_proxy_nacl',
125 '-lppapi_shared_nacl',
126 '-lgles2_implementation_nacl',
127 '-lgles2_cmd_helper_nacl',
128 '-lgles2_utils_nacl',
129 '-lcommand_buffer_client_nacl',
130 '-lcommand_buffer_common_nacl',
135 '-lshared_memory_support_nacl',
147 # untrusted.gypi and build_nexe.py currently build
148 # both x86-32 and x86-64 whenever target_arch is some
149 # flavor of x86. However, on non-windows platforms
150 # we only need one architecture.
151 ['OS!="win" and target_arch=="ia32"',
156 ['target_arch=="x64"',
161 ['target_arch=="ia32" or target_arch=="x64"', {
162 'extra_deps_newlib64': [
163 '>(tc_lib_dir_irt64)/libppapi_proxy_nacl.a',
164 '>(tc_lib_dir_irt64)/libppapi_ipc_nacl.a',
165 '>(tc_lib_dir_irt64)/libppapi_shared_nacl.a',
166 '>(tc_lib_dir_irt64)/libgles2_implementation_nacl.a',
167 '>(tc_lib_dir_irt64)/libcommand_buffer_client_nacl.a',
168 '>(tc_lib_dir_irt64)/libcommand_buffer_common_nacl.a',
169 '>(tc_lib_dir_irt64)/libgpu_ipc_nacl.a',
170 '>(tc_lib_dir_irt64)/libtracing_nacl.a',
171 '>(tc_lib_dir_irt64)/libgles2_cmd_helper_nacl.a',
172 '>(tc_lib_dir_irt64)/libgles2_utils_nacl.a',
173 '>(tc_lib_dir_irt64)/libipc_nacl.a',
174 '>(tc_lib_dir_irt64)/libbase_nacl.a',
175 '>(tc_lib_dir_irt64)/libirt_browser.a',
176 '>(tc_lib_dir_irt64)/libpnacl_irt_shim_for_irt.a',
177 '>(tc_lib_dir_irt64)/libshared_memory_support_nacl.a',
178 '>(tc_lib_dir_irt64)/libsrpc.a',
179 '>(tc_lib_dir_irt64)/libplatform.a',
180 '>(tc_lib_dir_irt64)/libimc_syscalls.a',
181 '>(tc_lib_dir_irt64)/libgio.a',
183 'extra_deps_newlib32': [
184 '>(tc_lib_dir_irt32)/libppapi_proxy_nacl.a',
185 '>(tc_lib_dir_irt32)/libppapi_ipc_nacl.a',
186 '>(tc_lib_dir_irt32)/libppapi_shared_nacl.a',
187 '>(tc_lib_dir_irt32)/libgles2_implementation_nacl.a',
188 '>(tc_lib_dir_irt32)/libcommand_buffer_client_nacl.a',
189 '>(tc_lib_dir_irt32)/libcommand_buffer_common_nacl.a',
190 '>(tc_lib_dir_irt32)/libgpu_ipc_nacl.a',
191 '>(tc_lib_dir_irt32)/libtracing_nacl.a',
192 '>(tc_lib_dir_irt32)/libgles2_cmd_helper_nacl.a',
193 '>(tc_lib_dir_irt32)/libgles2_utils_nacl.a',
194 '>(tc_lib_dir_irt32)/libipc_nacl.a',
195 '>(tc_lib_dir_irt32)/libbase_nacl.a',
196 '>(tc_lib_dir_irt32)/libirt_browser.a',
197 '>(tc_lib_dir_irt32)/libpnacl_irt_shim_for_irt.a',
198 '>(tc_lib_dir_irt32)/libshared_memory_support_nacl.a',
199 '>(tc_lib_dir_irt32)/libsrpc.a',
200 '>(tc_lib_dir_irt32)/libplatform.a',
201 '>(tc_lib_dir_irt32)/libimc_syscalls.a',
202 '>(tc_lib_dir_irt32)/libgio.a',
205 ['target_arch=="arm"', {
207 '>(tc_lib_dir_irt_arm)/libppapi_proxy_nacl.a',
208 '>(tc_lib_dir_irt_arm)/libppapi_ipc_nacl.a',
209 '>(tc_lib_dir_irt_arm)/libppapi_shared_nacl.a',
210 '>(tc_lib_dir_irt_arm)/libgles2_implementation_nacl.a',
211 '>(tc_lib_dir_irt_arm)/libcommand_buffer_client_nacl.a',
212 '>(tc_lib_dir_irt_arm)/libcommand_buffer_common_nacl.a',
213 '>(tc_lib_dir_irt_arm)/libgpu_ipc_nacl.a',
214 '>(tc_lib_dir_irt_arm)/libtracing_nacl.a',
215 '>(tc_lib_dir_irt_arm)/libgles2_cmd_helper_nacl.a',
216 '>(tc_lib_dir_irt_arm)/libgles2_utils_nacl.a',
217 '>(tc_lib_dir_irt_arm)/libipc_nacl.a',
218 '>(tc_lib_dir_irt_arm)/libbase_nacl.a',
219 '>(tc_lib_dir_irt_arm)/libirt_browser.a',
220 '>(tc_lib_dir_irt_arm)/libpnacl_irt_shim_for_irt.a',
221 '>(tc_lib_dir_irt_arm)/libshared_memory_support_nacl.a',
222 '>(tc_lib_dir_irt_arm)/libsrpc.a',
223 '>(tc_lib_dir_irt_arm)/libplatform.a',
224 '>(tc_lib_dir_irt_arm)/libimc_syscalls.a',
225 '>(tc_lib_dir_irt_arm)/libgio.a',
228 ['target_arch=="mipsel"', {
230 '>(tc_lib_dir_irt_mips)/libppapi_proxy_nacl.a',
231 '>(tc_lib_dir_irt_mips)/libppapi_ipc_nacl.a',
232 '>(tc_lib_dir_irt_mips)/libppapi_shared_nacl.a',
233 '>(tc_lib_dir_irt_mips)/libgles2_implementation_nacl.a',
234 '>(tc_lib_dir_irt_mips)/libcommand_buffer_client_nacl.a',
235 '>(tc_lib_dir_irt_mips)/libcommand_buffer_common_nacl.a',
236 '>(tc_lib_dir_irt_mips)/libgpu_ipc_nacl.a',
237 '>(tc_lib_dir_irt_mips)/libtracing_nacl.a',
238 '>(tc_lib_dir_irt_mips)/libgles2_cmd_helper_nacl.a',
239 '>(tc_lib_dir_irt_mips)/libgles2_utils_nacl.a',
240 '>(tc_lib_dir_irt_mips)/libipc_nacl.a',
241 '>(tc_lib_dir_irt_mips)/libbase_nacl.a',
242 '>(tc_lib_dir_irt_mips)/libirt_browser.a',
243 '>(tc_lib_dir_irt_mips)/libpnacl_irt_shim_for_irt.a',
244 '>(tc_lib_dir_irt_mips)/libshared_memory_support_nacl.a',
245 '>(tc_lib_dir_irt_mips)/libsrpc.a',
246 '>(tc_lib_dir_irt_mips)/libplatform.a',
247 '>(tc_lib_dir_irt_mips)/libimc_syscalls.a',
248 '>(tc_lib_dir_irt_mips)/libgio.a',
254 'src/untrusted/pnacl_irt_shim/pnacl_irt_shim.gyp:irt',
255 '../ppapi_proxy_nacl.gyp:ppapi_proxy_nacl',
256 '../ppapi_ipc_nacl.gyp:ppapi_ipc_nacl',
257 '../ppapi_shared_nacl.gyp:ppapi_shared_nacl',
258 '../../gpu/command_buffer/command_buffer_nacl.gyp:gles2_utils_nacl',
259 '../../gpu/gpu_nacl.gyp:command_buffer_client_nacl',
260 '../../gpu/gpu_nacl.gyp:command_buffer_common_nacl',
261 '../../gpu/gpu_nacl.gyp:gles2_implementation_nacl',
262 '../../gpu/gpu_nacl.gyp:gles2_cmd_helper_nacl',
263 '../../gpu/gpu_nacl.gyp:gpu_ipc_nacl',
264 '../../components/tracing_nacl.gyp:tracing_nacl',
265 '../../ipc/ipc_nacl.gyp:ipc_nacl',
266 '../../base/base_nacl.gyp:base_nacl',
267 '../../media/media_nacl.gyp:shared_memory_support_nacl',
268 '../../native_client/src/untrusted/irt/irt.gyp:irt_browser_lib',
269 '../../native_client/src/shared/srpc/srpc.gyp:srpc_lib',
270 '../../native_client/src/shared/platform/platform.gyp:platform_lib',
271 '../../native_client/src/tools/tls_edit/tls_edit.gyp:tls_edit#host',
272 '../../native_client/src/untrusted/nacl/nacl.gyp:imc_syscalls_lib',
273 '../../native_client/src/shared/gio/gio.gyp:gio_lib',