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

Side by Side Diff: ports/dreadthread/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/dosbox/build.sh ('k') | ports/drod/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 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 export PACKAGE_DIR="${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}" 9 export PACKAGE_DIR="${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}"
12 MakeDir ${PACKAGE_DIR} 10 MakeDir ${PACKAGE_DIR}
13 ChangeDir ${PACKAGE_DIR} 11 ChangeDir ${PACKAGE_DIR}
14 ${NACLCC} -c ${START_DIR}/dread.c -o dread.o 12 ${NACLCC} -c ${START_DIR}/dread.c -o dread.o
15 ${NACLCC} -c ${START_DIR}/dread_chain.c -o dread_chain.o 13 ${NACLCC} -c ${START_DIR}/dread_chain.c -o dread_chain.o
16 ${NACLAR} rcs libdreadthread.a \ 14 ${NACLAR} rcs libdreadthread.a \
17 dread.o \ 15 dread.o \
18 dread_chain.o 16 dread_chain.o
19 ${NACLRANLIB} libdreadthread.a 17 ${NACLRANLIB} libdreadthread.a
20 } 18 }
21 19
22 InstallStep() { 20 InstallStep() {
23 Banner "Installing ${PACKAGE_NAME}" 21 Banner "Installing ${PACKAGE_NAME}"
24 export PACKAGE_DIR="${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}" 22 export PACKAGE_DIR="${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}"
25 cp ${PACKAGE_DIR}/libdreadthread.a ${NACLPORTS_LIBDIR} 23 cp ${PACKAGE_DIR}/libdreadthread.a ${NACLPORTS_LIBDIR}
26 cp ${START_DIR}/dreadthread.h ${NACLPORTS_INCLUDE} 24 cp ${START_DIR}/dreadthread.h ${NACLPORTS_INCLUDE}
27 cp ${START_DIR}/dreadthread_ctxt.h ${NACLPORTS_INCLUDE} 25 cp ${START_DIR}/dreadthread_ctxt.h ${NACLPORTS_INCLUDE}
28 cp ${START_DIR}/dreadthread_chain.h ${NACLPORTS_INCLUDE} 26 cp ${START_DIR}/dreadthread_chain.h ${NACLPORTS_INCLUDE}
29 } 27 }
30 28
31 PackageInstall() { 29 PackageInstall() {
32 PreInstallStep 30 PreInstallStep
33 BuildStep 31 BuildStep
34 InstallStep 32 InstallStep
35 } 33 }
36
37 PackageInstall
38 exit 0
OLDNEW
« no previous file with comments | « ports/dosbox/build.sh ('k') | ports/drod/build.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698