| 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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 # ARM on ARM platforms, or MIPS on MIPS platforms, not all | 180 # ARM on ARM platforms, or MIPS on MIPS platforms, not all |
| 181 # versions always. | 181 # versions always. |
| 182 # The same goes for the PNaCl shims. So, we have two variations here. | 182 # The same goes for the PNaCl shims. So, we have two variations here. |
| 183 ['disable_pnacl==0 and (target_arch=="ia32" or target_arch=="x64")', { | 183 ['disable_pnacl==0 and (target_arch=="ia32" or target_arch=="x64")', { |
| 184 'variables': { | 184 'variables': { |
| 185 'build_pnacl_newlib': 1, | 185 'build_pnacl_newlib': 1, |
| 186 'nmf_pnacl%': '<(PRODUCT_DIR)/>(nexe_target)_pnacl.nmf', | 186 'nmf_pnacl%': '<(PRODUCT_DIR)/>(nexe_target)_pnacl.nmf', |
| 187 }, | 187 }, |
| 188 # Shim is a dependency for the nexe because we pre-translate. | 188 # Shim is a dependency for the nexe because we pre-translate. |
| 189 'dependencies': [ | 189 'dependencies': [ |
| 190 '<(DEPTH)/ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_irt
_shim.gyp:shim_aot', | 190 '<(DEPTH)/ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_irt
_shim.gyp:aot', |
| 191 ], | 191 ], |
| 192 'actions': [ | 192 'actions': [ |
| 193 { | 193 { |
| 194 'action_name': 'Generate PNACL NEWLIB NMF', | 194 'action_name': 'Generate PNACL NEWLIB NMF', |
| 195 # NOTE: create_nmf must be first, it is the script python executes | 195 # NOTE: create_nmf must be first, it is the script python executes |
| 196 # below. | 196 # below. |
| 197 'inputs': [ | 197 'inputs': [ |
| 198 '>(create_nmf)', | 198 '>(create_nmf)', |
| 199 '>(out_pnacl_newlib_x86_32_nexe)', | 199 '>(out_pnacl_newlib_x86_32_nexe)', |
| 200 '>(out_pnacl_newlib_x86_64_nexe)' | 200 '>(out_pnacl_newlib_x86_64_nexe)' |
| (...skipping 28 matching lines...) Expand all Loading... |
| 229 }, | 229 }, |
| 230 ], | 230 ], |
| 231 }], | 231 }], |
| 232 ['disable_pnacl==0 and target_arch=="arm"', { | 232 ['disable_pnacl==0 and target_arch=="arm"', { |
| 233 'variables': { | 233 'variables': { |
| 234 'build_pnacl_newlib': 1, | 234 'build_pnacl_newlib': 1, |
| 235 'nmf_pnacl%': '<(PRODUCT_DIR)/>(nexe_target)_pnacl.nmf', | 235 'nmf_pnacl%': '<(PRODUCT_DIR)/>(nexe_target)_pnacl.nmf', |
| 236 }, | 236 }, |
| 237 # Shim is a dependency for the nexe because we pre-translate. | 237 # Shim is a dependency for the nexe because we pre-translate. |
| 238 'dependencies': [ | 238 'dependencies': [ |
| 239 '<(DEPTH)/ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_irt
_shim.gyp:shim_aot', | 239 '<(DEPTH)/ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_irt
_shim.gyp:aot', |
| 240 ], | 240 ], |
| 241 'actions': [ | 241 'actions': [ |
| 242 { | 242 { |
| 243 'action_name': 'Generate PNACL NEWLIB NMF', | 243 'action_name': 'Generate PNACL NEWLIB NMF', |
| 244 # NOTE: create_nmf must be first, it is the script python executes | 244 # NOTE: create_nmf must be first, it is the script python executes |
| 245 # below. | 245 # below. |
| 246 'inputs': ['>(create_nmf)', '>(out_pnacl_newlib_arm_nexe)'], | 246 'inputs': ['>(create_nmf)', '>(out_pnacl_newlib_arm_nexe)'], |
| 247 'outputs': ['>(nmf_pnacl)'], | 247 'outputs': ['>(nmf_pnacl)'], |
| 248 'action': [ | 248 'action': [ |
| 249 'python', | 249 'python', |
| 250 '>@(_inputs)', | 250 '>@(_inputs)', |
| 251 '--output=>(nmf_pnacl)', | 251 '--output=>(nmf_pnacl)', |
| 252 ], | 252 ], |
| 253 }, | 253 }, |
| 254 ], | 254 ], |
| 255 }], | 255 }], |
| 256 ['disable_pnacl==0 and target_arch=="mipsel"', { | 256 ['disable_pnacl==0 and target_arch=="mipsel"', { |
| 257 'variables': { | 257 'variables': { |
| 258 'build_pnacl_newlib': 1, | 258 'build_pnacl_newlib': 1, |
| 259 'nmf_pnacl%': '<(PRODUCT_DIR)/>(nexe_target)_pnacl.nmf', | 259 'nmf_pnacl%': '<(PRODUCT_DIR)/>(nexe_target)_pnacl.nmf', |
| 260 }, | 260 }, |
| 261 # Shim is a dependency for the nexe because we pre-translate. | 261 # Shim is a dependency for the nexe because we pre-translate. |
| 262 'dependencies': [ | 262 'dependencies': [ |
| 263 '<(DEPTH)/ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_irt
_shim.gyp:shim_aot', | 263 '<(DEPTH)/ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_irt
_shim.gyp:aot', |
| 264 ], | 264 ], |
| 265 'actions': [ | 265 'actions': [ |
| 266 { | 266 { |
| 267 'action_name': 'Generate PNACL NEWLIB NMF', | 267 'action_name': 'Generate PNACL NEWLIB NMF', |
| 268 'inputs': ['>(create_nmf)', '>(out_pnacl_newlib_mips_nexe)'], | 268 'inputs': ['>(create_nmf)', '>(out_pnacl_newlib_mips_nexe)'], |
| 269 'outputs': ['>(nmf_pnacl)'], | 269 'outputs': ['>(nmf_pnacl)'], |
| 270 'action': [ | 270 'action': [ |
| 271 'python', | 271 'python', |
| 272 '>@(_inputs)', | 272 '>@(_inputs)', |
| 273 '--output=>(nmf_pnacl)', | 273 '--output=>(nmf_pnacl)', |
| 274 ], | 274 ], |
| 275 }, | 275 }, |
| 276 ], | 276 ], |
| 277 }], | 277 }], |
| 278 ], | 278 ], |
| 279 }, | 279 }, |
| 280 ], | 280 ], |
| 281 } | 281 } |
| OLD | NEW |