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 # ARM on ARM platforms, or MIPS on MIPS platforms, not all | 179 # ARM on ARM platforms, or MIPS on MIPS platforms, not all |
180 # versions always. | 180 # versions always. |
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_aot', | 189 '<(DEPTH)/ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_irt
_shim.gyp: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)' |
(...skipping 14 matching lines...) Expand all Loading... |
214 'enable_x86_32_nonsfi': 1, | 214 'enable_x86_32_nonsfi': 1, |
215 }, | 215 }, |
216 }], | 216 }], |
217 ['disable_pnacl==0 and target_arch=="arm"', { | 217 ['disable_pnacl==0 and target_arch=="arm"', { |
218 'variables': { | 218 'variables': { |
219 'build_pnacl_newlib': 1, | 219 'build_pnacl_newlib': 1, |
220 'nmf_pnacl%': '<(PRODUCT_DIR)/>(nexe_target)_pnacl.nmf', | 220 'nmf_pnacl%': '<(PRODUCT_DIR)/>(nexe_target)_pnacl.nmf', |
221 }, | 221 }, |
222 # Shim is a dependency for the nexe because we pre-translate. | 222 # Shim is a dependency for the nexe because we pre-translate. |
223 'dependencies': [ | 223 'dependencies': [ |
224 '<(DEPTH)/ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_irt
_shim.gyp:pnacl_irt_shim_aot', | 224 '<(DEPTH)/ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_irt
_shim.gyp:shim_aot', |
225 ], | 225 ], |
226 'actions': [ | 226 'actions': [ |
227 { | 227 { |
228 'action_name': 'Generate PNACL NEWLIB NMF', | 228 'action_name': 'Generate PNACL NEWLIB NMF', |
229 # NOTE: create_nmf must be first, it is the script python executes | 229 # NOTE: create_nmf must be first, it is the script python executes |
230 # below. | 230 # below. |
231 'inputs': ['>(create_nmf)', '>(out_pnacl_newlib_arm_nexe)'], | 231 'inputs': ['>(create_nmf)', '>(out_pnacl_newlib_arm_nexe)'], |
232 'outputs': ['>(nmf_pnacl)'], | 232 'outputs': ['>(nmf_pnacl)'], |
233 'action': [ | 233 'action': [ |
234 'python', | 234 'python', |
235 '>@(_inputs)', | 235 '>@(_inputs)', |
236 '--output=>(nmf_pnacl)', | 236 '--output=>(nmf_pnacl)', |
237 ], | 237 ], |
238 }, | 238 }, |
239 ], | 239 ], |
240 }], | 240 }], |
241 ['disable_pnacl==0 and target_arch=="mipsel"', { | 241 ['disable_pnacl==0 and target_arch=="mipsel"', { |
242 'variables': { | 242 'variables': { |
243 'build_pnacl_newlib': 1, | 243 'build_pnacl_newlib': 1, |
244 'nmf_pnacl%': '<(PRODUCT_DIR)/>(nexe_target)_pnacl.nmf', | 244 'nmf_pnacl%': '<(PRODUCT_DIR)/>(nexe_target)_pnacl.nmf', |
245 }, | 245 }, |
246 # Shim is a dependency for the nexe because we pre-translate. | 246 # Shim is a dependency for the nexe because we pre-translate. |
247 'dependencies': [ | 247 'dependencies': [ |
248 '<(DEPTH)/ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_irt
_shim.gyp:pnacl_irt_shim_aot', | 248 '<(DEPTH)/ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_irt
_shim.gyp:shim_aot', |
249 ], | 249 ], |
250 'actions': [ | 250 'actions': [ |
251 { | 251 { |
252 'action_name': 'Generate PNACL NEWLIB NMF', | 252 'action_name': 'Generate PNACL NEWLIB NMF', |
253 'inputs': ['>(create_nmf)', '>(out_pnacl_newlib_mips_nexe)'], | 253 'inputs': ['>(create_nmf)', '>(out_pnacl_newlib_mips_nexe)'], |
254 'outputs': ['>(nmf_pnacl)'], | 254 'outputs': ['>(nmf_pnacl)'], |
255 'action': [ | 255 'action': [ |
256 'python', | 256 'python', |
257 '>@(_inputs)', | 257 '>@(_inputs)', |
258 '--output=>(nmf_pnacl)', | 258 '--output=>(nmf_pnacl)', |
259 ], | 259 ], |
260 }, | 260 }, |
261 ], | 261 ], |
262 }], | 262 }], |
263 ], | 263 ], |
264 }, | 264 }, |
265 ], | 265 ], |
266 } | 266 } |
OLD | NEW |