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

Side by Side Diff: ports/mongoose/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/metakit/build.sh ('k') | ports/mpc/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 BuildStep() { 7 BuildStep() {
10 export EXTRA_CFLAGS="${NACL_CFLAGS}" 8 export EXTRA_CFLAGS="${NACL_CFLAGS}"
11 export LDFLAGS="${NACL_LDFLAGS} -lppapi_simple -lnacl_io -lppapi_cpp -lppapi" 9 export LDFLAGS="${NACL_LDFLAGS} -lppapi_simple -lnacl_io -lppapi_cpp -lppapi"
12 if [ "$NACL_GLIBC" = "1" ]; then 10 if [ "$NACL_GLIBC" = "1" ]; then
13 LDFLAGS+=" -ldl" 11 LDFLAGS+=" -ldl"
14 fi 12 fi
15 CC=${NACLCC} LogExecute make clean 13 CC=${NACLCC} LogExecute make clean
16 CC=${NACLCC} LogExecute make nacl 14 CC=${NACLCC} LogExecute make nacl
17 } 15 }
(...skipping 14 matching lines...) Expand all
32 mongoose_*${NACL_EXEEXT} \ 30 mongoose_*${NACL_EXEEXT} \
33 -s . \ 31 -s . \
34 -o mongoose.nmf 32 -o mongoose.nmf
35 popd 33 popd
36 34
37 InstallNaClTerm ${ASSEMBLY_DIR} 35 InstallNaClTerm ${ASSEMBLY_DIR}
38 LogExecute cp ${START_DIR}/background.js ${ASSEMBLY_DIR} 36 LogExecute cp ${START_DIR}/background.js ${ASSEMBLY_DIR}
39 LogExecute cp ${START_DIR}/mongoose.js ${ASSEMBLY_DIR} 37 LogExecute cp ${START_DIR}/mongoose.js ${ASSEMBLY_DIR}
40 LogExecute cp ${START_DIR}/manifest.json ${ASSEMBLY_DIR} 38 LogExecute cp ${START_DIR}/manifest.json ${ASSEMBLY_DIR}
41 } 39 }
42
43 PackageInstall
44 exit 0
OLDNEW
« no previous file with comments | « ports/metakit/build.sh ('k') | ports/mpc/build.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698