Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(105)

Side by Side Diff: ppapi/native_client/native_client.gyp

Issue 152133007: [MIPS] Support for MIPS PNaCl in PPAPI (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase. Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 { 5 {
6 'includes': [ 6 'includes': [
7 '../../build/common_untrusted.gypi', 7 '../../build/common_untrusted.gypi',
8 ], 8 ],
9 'conditions': [ 9 'conditions': [
10 ['disable_nacl==0 and disable_nacl_untrusted==0', { 10 ['disable_nacl==0 and disable_nacl_untrusted==0', {
(...skipping 18 matching lines...) Expand all
29 }, 29 },
30 30
31 { 31 {
32 'destination': '>(tc_lib_dir_pnacl_newlib)', 32 'destination': '>(tc_lib_dir_pnacl_newlib)',
33 'files': [ 33 'files': [
34 'src/untrusted/irt_stub/libppapi.a', 34 'src/untrusted/irt_stub/libppapi.a',
35 ], 35 ],
36 }, 36 },
37 ], 37 ],
38 'conditions': [ 38 'conditions': [
39 ['target_arch!="arm"', { 39 ['target_arch=="ia32" or target_arch=="x64"', {
40 'copies': [ 40 'copies': [
41 { 41 {
42 'destination': '>(tc_include_dir_glibc)/include/nacl', 42 'destination': '>(tc_include_dir_glibc)/include/nacl',
43 'files': [ 43 'files': [
44 'src/trusted/weak_ref/call_on_main_thread.h', 44 'src/trusted/weak_ref/call_on_main_thread.h',
45 'src/shared/ppapi_proxy/ppruntime.h', 45 'src/shared/ppapi_proxy/ppruntime.h',
46 ], 46 ],
47 }, 47 },
48 # Here we copy linker scripts out of the Native Client repo.. 48 # Here we copy linker scripts out of the Native Client repo..
49 # These are source, not build artifacts. 49 # These are source, not build artifacts.
(...skipping 27 matching lines...) Expand all
77 }], 77 }],
78 ['target_arch=="arm"', { 78 ['target_arch=="arm"', {
79 'copies': [ 79 'copies': [
80 { 80 {
81 'destination': '>(tc_lib_dir_newlib_arm)', 81 'destination': '>(tc_lib_dir_newlib_arm)',
82 'files': [ 82 'files': [
83 'src/untrusted/irt_stub/libppapi.a', 83 'src/untrusted/irt_stub/libppapi.a',
84 ], 84 ],
85 }, 85 },
86 ] 86 ]
87 }],
88 ['target_arch=="mipsel"', {
89 'copies': [
90 {
91 'destination': '>(tc_lib_dir_newlib_mips)',
92 'files': [
93 'src/untrusted/irt_stub/libppapi.a',
94 ],
95 },
96 ]
87 }] 97 }]
88 ], 98 ],
89 }, 99 },
90 { 100 {
91 'target_name': 'nacl_irt_raw', 101 'target_name': 'nacl_irt_raw',
92 'type': 'none', 102 'type': 'none',
93 'variables': { 103 'variables': {
94 'nexe_target': 'nacl_irt_raw', 104 'nexe_target': 'nacl_irt_raw',
95 # These out_* fields override the default filenames, which 105 # These out_* fields override the default filenames, which
96 # include a "_newlib" suffix and places them in the target 106 # include a "_newlib" suffix and places them in the target
97 # directory. 107 # directory.
98 'out_newlib64': '<(SHARED_INTERMEDIATE_DIR)/nacl_irt_x86_64_raw.nexe ', 108 'out_newlib64': '<(SHARED_INTERMEDIATE_DIR)/nacl_irt_x86_64_raw.nexe ',
99 'out_newlib32': '<(SHARED_INTERMEDIATE_DIR)/nacl_irt_x86_32_raw.nexe ', 109 'out_newlib32': '<(SHARED_INTERMEDIATE_DIR)/nacl_irt_x86_32_raw.nexe ',
100 'out_newlib_arm': '<(SHARED_INTERMEDIATE_DIR)/nacl_irt_arm_raw.nexe' , 110 'out_newlib_arm': '<(SHARED_INTERMEDIATE_DIR)/nacl_irt_arm_raw.nexe' ,
111 'out_newlib_mips': '<(SHARED_INTERMEDIATE_DIR)/nacl_irt_mips32_raw.n exe',
101 'build_glibc': 0, 112 'build_glibc': 0,
102 'build_newlib': 0, 113 'build_newlib': 0,
103 'build_irt': 1, 114 'build_irt': 1,
104 'include_dirs': [ 115 'include_dirs': [
105 'lib/gl/include', 116 'lib/gl/include',
106 '..', 117 '..',
107 ], 118 ],
108 'link_flags': [ 119 'link_flags': [
109 '-Wl,--start-group', 120 '-Wl,--start-group',
110 '-lirt_browser', 121 '-lirt_browser',
(...skipping 28 matching lines...) Expand all
139 ['OS!="win" and target_arch=="ia32"', 150 ['OS!="win" and target_arch=="ia32"',
140 { 151 {
141 'enable_x86_64': 0 152 'enable_x86_64': 0
142 } 153 }
143 ], 154 ],
144 ['target_arch=="x64"', 155 ['target_arch=="x64"',
145 { 156 {
146 'enable_x86_32': 0 157 'enable_x86_32': 0
147 } 158 }
148 ], 159 ],
149 ['target_arch!="arm"', { 160 ['target_arch=="ia32" or target_arch=="x64"', {
150 'extra_deps_newlib64': [ 161 'extra_deps_newlib64': [
151 '>(tc_lib_dir_irt64)/libppapi_proxy_untrusted.a', 162 '>(tc_lib_dir_irt64)/libppapi_proxy_untrusted.a',
152 '>(tc_lib_dir_irt64)/libppapi_ipc_untrusted.a', 163 '>(tc_lib_dir_irt64)/libppapi_ipc_untrusted.a',
153 '>(tc_lib_dir_irt64)/libppapi_shared_untrusted.a', 164 '>(tc_lib_dir_irt64)/libppapi_shared_untrusted.a',
154 '>(tc_lib_dir_irt64)/libgles2_implementation_untrusted.a', 165 '>(tc_lib_dir_irt64)/libgles2_implementation_untrusted.a',
155 '>(tc_lib_dir_irt64)/libcommand_buffer_client_untrusted.a', 166 '>(tc_lib_dir_irt64)/libcommand_buffer_client_untrusted.a',
156 '>(tc_lib_dir_irt64)/libcommand_buffer_common_untrusted.a', 167 '>(tc_lib_dir_irt64)/libcommand_buffer_common_untrusted.a',
157 '>(tc_lib_dir_irt64)/libgpu_ipc_untrusted.a', 168 '>(tc_lib_dir_irt64)/libgpu_ipc_untrusted.a',
158 '>(tc_lib_dir_irt64)/libtracing_untrusted.a', 169 '>(tc_lib_dir_irt64)/libtracing_untrusted.a',
159 '>(tc_lib_dir_irt64)/libgles2_cmd_helper_untrusted.a', 170 '>(tc_lib_dir_irt64)/libgles2_cmd_helper_untrusted.a',
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 '>(tc_lib_dir_irt_arm)/libipc_untrusted.a', 214 '>(tc_lib_dir_irt_arm)/libipc_untrusted.a',
204 '>(tc_lib_dir_irt_arm)/libbase_untrusted.a', 215 '>(tc_lib_dir_irt_arm)/libbase_untrusted.a',
205 '>(tc_lib_dir_irt_arm)/libirt_browser.a', 216 '>(tc_lib_dir_irt_arm)/libirt_browser.a',
206 '>(tc_lib_dir_irt_arm)/libshared_memory_support_untrusted.a', 217 '>(tc_lib_dir_irt_arm)/libshared_memory_support_untrusted.a',
207 '>(tc_lib_dir_irt_arm)/libsrpc.a', 218 '>(tc_lib_dir_irt_arm)/libsrpc.a',
208 '>(tc_lib_dir_irt_arm)/libplatform.a', 219 '>(tc_lib_dir_irt_arm)/libplatform.a',
209 '>(tc_lib_dir_irt_arm)/libimc_syscalls.a', 220 '>(tc_lib_dir_irt_arm)/libimc_syscalls.a',
210 '>(tc_lib_dir_irt_arm)/libgio.a', 221 '>(tc_lib_dir_irt_arm)/libgio.a',
211 ], 222 ],
212 }], 223 }],
224 ['target_arch=="mipsel"', {
225 'extra_deps_mips': [
226 '>(tc_lib_dir_irt_mips)/libppapi_proxy_untrusted.a',
227 '>(tc_lib_dir_irt_mips)/libppapi_ipc_untrusted.a',
228 '>(tc_lib_dir_irt_mips)/libppapi_shared_untrusted.a',
229 '>(tc_lib_dir_irt_mips)/libgles2_implementation_untrusted.a',
230 '>(tc_lib_dir_irt_mips)/libcommand_buffer_client_untrusted.a',
231 '>(tc_lib_dir_irt_mips)/libcommand_buffer_common_untrusted.a',
232 '>(tc_lib_dir_irt_mips)/libgpu_ipc_untrusted.a',
233 '>(tc_lib_dir_irt_mips)/libtracing_untrusted.a',
234 '>(tc_lib_dir_irt_mips)/libgles2_cmd_helper_untrusted.a',
235 '>(tc_lib_dir_irt_mips)/libgles2_utils_untrusted.a',
236 '>(tc_lib_dir_irt_mips)/libipc_untrusted.a',
237 '>(tc_lib_dir_irt_mips)/libbase_untrusted.a',
238 '>(tc_lib_dir_irt_mips)/libirt_browser.a',
239 '>(tc_lib_dir_irt_mips)/libshared_memory_support_untrusted.a',
240 '>(tc_lib_dir_irt_mips)/libsrpc.a',
241 '>(tc_lib_dir_irt_mips)/libplatform.a',
242 '>(tc_lib_dir_irt_mips)/libimc_syscalls.a',
243 '>(tc_lib_dir_irt_mips)/libgio.a',
244 ],
245 }],
213 ], 246 ],
214 }, 247 },
215 'dependencies': [ 248 'dependencies': [
216 '../ppapi_proxy_untrusted.gyp:ppapi_proxy_untrusted', 249 '../ppapi_proxy_untrusted.gyp:ppapi_proxy_untrusted',
217 '../ppapi_ipc_untrusted.gyp:ppapi_ipc_untrusted', 250 '../ppapi_ipc_untrusted.gyp:ppapi_ipc_untrusted',
218 '../ppapi_shared_untrusted.gyp:ppapi_shared_untrusted', 251 '../ppapi_shared_untrusted.gyp:ppapi_shared_untrusted',
219 '../../gpu/command_buffer/command_buffer_untrusted.gyp:gles2_utils_u ntrusted', 252 '../../gpu/command_buffer/command_buffer_untrusted.gyp:gles2_utils_u ntrusted',
220 '../../gpu/gpu_untrusted.gyp:command_buffer_client_untrusted', 253 '../../gpu/gpu_untrusted.gyp:command_buffer_client_untrusted',
221 '../../gpu/gpu_untrusted.gyp:command_buffer_common_untrusted', 254 '../../gpu/gpu_untrusted.gyp:command_buffer_common_untrusted',
222 '../../gpu/gpu_untrusted.gyp:gles2_implementation_untrusted', 255 '../../gpu/gpu_untrusted.gyp:gles2_implementation_untrusted',
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 '<(PRODUCT_DIR)/nacl_irt_arm.nexe.debug', 306 '<(PRODUCT_DIR)/nacl_irt_arm.nexe.debug',
274 ], 307 ],
275 'action': [ 308 'action': [
276 '<(PRODUCT_DIR)/tls_edit', 309 '<(PRODUCT_DIR)/tls_edit',
277 '<(SHARED_INTERMEDIATE_DIR)/nacl_irt_arm_raw.nexe.debug', 310 '<(SHARED_INTERMEDIATE_DIR)/nacl_irt_arm_raw.nexe.debug',
278 '<@(_outputs)', 311 '<@(_outputs)',
279 ], 312 ],
280 }, 313 },
281 ], 314 ],
282 }], 315 }],
316 ['target_arch=="mipsel"', {
317 'actions': [
318 {
319 'action_name': 'tls_edit_nacl_irt_mips',
320 'message': 'Patching TLS for nacl_irt (mips)',
321 'inputs': [
322 '<(PRODUCT_DIR)/tls_edit',
323 '<(SHARED_INTERMEDIATE_DIR)/nacl_irt_mips32_raw.nexe',
324 ],
325 'outputs': [
326 '<(PRODUCT_DIR)/nacl_irt_mips32.nexe',
327 ],
328 'action': ['<@(_inputs)', '<@(_outputs)'],
329 },
330
331 # The non-stripped nacl_irt debug file must also go through
332 # tls_edit, however gyp does not know anything about the
333 # debug file since it is built as a side effect. We
334 # must depend on the nacl_irt_raw.nexe and use the
335 # nacl_irt_raw.nexe.debug file as the input to tls_edit.
336 {
337 'action_name': 'tls_edit_nacl_irt_debug_mips',
338 'message': 'Patching TLS for nacl_irt.debug (mips)',
339 'inputs': [
340 '<(PRODUCT_DIR)/tls_edit',
341 '<(SHARED_INTERMEDIATE_DIR)/nacl_irt_mips32_raw.nexe',
342 ],
343 'outputs': [
344 '<(PRODUCT_DIR)/nacl_irt_mips32.nexe.debug',
345 ],
346 'action': [
347 '<(PRODUCT_DIR)/tls_edit',
348 '<(SHARED_INTERMEDIATE_DIR)/nacl_irt_mips32_raw.nexe.debug',
349 '<@(_outputs)',
350 ],
351 },
352 ],
353 }],
283 ['target_arch=="x64" or OS=="win"', { 354 ['target_arch=="x64" or OS=="win"', {
284 'actions': [ 355 'actions': [
285 { 356 {
286 'action_name': 'tls_edit_nacl_irt_x86_64', 357 'action_name': 'tls_edit_nacl_irt_x86_64',
287 'message': 'Patching TLS for nacl_irt (x86-64)', 358 'message': 'Patching TLS for nacl_irt (x86-64)',
288 'inputs': [ 359 'inputs': [
289 '<(PRODUCT_DIR)/tls_edit', 360 '<(PRODUCT_DIR)/tls_edit',
290 '<(SHARED_INTERMEDIATE_DIR)/nacl_irt_x86_64_raw.nexe', 361 '<(SHARED_INTERMEDIATE_DIR)/nacl_irt_x86_64_raw.nexe',
291 ], 362 ],
292 'outputs': [ 363 'outputs': [
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 ], 426 ],
356 }, 427 },
357 ], 428 ],
358 }], 429 }],
359 ], 430 ],
360 }, 431 },
361 ], 432 ],
362 }], 433 }],
363 ], 434 ],
364 } 435 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698