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

Side by Side Diff: ports/jsoncpp/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/jpeg8d/build.sh ('k') | ports/lame/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 7
10 BuildStep() { 8 BuildStep() {
11 Banner "Building ${PACKAGE_NAME}" 9 Banner "Building ${PACKAGE_NAME}"
12 export PACKAGE_DIR="${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}" 10 export PACKAGE_DIR="${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}"
13 ChangeDir ${PACKAGE_DIR} 11 ChangeDir ${PACKAGE_DIR}
14 12
15 export CXXCMD="${NACLCC} -Iinclude -I." 13 export CXXCMD="${NACLCC} -Iinclude -I."
16 LogExecute ${CXXCMD} -c src/lib_json/json_reader.cpp 14 LogExecute ${CXXCMD} -c src/lib_json/json_reader.cpp
17 LogExecute ${CXXCMD} -c src/lib_json/json_value.cpp 15 LogExecute ${CXXCMD} -c src/lib_json/json_value.cpp
18 LogExecute ${CXXCMD} -c src/lib_json/json_writer.cpp 16 LogExecute ${CXXCMD} -c src/lib_json/json_writer.cpp
19 17
20 LogExecute ${NACLAR} rcs libjsoncpp.a \ 18 LogExecute ${NACLAR} rcs libjsoncpp.a \
21 json_reader.o \ 19 json_reader.o \
22 json_value.o \ 20 json_value.o \
23 json_writer.o 21 json_writer.o
24 22
25 LogExecute ${NACLRANLIB} libjsoncpp.a 23 LogExecute ${NACLRANLIB} libjsoncpp.a
26 } 24 }
27 25
28 26
29 InstallStep() { 27 InstallStep() {
30 Banner "Installing ${PACKAGE_NAME}" 28 Banner "Installing ${PACKAGE_NAME}"
31 export PACKAGE_DIR="${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}" 29 export PACKAGE_DIR="${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}"
32 30
33 LogExecute cp ${PACKAGE_DIR}/libjsoncpp.a ${NACLPORTS_LIBDIR} 31 LogExecute cp ${PACKAGE_DIR}/libjsoncpp.a ${NACLPORTS_LIBDIR}
34 LogExecute cp -R ${PACKAGE_DIR}/include/json ${NACLPORTS_INCLUDE} 32 LogExecute cp -R ${PACKAGE_DIR}/include/json ${NACLPORTS_INCLUDE}
35 } 33 }
36
37
38 PackageInstall
39 exit 0
OLDNEW
« no previous file with comments | « ports/jpeg8d/build.sh ('k') | ports/lame/build.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698