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

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

Issue 132343007: Add top level build script for building packages. (Closed) Base URL: https://naclports.googlecode.com/svn/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « ports/tinyxml/build.sh ('k') | ports/webp/build.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 export EXTRA_LIBS="-ltar -lppapi_simple -lnacl_io \ 7 export EXTRA_LIBS="-ltar -lppapi_simple -lnacl_io \
10 -lppapi -lppapi_cpp -l${NACL_CPP_LIB}" 8 -lppapi -lppapi_cpp -l${NACL_CPP_LIB}"
11 EXECUTABLES=src/vim 9 EXECUTABLES=src/vim
12 10
13 PatchStep() { 11 PatchStep() {
14 DefaultPatchStep 12 DefaultPatchStep
15 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR} 13 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR}
16 cp ${START_DIR}/vim_pepper.c src/vim_pepper.c 14 cp ${START_DIR}/vim_pepper.c src/vim_pepper.c
17 } 15 }
18 16
19 ConfigureStep() { 17 ConfigureStep() {
20 export vim_cv_toupper_broken=1 18 export vim_cv_toupper_broken=1
21 export vim_cv_terminfo=yes 19 export vim_cv_terminfo=yes
22 export vim_cv_tty_mode=1 20 export vim_cv_tty_mode=1
23 export vim_cv_tty_group=1 21 export vim_cv_tty_group=1
24 export vim_cv_getcwd_broken=yes 22 export vim_cv_getcwd_broken=yes
25 export vim_cv_stat_ignores_slash=yes 23 export vim_cv_stat_ignores_slash=yes
26 export vim_cv_memmove_handles_overlap=yes 24 export vim_cv_memmove_handles_overlap=yes
27 if [ "${NACL_DEBUG}" == "1" ]; then 25 if [ "${NACL_DEBUG}" == "1" ]; then
28 export STRIP=echo 26 export STRIP=echo
29 else 27 else
30 export STRIP=${NACLSTRIP} 28 export STRIP=${NACLSTRIP}
31 fi 29 fi
32 export NACL_BUILD_DIR=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR} 30 export BUILD_DIR=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR}
33 export NACL_CONFIGURE_PATH=./configure 31 export NACL_CONFIGURE_PATH=./configure
34 DefaultConfigureStep --with-tlib=ncurses --prefix= --exec-prefix= 32 DefaultConfigureStep --with-tlib=ncurses --prefix= --exec-prefix=
35 # Vim's build doesn't support building outside the source tree. 33 # Vim's build doesn't support building outside the source tree.
36 # Do a clean to make rebuild after failure predictable. 34 # Do a clean to make rebuild after failure predictable.
37 LogExecute make clean 35 LogExecute make clean
38 } 36 }
39 37
40 InstallStep() { 38 InstallStep() {
41 MakeDir ${PUBLISH_DIR} 39 MakeDir ${PUBLISH_DIR}
42 local ASSEMBLY_DIR="${PUBLISH_DIR}/vim" 40 local ASSEMBLY_DIR="${PUBLISH_DIR}/vim"
(...skipping 16 matching lines...) Expand all
59 57
60 InstallNaClTerm ${ASSEMBLY_DIR} 58 InstallNaClTerm ${ASSEMBLY_DIR}
61 LogExecute cp ${START_DIR}/manifest.json ${ASSEMBLY_DIR} 59 LogExecute cp ${START_DIR}/manifest.json ${ASSEMBLY_DIR}
62 LogExecute cp ${START_DIR}/background.js ${ASSEMBLY_DIR} 60 LogExecute cp ${START_DIR}/background.js ${ASSEMBLY_DIR}
63 LogExecute cp ${START_DIR}/icon_16.png ${ASSEMBLY_DIR} 61 LogExecute cp ${START_DIR}/icon_16.png ${ASSEMBLY_DIR}
64 LogExecute cp ${START_DIR}/icon_48.png ${ASSEMBLY_DIR} 62 LogExecute cp ${START_DIR}/icon_48.png ${ASSEMBLY_DIR}
65 LogExecute cp ${START_DIR}/icon_128.png ${ASSEMBLY_DIR} 63 LogExecute cp ${START_DIR}/icon_128.png ${ASSEMBLY_DIR}
66 ChangeDir ${PUBLISH_DIR} 64 ChangeDir ${PUBLISH_DIR}
67 LogExecute zip -r vim-7.3.zip vim 65 LogExecute zip -r vim-7.3.zip vim
68 } 66 }
69
70 PackageInstall
71 exit 0
OLDNEW
« no previous file with comments | « ports/tinyxml/build.sh ('k') | ports/webp/build.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698