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

Side by Side Diff: ports/giflib/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/gdb/build.sh ('k') | ports/git/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 if [ "${NACL_GLIBC}" = "1" ]; then 7 if [ "${NACL_GLIBC}" = "1" ]; then
10 EXECUTABLES=util/.libs/rgb2gif${NACL_EXEEXT} 8 EXECUTABLES=util/.libs/rgb2gif${NACL_EXEEXT}
11 else 9 else
12 EXECUTABLES=util/rgb2gif${NACL_EXEEXT} 10 EXECUTABLES=util/rgb2gif${NACL_EXEEXT}
13 fi 11 fi
14 12
15 RunTest() { 13 RunTest() {
16 util/rgb2gif -s 320 200 < ../tests/porsche.rgb > porsche.gif 14 util/rgb2gif -s 320 200 < ../tests/porsche.rgb > porsche.gif
17 # TODO(sbc): do some basic checks on the resulting porsche.gif 15 # TODO(sbc): do some basic checks on the resulting porsche.gif
(...skipping 28 matching lines...) Expand all
46 BuildStep() { 44 BuildStep() {
47 Banner "Build ${PACKAGE_NAME}" 45 Banner "Build ${PACKAGE_NAME}"
48 echo "Directory: $(pwd)" 46 echo "Directory: $(pwd)"
49 # Limit the subdirecorties that get built by make. This is to 47 # Limit the subdirecorties that get built by make. This is to
50 # avoid the 'doc' directory which has a dependency on 'xmlto'. 48 # avoid the 'doc' directory which has a dependency on 'xmlto'.
51 # If 'xmlto' were added to the host build dependencies this could 49 # If 'xmlto' were added to the host build dependencies this could
52 # be removed. 50 # be removed.
53 export PATH=${NACL_BIN_PATH}:${PATH}; 51 export PATH=${NACL_BIN_PATH}:${PATH};
54 make -j${OS_JOBS} SUBDIRS="lib util" 52 make -j${OS_JOBS} SUBDIRS="lib util"
55 } 53 }
56
57
58 PackageInstall
59 exit 0
OLDNEW
« no previous file with comments | « ports/gdb/build.sh ('k') | ports/git/build.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698