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

Side by Side Diff: ports/gdb/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/gc/build.sh ('k') | ports/giflib/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) 2012 The Native Client Authors. All rights reserved. 2 # Copyright (c) 2012 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 BuildStep() { 7 BuildStep() {
10 Banner "Building ${PACKAGE_NAME}" 8 Banner "Building ${PACKAGE_NAME}"
11 make all 9 make all
12 } 10 }
13 11
14 InstallStep() { 12 InstallStep() {
15 Banner "Installing ${PACKAGE_NAME}" 13 Banner "Installing ${PACKAGE_NAME}"
16 make install 14 make install
17 15
(...skipping 26 matching lines...) Expand all
44 export CFLAGS=${NACLPORTS_CFLAGS} 42 export CFLAGS=${NACLPORTS_CFLAGS}
45 export CXXFLAGS=${NACLPORTS_CXXFLAGS} 43 export CXXFLAGS=${NACLPORTS_CXXFLAGS}
46 export LDFLAGS=${NACLPORTS_LDFLAGS} 44 export LDFLAGS=${NACLPORTS_LDFLAGS}
47 export AR=${NACLAR} 45 export AR=${NACLAR}
48 export RANLIB=${NACLRANLIB} 46 export RANLIB=${NACLRANLIB}
49 export PKG_CONFIG_PATH=${NACLPORTS_LIBDIR}/pkgconfig 47 export PKG_CONFIG_PATH=${NACLPORTS_LIBDIR}/pkgconfig
50 export PKG_CONFIG_LIBDIR=${NACLPORTS_LIBDIR} 48 export PKG_CONFIG_LIBDIR=${NACLPORTS_LIBDIR}
51 export PATH=${NACL_BIN_PATH}:${PATH}; 49 export PATH=${NACL_BIN_PATH}:${PATH};
52 export NACLPORTS_INCLUDE 50 export NACLPORTS_INCLUDE
53 51
54 local SRC_DIR=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR}
55 local DEFAULT_BUILD_DIR=${SRC_DIR}/${NACL_BUILD_SUBDIR}
56 local BUILD_DIR=${NACL_BUILD_DIR:-${DEFAULT_BUILD_DIR}}
57 MakeDir ${BUILD_DIR} 52 MakeDir ${BUILD_DIR}
58 ChangeDir ${BUILD_DIR} 53 ChangeDir ${BUILD_DIR}
59 echo "Directory: $(pwd)" 54 echo "Directory: $(pwd)"
60 55
61 cp ${START_DIR}/gdb_pepper.cc ${SRC_DIR}/gdb 56 cp ${START_DIR}/gdb_pepper.cc ${SRC_DIR}/gdb
62 ../configure --with-curses --with-expat --with-system-readline \ 57 ../configure --with-curses --with-expat --with-system-readline \
63 --disable-libmcheck \ 58 --disable-libmcheck \
64 --prefix=${NACLPORTS_PREFIX} \ 59 --prefix=${NACLPORTS_PREFIX} \
65 --exec-prefix=${NACLPORTS_PREFIX} \ 60 --exec-prefix=${NACLPORTS_PREFIX} \
66 --host=${NACL_CROSS_PREFIX} \ 61 --host=${NACL_CROSS_PREFIX} \
67 --libdir=${NACLPORTS_LIBDIR} 62 --libdir=${NACLPORTS_LIBDIR}
68 63
69 # If the .info files don't exist, "make all" will try to recreate it with the 64 # If the .info files don't exist, "make all" will try to recreate it with the
70 # "makeinfo" tool, which isn't normally installed. 65 # "makeinfo" tool, which isn't normally installed.
71 # Just copy the ones from the repo to the build directory. 66 # Just copy the ones from the repo to the build directory.
72 mkdir -p ${BUILD_DIR}/{gdb,bfd}/doc 67 mkdir -p ${BUILD_DIR}/{gdb,bfd}/doc
73 pushd ${SRC_DIR} 68 pushd ${SRC_DIR}
74 find gdb bfd -name '*.info' -exec cp {} ${BUILD_DIR}/{} \; 69 find gdb bfd -name '*.info' -exec cp {} ${BUILD_DIR}/{} \;
75 popd 70 popd
76 } 71 }
77
78 PackageInstall
79 exit 0
OLDNEW
« no previous file with comments | « ports/gc/build.sh ('k') | ports/giflib/build.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698