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

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

Issue 1666763002: Ensure configure comes from autogen.sh (Closed) Base URL: https://chromium.googlesource.com/webports.git@master
Patch Set: revise Created 4 years, 10 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 # NOTE: This build doesn't work in parallel. 5 # NOTE: This build doesn't work in parallel.
6 OS_JOBS=1 6 OS_JOBS=1
7 7
8 # This build relies on certain host binaries. 8 # This build relies on certain host binaries.
9 HOST_BUILD_DIR=${WORK_DIR}/build_host 9 HOST_BUILD_DIR=${WORK_DIR}/build_host
10 HOST_INSTALL_DIR=${WORK_DIR}/install_host 10 HOST_INSTALL_DIR=${WORK_DIR}/install_host
(...skipping 11 matching lines...) Expand all
22 Banner "Building ${PACKAGE_NAME} for host" 22 Banner "Building ${PACKAGE_NAME} for host"
23 MakeDir ${HOST_BUILD_DIR} 23 MakeDir ${HOST_BUILD_DIR}
24 ChangeDir ${HOST_BUILD_DIR} 24 ChangeDir ${HOST_BUILD_DIR}
25 CC="gcc -m32" LogExecute ${SRC_DIR}/configure --prefix=${HOST_INSTALL_DIR} 25 CC="gcc -m32" LogExecute ${SRC_DIR}/configure --prefix=${HOST_INSTALL_DIR}
26 LogExecute make -j${OS_JOBS} 26 LogExecute make -j${OS_JOBS}
27 LogExecute make install 27 LogExecute make install
28 } 28 }
29 29
30 ConfigureStep() { 30 ConfigureStep() {
31 ChangeDir ${SRC_DIR} 31 ChangeDir ${SRC_DIR}
32 ./autogen.sh 32 LogExecute ./autogen.sh
33 if ! grep '# NOTE: Disabling this, as it prevents sharing' configure; then
34 echo "Autoconf failed to properly update configure"
35 exit 1
36 fi
33 BuildHostGforth 37 BuildHostGforth
34 Banner "Building ${PACKAGE_NAME} for NaCl" 38 Banner "Building ${PACKAGE_NAME} for NaCl"
35 export PATH="${HOST_INSTALL_DIR}/bin:${PATH}" 39 export PATH="${HOST_INSTALL_DIR}/bin:${PATH}"
36 host_gforth=$(which gforth) 40 host_gforth=$(which gforth)
37 if [[ -z $host_gforth ]]; then 41 if [[ -z $host_gforth ]]; then
38 echo "Failed to find host version of gforth" 42 echo "Failed to find host version of gforth"
39 exit 1 43 exit 1
40 else 44 else
41 echo "Host gforth found at: $(which gforth)" 45 echo "Host gforth found at: $(which gforth)"
42 fi 46 fi
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 LogExecute python ${TOOLS_DIR}/create_term.py gforth.nmf 82 LogExecute python ${TOOLS_DIR}/create_term.py gforth.nmf
79 83
80 InstallNaClTerm ${PUBLISH_DIR} 84 InstallNaClTerm ${PUBLISH_DIR}
81 85
82 cp ${START_DIR}/gforth.js ${PUBLISH_DIR}/ 86 cp ${START_DIR}/gforth.js ${PUBLISH_DIR}/
83 87
84 ChangeDir ${PUBLISH_DIR} 88 ChangeDir ${PUBLISH_DIR}
85 Remove gforth.zip 89 Remove gforth.zip
86 LogExecute zip -r gforth.zip . 90 LogExecute zip -r gforth.zip .
87 } 91 }
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