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

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

Issue 857213002: devenv: fix name of webstore zip file (Closed) Base URL: https://chromium.googlesource.com/external/naclports.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2014 The Native Client Authors. All rights reserved. 1 # Copyright (c) 2014 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 export EXTRA_LIBS="${NACL_CLI_MAIN_LIB} \ 5 export EXTRA_LIBS="${NACL_CLI_MAIN_LIB} \
6 -lnacl_spawn -lppapi_simple \ 6 -lnacl_spawn -lppapi_simple \
7 -lnacl_io -lppapi -lppapi_cpp -l${NACL_CPP_LIB}" 7 -lnacl_io -lppapi -lppapi_cpp -l${NACL_CPP_LIB}"
8 8
9 EXECUTABLES="tests/devenv_small_test_${NACL_ARCH}${NACL_EXEEXT} \ 9 EXECUTABLES="tests/devenv_small_test_${NACL_ARCH}${NACL_EXEEXT} \
10 jseval/jseval_${NACL_ARCH}${NACL_EXEEXT}" 10 jseval/jseval_${NACL_ARCH}${NACL_EXEEXT}"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 ${START_DIR}/key.txt 77 ${START_DIR}/key.txt
78 78
79 # Create uploadable version (key not included). 79 # Create uploadable version (key not included).
80 local APP_UPLOAD_DIR="${PUBLISH_DIR}/devenv_app_upload" 80 local APP_UPLOAD_DIR="${PUBLISH_DIR}/devenv_app_upload"
81 rm -rf ${APP_UPLOAD_DIR} 81 rm -rf ${APP_UPLOAD_DIR}
82 LogExecute cp -r ${APP_DIR} ${APP_UPLOAD_DIR} 82 LogExecute cp -r ${APP_DIR} ${APP_UPLOAD_DIR}
83 GenerateManifest ${START_DIR}/manifest.json.template ${APP_UPLOAD_DIR} 83 GenerateManifest ${START_DIR}/manifest.json.template ${APP_UPLOAD_DIR}
84 84
85 # Zip the full app for upload. 85 # Zip the full app for upload.
86 ChangeDir ${PUBLISH_DIR} 86 ChangeDir ${PUBLISH_DIR}
87 CreateWebStoreZip devenv_small_test.zip devenv_app_upload 87 CreateWebStoreZip devenv_app_upload.zip devenv_app_upload
88 88
89 # Copy the files for DevEnvWidget. 89 # Copy the files for DevEnvWidget.
90 local WIDGET_DIR=${PUBLISH_DIR}/devenvwidget 90 local WIDGET_DIR=${PUBLISH_DIR}/devenvwidget
91 MakeDir ${WIDGET_DIR} 91 MakeDir ${WIDGET_DIR}
92 LogExecute cp -r ${START_DIR}/devenvwidget/* ${WIDGET_DIR} 92 LogExecute cp -r ${START_DIR}/devenvwidget/* ${WIDGET_DIR}
93 93
94 # Install tests. 94 # Install tests.
95 MakeDir ${PUBLISH_DIR}/tests 95 MakeDir ${PUBLISH_DIR}/tests
96 LogExecute cp -r ${BUILD_DIR}/tests/* ${PUBLISH_DIR}/tests 96 LogExecute cp -r ${BUILD_DIR}/tests/* ${PUBLISH_DIR}/tests
97 cd ${PUBLISH_DIR}/tests 97 cd ${PUBLISH_DIR}/tests
98 if [ "${NACL_ARCH}" = "pnacl" ]; then 98 if [ "${NACL_ARCH}" = "pnacl" ]; then
99 LogExecute ${PNACLFINALIZE} devenv_small_test_${NACL_ARCH}${NACL_EXEEXT} 99 LogExecute ${PNACLFINALIZE} devenv_small_test_${NACL_ARCH}${NACL_EXEEXT}
100 fi 100 fi
101 LogExecute python ${NACL_SDK_ROOT}/tools/create_nmf.py \ 101 LogExecute python ${NACL_SDK_ROOT}/tools/create_nmf.py \
102 devenv_small_test_${NACL_ARCH}${NACL_EXEEXT} \ 102 devenv_small_test_${NACL_ARCH}${NACL_EXEEXT} \
103 -s . \ 103 -s . \
104 -o devenv_small_test.nmf 104 -o devenv_small_test.nmf
105 LogExecute mv devenv_small_test_${NACL_ARCH}${NACL_EXEEXT} \ 105 LogExecute mv devenv_small_test_${NACL_ARCH}${NACL_EXEEXT} \
106 devenv_small_test_${NACL_ARCH} 106 devenv_small_test_${NACL_ARCH}
107 107
108 CreateWebStoreZip devenv_small_test.zip . 108 Remove devenv_small_test.zip
109 LogExecute zip -r devenv_small_test.zip *
109 } 110 }
110 111
111 PostInstallTestStep() { 112 PostInstallTestStep() {
112 local arches= 113 local arches=
113 if [[ ${OS_NAME} == Darwin && ${NACL_ARCH} == x86_64 ]]; then 114 if [[ ${OS_NAME} == Darwin && ${NACL_ARCH} == x86_64 ]]; then
114 echo "Skipping devenv tests on unsupported mac + x86_64 configuration." 115 echo "Skipping devenv tests on unsupported mac + x86_64 configuration."
115 elif [[ ${NACL_ARCH} == arm ]]; then 116 elif [[ ${NACL_ARCH} == arm ]]; then
116 echo "Skipping devenv tests on arm for now." 117 echo "Skipping devenv tests on arm for now."
117 elif [[ ${NACL_ARCH} == pnacl ]]; then 118 elif [[ ${NACL_ARCH} == pnacl ]]; then
118 arches="i686 x86_64" 119 arches="i686 x86_64"
119 else 120 else
120 arches="${NACL_ARCH}" 121 arches="${NACL_ARCH}"
121 fi 122 fi
122 for arch in ${arches}; do 123 for arch in ${arches}; do
123 LogExecute python ${START_DIR}/devenv_small_test.py -x -vv -a ${arch} 124 LogExecute python ${START_DIR}/devenv_small_test.py -x -vv -a ${arch}
124 if [[ ${NACL_ARCH} == pnacl ]]; then 125 if [[ ${NACL_ARCH} == pnacl ]]; then
125 LogExecute python ${START_DIR}/jseval_test.py -x -vv -a ${arch} 126 LogExecute python ${START_DIR}/jseval_test.py -x -vv -a ${arch}
126 fi 127 fi
127 done 128 done
128 } 129 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698