| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 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 source pkg_info | |
| 7 source ../../build_tools/common.sh | |
| 8 | 6 |
| 9 EXECUTABLES=python${NACL_EXEEXT} | 7 EXECUTABLES=python${NACL_EXEEXT} |
| 10 | 8 |
| 11 # Currently this package only builds on linux. | 9 # Currently this package only builds on linux. |
| 12 # The build relies on certain host binaries and python's configure | 10 # The build relies on certain host binaries and python's configure |
| 13 # requires us to set --build= as well as --host=. | 11 # requires us to set --build= as well as --host=. |
| 14 | 12 |
| 15 BuildHostPython() { | 13 BuildHostPython() { |
| 16 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR} | 14 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR} |
| 17 MakeDir build-nacl-host | 15 MakeDir build-nacl-host |
| (...skipping 30 matching lines...) Expand all Loading... |
| 48 } | 46 } |
| 49 | 47 |
| 50 TestStep() { | 48 TestStep() { |
| 51 if [ ${NACL_ARCH} != "pnacl" ]; then | 49 if [ ${NACL_ARCH} != "pnacl" ]; then |
| 52 WriteSelLdrScript python python${NACL_EXEEXT} | 50 WriteSelLdrScript python python${NACL_EXEEXT} |
| 53 else | 51 else |
| 54 local pexe=python${NACL_EXEEXT} | 52 local pexe=python${NACL_EXEEXT} |
| 55 TranslateAndWriteSelLdrScript ${pexe} x86-64 python.x86-64.nexe python | 53 TranslateAndWriteSelLdrScript ${pexe} x86-64 python.x86-64.nexe python |
| 56 fi | 54 fi |
| 57 } | 55 } |
| 58 | |
| 59 PackageInstall | |
| 60 exit 0 | |
| OLD | NEW |