| OLD | NEW |
| 1 # Copyright (c) 2013 The Native Client Authors. All rights reserved. | 1 # Copyright (c) 2013 The Native Client 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 EXECUTABLES=python${NACL_EXEEXT} | 5 EXECUTABLES=python${NACL_EXEEXT} |
| 6 | 6 |
| 7 # This build relies on certain host binaries and python's configure | 7 # This build relies on certain host binaries and python's configure |
| 8 # requires us to set --build= as well as --host=. | 8 # requires us to set --build= as well as --host=. |
| 9 HOST_BUILD_DIR=${WORK_DIR}/build_host | 9 HOST_BUILD_DIR=${WORK_DIR}/build_host |
| 10 | 10 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 export MAKEFLAGS="PGEN=${NACL_HOST_PYBUILD}/Parser/pgen" | 56 export MAKEFLAGS="PGEN=${NACL_HOST_PYBUILD}/Parser/pgen" |
| 57 SetupCrossEnvironment | 57 SetupCrossEnvironment |
| 58 DefaultBuildStep | 58 DefaultBuildStep |
| 59 } | 59 } |
| 60 | 60 |
| 61 InstallStep() { | 61 InstallStep() { |
| 62 export CROSS_COMPILE=true | 62 export CROSS_COMPILE=true |
| 63 DefaultInstallStep | 63 DefaultInstallStep |
| 64 } | 64 } |
| 65 | 65 |
| 66 TestStep() { | |
| 67 if [ ${NACL_ARCH} = "pnacl" ]; then | |
| 68 local pexe=python${NACL_EXEEXT} | |
| 69 local script=python | |
| 70 # on Mac/Windows the folder called Python prevents us from creating a | |
| 71 # script called python (lowercase). | |
| 72 if [ ${OS_NAME} != "Linux" ]; then | |
| 73 script+=".sh" | |
| 74 fi | |
| 75 TranslateAndWriteLauncherScript ${pexe} x86-64 python.x86-64.nexe ${script} | |
| 76 fi | |
| 77 } | |
| 78 | |
| 79 PublishStep() { | 66 PublishStep() { |
| 80 MakeDir ${PUBLISH_DIR} | 67 MakeDir ${PUBLISH_DIR} |
| 81 | 68 |
| 82 PublishMultiArch python${NACL_EXEEXT} python | 69 PublishMultiArch python${NACL_EXEEXT} python |
| 83 ChangeDir ${PUBLISH_DIR} | 70 ChangeDir ${PUBLISH_DIR} |
| 84 if [[ $TOOLCHAIN == pnacl ]]; then | 71 if [[ $TOOLCHAIN == pnacl ]]; then |
| 85 local tar_file=pydata.tar | 72 local tar_file=pydata.tar |
| 86 else | 73 else |
| 87 local tar_file=_platform_specific/${NACL_ARCH}/pydata.tar | 74 local tar_file=_platform_specific/${NACL_ARCH}/pydata.tar |
| 88 fi | 75 fi |
| (...skipping 13 matching lines...) Expand all Loading... |
| 102 InstallNaClTerm ${PUBLISH_DIR} | 89 InstallNaClTerm ${PUBLISH_DIR} |
| 103 LogExecute cp ${START_DIR}/background.js ${PUBLISH_DIR} | 90 LogExecute cp ${START_DIR}/background.js ${PUBLISH_DIR} |
| 104 LogExecute cp ${START_DIR}/python.js ${PUBLISH_DIR} | 91 LogExecute cp ${START_DIR}/python.js ${PUBLISH_DIR} |
| 105 LogExecute cp ${START_DIR}/index.html ${PUBLISH_DIR} | 92 LogExecute cp ${START_DIR}/index.html ${PUBLISH_DIR} |
| 106 LogExecute cp ${START_DIR}/icon_16.png ${PUBLISH_DIR} | 93 LogExecute cp ${START_DIR}/icon_16.png ${PUBLISH_DIR} |
| 107 LogExecute cp ${START_DIR}/icon_48.png ${PUBLISH_DIR} | 94 LogExecute cp ${START_DIR}/icon_48.png ${PUBLISH_DIR} |
| 108 LogExecute cp ${START_DIR}/icon_128.png ${PUBLISH_DIR} | 95 LogExecute cp ${START_DIR}/icon_128.png ${PUBLISH_DIR} |
| 109 ChangeDir ${PUBLISH_DIR} | 96 ChangeDir ${PUBLISH_DIR} |
| 110 CreateWebStoreZip python-${VERSION}.zip . | 97 CreateWebStoreZip python-${VERSION}.zip . |
| 111 } | 98 } |
| OLD | NEW |