OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 # Copyright (c) 2013 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2013 The Native Client Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 """Recipes for PNaCl toolchain packages. | 6 """Recipes for PNaCl toolchain packages. |
7 | 7 |
8 Recipes consist of specially-structured dictionaries, with keys for package | 8 Recipes consist of specially-structured dictionaries, with keys for package |
9 name, type, commands to execute, etc. The structure is documented in the | 9 name, type, commands to execute, etc. The structure is documented in the |
10 PackageBuilder docstring in toolchain_main.py. | 10 PackageBuilder docstring in toolchain_main.py. |
(...skipping 1190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1201 if os_name != 'win': | 1201 if os_name != 'win': |
1202 host_packages[os_name].append('libcxx_%s' % legal_triple) | 1202 host_packages[os_name].append('libcxx_%s' % legal_triple) |
1203 | 1203 |
1204 # Unsandboxed target IRT libraries | 1204 # Unsandboxed target IRT libraries |
1205 for os_name in ['linux', 'mac']: | 1205 for os_name in ['linux', 'mac']: |
1206 legal_triple = pynacl.gsd_storage.LegalizeName('x86-32-' + os_name) | 1206 legal_triple = pynacl.gsd_storage.LegalizeName('x86-32-' + os_name) |
1207 host_packages[os_name].append('unsandboxed_runtime_%s' % legal_triple) | 1207 host_packages[os_name].append('unsandboxed_runtime_%s' % legal_triple) |
1208 for os_name in ['linux']: | 1208 for os_name in ['linux']: |
1209 legal_triple = pynacl.gsd_storage.LegalizeName('arm-' + os_name) | 1209 legal_triple = pynacl.gsd_storage.LegalizeName('arm-' + os_name) |
1210 host_packages[os_name].append('unsandboxed_runtime_%s' % legal_triple) | 1210 host_packages[os_name].append('unsandboxed_runtime_%s' % legal_triple) |
| 1211 for os_name in ['linux']: |
| 1212 legal_triple = pynacl.gsd_storage.LegalizeName('x86-64-' + os_name) |
| 1213 host_packages[os_name].append('unsandboxed_runtime_%s' % legal_triple) |
1211 | 1214 |
1212 for os_name, os_packages in host_packages.iteritems(): | 1215 for os_name, os_packages in host_packages.iteritems(): |
1213 package_target = '%s_x86' % pynacl.platform.GetOS(os_name) | 1216 package_target = '%s_x86' % pynacl.platform.GetOS(os_name) |
1214 package_targets[package_target] = {} | 1217 package_targets[package_target] = {} |
1215 | 1218 |
1216 raw_packages = os_packages + common_raw_packages | 1219 raw_packages = os_packages + common_raw_packages |
1217 package_targets[package_target]['pnacl_newlib_raw'] = raw_packages | 1220 package_targets[package_target]['pnacl_newlib_raw'] = raw_packages |
1218 | 1221 |
1219 complete_packages = raw_packages + common_complete_packages | 1222 complete_packages = raw_packages + common_complete_packages |
1220 package_targets[package_target]['pnacl_newlib'] = complete_packages | 1223 package_targets[package_target]['pnacl_newlib'] = complete_packages |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1336 packages.update(Metadata(rev, is_canonical)) | 1339 packages.update(Metadata(rev, is_canonical)) |
1337 packages.update(pnacl_targetlibs.SDKCompiler( | 1340 packages.update(pnacl_targetlibs.SDKCompiler( |
1338 ['le32'] + DIRECT_TO_NACL_ARCHES)) | 1341 ['le32'] + DIRECT_TO_NACL_ARCHES)) |
1339 packages.update(pnacl_targetlibs.SDKLibs('le32', is_canonical)) | 1342 packages.update(pnacl_targetlibs.SDKLibs('le32', is_canonical)) |
1340 unsandboxed_runtime_canonical = is_canonical or pynacl.platform.IsMac() | 1343 unsandboxed_runtime_canonical = is_canonical or pynacl.platform.IsMac() |
1341 packages.update(pnacl_targetlibs.UnsandboxedRuntime( | 1344 packages.update(pnacl_targetlibs.UnsandboxedRuntime( |
1342 'x86-32-%s' % pynacl.platform.GetOS(), unsandboxed_runtime_canonical)) | 1345 'x86-32-%s' % pynacl.platform.GetOS(), unsandboxed_runtime_canonical)) |
1343 if pynacl.platform.IsLinux(): | 1346 if pynacl.platform.IsLinux(): |
1344 packages.update(pnacl_targetlibs.UnsandboxedRuntime( | 1347 packages.update(pnacl_targetlibs.UnsandboxedRuntime( |
1345 'arm-%s' % pynacl.platform.GetOS(), unsandboxed_runtime_canonical)) | 1348 'arm-%s' % pynacl.platform.GetOS(), unsandboxed_runtime_canonical)) |
| 1349 packages.update(pnacl_targetlibs.UnsandboxedRuntime( |
| 1350 'x86-64-%s' % pynacl.platform.GetOS(), unsandboxed_runtime_canonical)) |
1346 | 1351 |
1347 if args.build_sbtc and not args.pnacl_in_pnacl: | 1352 if args.build_sbtc and not args.pnacl_in_pnacl: |
1348 packages.update(pnacl_sandboxed_translator.SandboxedTranslators( | 1353 packages.update(pnacl_sandboxed_translator.SandboxedTranslators( |
1349 SANDBOXED_TRANSLATOR_ARCHES)) | 1354 SANDBOXED_TRANSLATOR_ARCHES)) |
1350 | 1355 |
1351 tb = toolchain_main.PackageBuilder(packages, | 1356 tb = toolchain_main.PackageBuilder(packages, |
1352 upload_packages, | 1357 upload_packages, |
1353 leftover_args) | 1358 leftover_args) |
1354 return tb.Main() | 1359 return tb.Main() |
1355 | 1360 |
1356 | 1361 |
1357 if __name__ == '__main__': | 1362 if __name__ == '__main__': |
1358 sys.exit(main()) | 1363 sys.exit(main()) |
OLD | NEW |