OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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 'target_defaults': { | 9 'target_defaults': { |
10 # We need to override the variables in untrusted.gypi outside of a | 10 # We need to override the variables in untrusted.gypi outside of a |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 'action_name': 'Generate PNACL NEWLIB nonsfi NMF', | 214 'action_name': 'Generate PNACL NEWLIB nonsfi NMF', |
215 'inputs': ['>(create_nonsfi_test_nmf)'], | 215 'inputs': ['>(create_nonsfi_test_nmf)'], |
216 'outputs': ['>(nmf_pnacl_newlib_nonsfi)'], | 216 'outputs': ['>(nmf_pnacl_newlib_nonsfi)'], |
217 'action': [ | 217 'action': [ |
218 'python', | 218 'python', |
219 '>(create_nonsfi_test_nmf)', | 219 '>(create_nonsfi_test_nmf)', |
220 '>@(create_nmf_args_portable)', | 220 '>@(create_nmf_args_portable)', |
221 '--output=>(nmf_pnacl_newlib_nonsfi)', | 221 '--output=>(nmf_pnacl_newlib_nonsfi)', |
222 ], | 222 ], |
223 'target_conditions': [ | 223 'target_conditions': [ |
224 ['enable_x86_32_nonsfi==1', { | 224 ['enable_x86_32_nonsfi==1 and "<(target_arch)"=="ia32"', { |
225 'inputs': ['>(out_pnacl_newlib_x86_32_nonsfi_nexe)'], | 225 'inputs': ['>(out_pnacl_newlib_x86_32_nonsfi_nexe)'], |
226 'action': [ | 226 'action': [ |
227 '--program=>(out_pnacl_newlib_x86_32_nonsfi_nexe)', | 227 '--program=>(out_pnacl_newlib_x86_32_nonsfi_nexe)', |
228 '--arch=x86-32', | 228 '--arch=x86-32', |
229 ] | 229 ] |
230 }], | 230 }], |
| 231 ['enable_x86_32_nonsfi==1 and "<(target_arch)"=="x64"', { |
| 232 'inputs': ['>(out_pnacl_newlib_x86_32_nonsfi_nexe)'], |
| 233 'action': [ |
| 234 '--program=>(out_pnacl_newlib_x86_32_nonsfi_nexe)', |
| 235 # This should be used only for nacl_helper_nonsfi test. |
| 236 # In theory this should be x86-32. However, currently |
| 237 # fallback logic to x86-32-nonsfi is not implemented, |
| 238 # and, moreover, it would break the tests for current |
| 239 # nacl_helper in Non-SFI mode on x64 Chrome. |
| 240 # So, here we introduce the hack to use "x86-64" in order |
| 241 # to take the benefit to run nacl_helper_nonsfi tests on |
| 242 # x64 Chrome. |
| 243 # TODO(hidehiko): Remove this hack. |
| 244 '--arch=x86-64', |
| 245 ] |
| 246 }], |
231 ['enable_arm_nonsfi==1', { | 247 ['enable_arm_nonsfi==1', { |
232 'inputs': ['>(out_pnacl_newlib_arm_nonsfi_nexe)'], | 248 'inputs': ['>(out_pnacl_newlib_arm_nonsfi_nexe)'], |
233 'action': [ | 249 'action': [ |
234 '--program=>(out_pnacl_newlib_arm_nonsfi_nexe)', | 250 '--program=>(out_pnacl_newlib_arm_nonsfi_nexe)', |
235 '--arch=arm', | 251 '--arch=arm', |
236 ] | 252 ] |
237 }], | 253 }], |
238 ], | 254 ], |
239 }, | 255 }, |
240 ], | 256 ], |
241 }], | 257 }], |
242 ], | 258 ], |
243 }], | 259 }], |
244 ], | 260 ], |
245 }, | 261 }, |
246 } | 262 } |
OLD | NEW |