OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 # This GYP file defines untrusted (NaCl) targets. All targets in this | 5 # This GYP file defines untrusted (NaCl) targets. All targets in this |
6 # file should be conditionally depended upon via 'disable_nacl!=1' to avoid | 6 # file should be conditionally depended upon via 'disable_nacl!=1' to avoid |
7 # requiring NaCl sources for building. | 7 # requiring NaCl sources for building. |
8 | 8 |
9 { | 9 { |
10 'includes': [ | 10 'includes': [ |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 }], | 228 }], |
229 ['target_arch=="x64" or (target_arch=="ia32" and OS=="win")', { | 229 ['target_arch=="x64" or (target_arch=="ia32" and OS=="win")', { |
230 'inputs': [ | 230 'inputs': [ |
231 '>(out_pnacl_newlib_x86_64_nexe)', | 231 '>(out_pnacl_newlib_x86_64_nexe)', |
232 ], | 232 ], |
233 }], | 233 }], |
234 ], | 234 ], |
235 }, | 235 }, |
236 ], | 236 ], |
237 }], | 237 }], |
238 ['disable_pnacl==0 and (target_arch=="ia32" or target_arch=="arm") and O
S=="linux"', { | 238 ['disable_pnacl==0 and (target_arch=="ia32" or target_arch=="x64" or tar
get_arch=="arm") and OS=="linux"', { |
239 # In addition to above configuration, build x86-32 and arm nonsfi | 239 # In addition to above configuration, build x86-32 and arm nonsfi |
240 # .nexe files by translating from .pexe binary, for non-SFI mode PPAPI | 240 # .nexe files by translating from .pexe binary, for non-SFI mode PPAPI |
241 # testing. | 241 # testing. |
242 'variables': { | 242 'variables': { |
243 'translate_pexe_with_build': 1, | 243 'translate_pexe_with_build': 1, |
244 'nmf_nonsfi%': '<(PRODUCT_DIR)/>(nexe_target)_pnacl_nonsfi.nmf', | 244 'nmf_nonsfi%': '<(PRODUCT_DIR)/>(nexe_target)_pnacl_nonsfi.nmf', |
245 }, | 245 }, |
246 'conditions': [ | 246 'conditions': [ |
247 ['target_arch=="ia32"', { | 247 ['target_arch=="ia32" or target_arch=="x64"', { |
248 'variables': { | 248 'variables': { |
249 'enable_x86_32_nonsfi': 1, | 249 'enable_x86_32_nonsfi': 1, |
250 }, | 250 }, |
251 }], | 251 }], |
252 ['target_arch=="arm"', { | 252 ['target_arch=="arm"', { |
253 'variables': { | 253 'variables': { |
254 'enable_arm_nonsfi': 1, | 254 'enable_arm_nonsfi': 1, |
255 }, | 255 }, |
256 }], | 256 }], |
257 ], | 257 ], |
258 # Shim is a dependency for the nexe because we pre-translate. | 258 # Shim is a dependency for the nexe because we pre-translate. |
259 'dependencies': [ | 259 'dependencies': [ |
260 '<(DEPTH)/ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_irt
_shim.gyp:aot', | 260 '<(DEPTH)/ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_irt
_shim.gyp:aot', |
261 ], | 261 ], |
262 'actions': [ | 262 'actions': [ |
263 { | 263 { |
264 'action_name': 'Generate PNACL NEWLIB NONSFI NMF', | 264 'action_name': 'Generate PNACL NEWLIB NONSFI NMF', |
265 'inputs': ['>(create_nonsfi_test_nmf)'], | 265 'inputs': ['>(create_nonsfi_test_nmf)'], |
266 'outputs': ['>(nmf_nonsfi)'], | 266 'outputs': ['>(nmf_nonsfi)'], |
267 'action': [ | 267 'action': [ |
268 'python', | 268 'python', |
269 '>(create_nonsfi_test_nmf)', | 269 '>(create_nonsfi_test_nmf)', |
270 '--output=>(nmf_nonsfi)', | 270 '--output=>(nmf_nonsfi)', |
271 ], | 271 ], |
272 'target_conditions': [ | 272 'target_conditions': [ |
273 ['enable_x86_32_nonsfi==1', { | 273 ['enable_x86_32_nonsfi==1 and "<(target_arch)"=="ia32"', { |
| 274 'inputs': ['>(out_pnacl_newlib_x86_32_nonsfi_nexe)'], |
274 'action': [ | 275 'action': [ |
275 '--program=>(out_pnacl_newlib_x86_32_nonsfi_nexe)', | 276 '--program=>(out_pnacl_newlib_x86_32_nonsfi_nexe)', |
276 '--arch=x86-32', | 277 '--arch=x86-32', |
277 ], | 278 ] |
| 279 }], |
| 280 ['enable_x86_32_nonsfi==1 and "<(target_arch)"=="x64"', { |
| 281 'inputs': ['>(out_pnacl_newlib_x86_32_nonsfi_nexe)'], |
| 282 'action': [ |
| 283 '--program=>(out_pnacl_newlib_x86_32_nonsfi_nexe)', |
| 284 # This should be used only for nacl_helper_nonsfi test. |
| 285 # In theory this should be x86-32. However, currently |
| 286 # fallback logic to x86-32-nonsfi is not implemented, |
| 287 # and, moreover, it would break the tests for current |
| 288 # nacl_helper in Non-SFI mode on x64 Chrome. |
| 289 # So, here we introduce the hack to use "x86-64" in order |
| 290 # to take the benefit to run nacl_helper_nonsfi tests on |
| 291 # x64 Chrome. |
| 292 # TODO(hidehiko): Remove this hack. |
| 293 '--arch=x86-64', |
| 294 ] |
278 }], | 295 }], |
279 ['enable_arm_nonsfi==1', { | 296 ['enable_arm_nonsfi==1', { |
| 297 'inputs': ['>(out_pnacl_newlib_arm_nonsfi_nexe)'], |
280 'action': [ | 298 'action': [ |
281 '--program=>(out_pnacl_newlib_arm_nonsfi_nexe)', | 299 '--program=>(out_pnacl_newlib_arm_nonsfi_nexe)', |
282 '--arch=arm', | 300 '--arch=arm', |
283 ], | 301 ] |
284 }], | 302 }], |
285 ], | 303 ], |
286 }, | 304 }, |
287 ], | 305 ], |
288 }], | 306 }], |
289 ['disable_pnacl==0 and target_arch=="arm"', { | 307 ['disable_pnacl==0 and target_arch=="arm"', { |
290 'variables': { | 308 'variables': { |
291 'build_pnacl_newlib': 1, | 309 'build_pnacl_newlib': 1, |
292 'translate_pexe_with_build': 1, | 310 'translate_pexe_with_build': 1, |
293 'nmf_pnacl%': '<(PRODUCT_DIR)/>(nexe_target)_pnacl.nmf', | 311 'nmf_pnacl%': '<(PRODUCT_DIR)/>(nexe_target)_pnacl.nmf', |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 '>@(_inputs)', | 349 '>@(_inputs)', |
332 '--output=>(nmf_pnacl)', | 350 '--output=>(nmf_pnacl)', |
333 ], | 351 ], |
334 }, | 352 }, |
335 ], | 353 ], |
336 }], | 354 }], |
337 ], | 355 ], |
338 }, | 356 }, |
339 ], | 357 ], |
340 } | 358 } |
OLD | NEW |