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

Side by Side Diff: ports/git/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/giflib/build.sh ('k') | ports/glib/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 # Do a verbose build so we're confident it's hitting nacl's tools. 7 # Do a verbose build so we're confident it's hitting nacl's tools.
10 export MAKE_TARGETS="V=1" 8 export MAKE_TARGETS="V=1"
11 9
12 export EXTRA_CONFIGURE_ARGS="--prefix= --exec-prefix=" 10 export EXTRA_CONFIGURE_ARGS="--prefix= --exec-prefix="
13 11
14 ConfigureStep() { 12 ConfigureStep() {
15 local SRC_DIR=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR} 13 local SRC_DIR=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR}
16 ChangeDir ${SRC_DIR} 14 ChangeDir ${SRC_DIR}
17 autoconf 15 autoconf
18 16
19 export NACL_BUILD_DIR=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR} 17 export BUILD_DIR=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR}
20 export NACL_CONFIGURE_PATH=./configure 18 export NACL_CONFIGURE_PATH=./configure
21 DefaultConfigureStep 19 DefaultConfigureStep
22 20
23 # Git's build doesn't support building outside the source tree. 21 # Git's build doesn't support building outside the source tree.
24 # Do a clean to make rebuild after failure predictable. 22 # Do a clean to make rebuild after failure predictable.
25 LogExecute make clean 23 LogExecute make clean
26 } 24 }
27 25
28 InstallStep() { 26 InstallStep() {
29 MakeDir ${PUBLISH_DIR} 27 MakeDir ${PUBLISH_DIR}
30 local ASSEMBLY_DIR="${PUBLISH_DIR}/tar" 28 local ASSEMBLY_DIR="${PUBLISH_DIR}/tar"
31 29
32 export INSTALL_TARGETS="DESTDIR=${ASSEMBLY_DIR} install" 30 export INSTALL_TARGETS="DESTDIR=${ASSEMBLY_DIR} install"
33 DefaultInstallStep 31 DefaultInstallStep
34 } 32 }
35
36 PackageInstall
37 exit 0
OLDNEW
« no previous file with comments | « ports/giflib/build.sh ('k') | ports/glib/build.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698