| 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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 # or ARM on ARM platforms, not all versions always. | 179 # or ARM on ARM platforms, not all versions always. |
| 180 # TODO(petarj): Enable tests for MIPS. | 180 # TODO(petarj): Enable tests for MIPS. |
| 181 # The same goes for the PNaCl shims. So, we have two variations here. | 181 # The same goes for the PNaCl shims. So, we have two variations here. |
| 182 ['disable_pnacl==0 and (target_arch=="ia32" or target_arch=="x64")', { | 182 ['disable_pnacl==0 and (target_arch=="ia32" or target_arch=="x64")', { |
| 183 'variables': { | 183 'variables': { |
| 184 'build_pnacl_newlib': 1, | 184 'build_pnacl_newlib': 1, |
| 185 'nmf_pnacl%': '<(PRODUCT_DIR)/>(nexe_target)_pnacl.nmf', | 185 'nmf_pnacl%': '<(PRODUCT_DIR)/>(nexe_target)_pnacl.nmf', |
| 186 }, | 186 }, |
| 187 # Shim is a dependency for the nexe because we pre-translate. | 187 # Shim is a dependency for the nexe because we pre-translate. |
| 188 'dependencies': [ | 188 'dependencies': [ |
| 189 '<(DEPTH)/ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_irt
_shim.gyp:pnacl_irt_shim', | 189 '<(DEPTH)/ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_irt
_shim.gyp:pnacl_irt_shim_aot', |
| 190 ], | 190 ], |
| 191 'actions': [ | 191 'actions': [ |
| 192 { | 192 { |
| 193 'action_name': 'Generate PNACL NEWLIB NMF', | 193 'action_name': 'Generate PNACL NEWLIB NMF', |
| 194 # NOTE: create_nmf must be first, it is the script python executes | 194 # NOTE: create_nmf must be first, it is the script python executes |
| 195 # below. | 195 # below. |
| 196 'inputs': [ | 196 'inputs': [ |
| 197 '>(create_nmf)', | 197 '>(create_nmf)', |
| 198 '>(out_pnacl_newlib_x86_32_nexe)', | 198 '>(out_pnacl_newlib_x86_32_nexe)', |
| 199 '>(out_pnacl_newlib_x86_64_nexe)' | 199 '>(out_pnacl_newlib_x86_64_nexe)' |
| 200 ], | 200 ], |
| 201 'outputs': ['>(nmf_pnacl)'], | 201 'outputs': ['>(nmf_pnacl)'], |
| 202 'action': [ | 202 'action': [ |
| 203 'python', | 203 'python', |
| 204 '>@(_inputs)', | 204 '>@(_inputs)', |
| 205 '--output=>(nmf_pnacl)', | 205 '--output=>(nmf_pnacl)', |
| 206 ], | 206 ], |
| 207 }, | 207 }, |
| 208 ], | 208 ], |
| 209 }], | 209 }], |
| 210 ['disable_pnacl==0 and target_arch=="arm"', { | 210 ['disable_pnacl==0 and target_arch=="arm"', { |
| 211 'variables': { | 211 'variables': { |
| 212 'build_pnacl_newlib': 1, | 212 'build_pnacl_newlib': 1, |
| 213 'nmf_pnacl%': '<(PRODUCT_DIR)/>(nexe_target)_pnacl.nmf', | 213 'nmf_pnacl%': '<(PRODUCT_DIR)/>(nexe_target)_pnacl.nmf', |
| 214 }, | 214 }, |
| 215 # Shim is a dependency for the nexe because we pre-translate. | 215 # Shim is a dependency for the nexe because we pre-translate. |
| 216 'dependencies': [ | 216 'dependencies': [ |
| 217 '<(DEPTH)/ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_irt
_shim.gyp:pnacl_irt_shim', | 217 '<(DEPTH)/ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_irt
_shim.gyp:pnacl_irt_shim_aot', |
| 218 ], | 218 ], |
| 219 'actions': [ | 219 'actions': [ |
| 220 { | 220 { |
| 221 'action_name': 'Generate PNACL NEWLIB NMF', | 221 'action_name': 'Generate PNACL NEWLIB NMF', |
| 222 # NOTE: create_nmf must be first, it is the script python executes | 222 # NOTE: create_nmf must be first, it is the script python executes |
| 223 # below. | 223 # below. |
| 224 'inputs': ['>(create_nmf)', '>(out_pnacl_newlib_arm_nexe)'], | 224 'inputs': ['>(create_nmf)', '>(out_pnacl_newlib_arm_nexe)'], |
| 225 'outputs': ['>(nmf_pnacl)'], | 225 'outputs': ['>(nmf_pnacl)'], |
| 226 'action': [ | 226 'action': [ |
| 227 'python', | 227 'python', |
| 228 '>@(_inputs)', | 228 '>@(_inputs)', |
| 229 '--output=>(nmf_pnacl)', | 229 '--output=>(nmf_pnacl)', |
| 230 ], | 230 ], |
| 231 }, | 231 }, |
| 232 ], | 232 ], |
| 233 }], | 233 }], |
| 234 ], | 234 ], |
| 235 }, | 235 }, |
| 236 ], | 236 ], |
| 237 } | 237 } |
| OLD | NEW |