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

Side by Side Diff: ports/tinyxml/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/tiff/build.sh ('k') | ports/vim/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) 2011 The Native Client Authors. All rights reserved. 2 # Copyright (c) 2011 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 6
7 source pkg_info
8 source ../../build_tools/common.sh
9 7
10 8
11 BuildStep() { 9 BuildStep() {
12 Banner "Building ${PACKAGE_NAME}" 10 Banner "Building ${PACKAGE_NAME}"
13 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} 11 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}
14 export CC=${NACLCC} 12 export CC=${NACLCC}
15 export CXX=${NACLCXX} 13 export CXX=${NACLCXX}
16 export AR=${NACLAR} 14 export AR=${NACLAR}
17 export LD=${NACLLD} 15 export LD=${NACLLD}
18 export RANLIB=${NACLRANLIB} 16 export RANLIB=${NACLRANLIB}
19 make clean 17 make clean
20 make OUTPUT=libtinyxml.a 18 make OUTPUT=libtinyxml.a
21 } 19 }
22 20
23 21
24 InstallStep() { 22 InstallStep() {
25 # copy libs and headers manually 23 # copy libs and headers manually
26 Banner "Installing ${PACKAGE_NAME} to ${NACLPORTS_PREFIX}" 24 Banner "Installing ${PACKAGE_NAME} to ${NACLPORTS_PREFIX}"
27 ChangeDir ${NACLPORTS_INCLUDE} 25 ChangeDir ${NACLPORTS_INCLUDE}
28 Remove ${PACKAGE_NAME} 26 Remove ${PACKAGE_NAME}
29 MakeDir ${PACKAGE_NAME} 27 MakeDir ${PACKAGE_NAME}
30 readonly THIS_PACKAGE_PATH=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} 28 readonly THIS_PACKAGE_PATH=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}
31 cp ${THIS_PACKAGE_PATH}/*.h ${PACKAGE_NAME}/ 29 cp ${THIS_PACKAGE_PATH}/*.h ${PACKAGE_NAME}/
32 ChangeDir ${NACLPORTS_LIBDIR} 30 ChangeDir ${NACLPORTS_LIBDIR}
33 cp ${THIS_PACKAGE_PATH}/*.a . 31 cp ${THIS_PACKAGE_PATH}/*.a .
34 } 32 }
35
36
37 PackageInstall
38 exit 0
OLDNEW
« no previous file with comments | « ports/tiff/build.sh ('k') | ports/vim/build.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698