Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(134)

Side by Side Diff: ports/python3/build.sh

Issue 1556933002: Remove redundant pnacl translations (Closed) Base URL: https://chromium.googlesource.com/webports.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 # Currently this package only builds on linux. 7 # Currently this package only builds on linux.
8 # The build relies on certain host binaries and python's configure 8 # The build relies on certain host binaries and python's configure
9 # requires us to set --build= as well as --host=. 9 # requires us to set --build= as well as --host=.
10 10
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 fi 64 fi
65 } 65 }
66 66
67 BuildStep() { 67 BuildStep() {
68 export CROSS_COMPILE=true 68 export CROSS_COMPILE=true
69 export MAKEFLAGS="PGEN=${HOST_BUILD_DIR}/Parser/pgen" 69 export MAKEFLAGS="PGEN=${HOST_BUILD_DIR}/Parser/pgen"
70 SetupCrossEnvironment 70 SetupCrossEnvironment
71 DefaultBuildStep 71 DefaultBuildStep
72 } 72 }
73 73
74 TestStep() {
75 if [ ${NACL_ARCH} = "pnacl" ]; then
76 local pexe=python${NACL_EXEEXT}
77 local script=python
78 # on Mac/Windows the folder called Python prevents us from creating a
79 # script called python (lowercase).
80 if [ ${OS_NAME} != "Linux" ]; then
81 script+=".sh"
82 fi
83 TranslateAndWriteLauncherScript ${pexe} x86-64 python.x86-64.nexe ${script}
84 fi
85 }
86
87 PublishStep() { 74 PublishStep() {
88 MakeDir ${PUBLISH_DIR} 75 MakeDir ${PUBLISH_DIR}
89 76
90 PublishMultiArch python${NACL_EXEEXT} python 77 PublishMultiArch python${NACL_EXEEXT} python
91 if [[ $TOOLCHAIN == pnacl ]]; then 78 if [[ $TOOLCHAIN == pnacl ]]; then
92 local tar_file=pydata.tar 79 local tar_file=pydata.tar
93 else 80 else
94 local tar_file=_platform_specific/${NACL_ARCH}/pydata.tar 81 local tar_file=_platform_specific/${NACL_ARCH}/pydata.tar
95 fi 82 fi
96 83
97 ChangeDir ${PUBLISH_DIR} 84 ChangeDir ${PUBLISH_DIR}
98 LogExecute tar cf ${tar_file} -C ${INSTALL_DIR}${PREFIX} lib/python3.4 85 LogExecute tar cf ${tar_file} -C ${INSTALL_DIR}${PREFIX} lib/python3.4
99 LogExecute shasum ${tar_file} > ${tar_file}.hash 86 LogExecute shasum ${tar_file} > ${tar_file}.hash
100 87
101 LogExecute python ${TOOLS_DIR}/create_term.py python.nmf 88 LogExecute python ${TOOLS_DIR}/create_term.py python.nmf
102 89
103 GenerateManifest ${START_DIR}/manifest.json ${PUBLISH_DIR} 90 GenerateManifest ${START_DIR}/manifest.json ${PUBLISH_DIR}
104 InstallNaClTerm ${PUBLISH_DIR} 91 InstallNaClTerm ${PUBLISH_DIR}
105 LogExecute cp ${START_DIR}/background.js ${PUBLISH_DIR} 92 LogExecute cp ${START_DIR}/background.js ${PUBLISH_DIR}
106 LogExecute cp ${START_DIR}/python.js ${PUBLISH_DIR} 93 LogExecute cp ${START_DIR}/python.js ${PUBLISH_DIR}
107 LogExecute cp ${START_DIR}/index.html ${PUBLISH_DIR} 94 LogExecute cp ${START_DIR}/index.html ${PUBLISH_DIR}
108 LogExecute cp ${START_DIR}/icon_16.png ${PUBLISH_DIR} 95 LogExecute cp ${START_DIR}/icon_16.png ${PUBLISH_DIR}
109 LogExecute cp ${START_DIR}/icon_48.png ${PUBLISH_DIR} 96 LogExecute cp ${START_DIR}/icon_48.png ${PUBLISH_DIR}
110 LogExecute cp ${START_DIR}/icon_128.png ${PUBLISH_DIR} 97 LogExecute cp ${START_DIR}/icon_128.png ${PUBLISH_DIR}
111 ChangeDir ${PUBLISH_DIR} 98 ChangeDir ${PUBLISH_DIR}
112 CreateWebStoreZip python3-${VERSION}.zip . 99 CreateWebStoreZip python3-${VERSION}.zip .
113 } 100 }
OLDNEW
« ports/jpeg6b/build.sh ('K') | « ports/python/build.sh ('k') | ports/ruby/build.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698