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