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

Side by Side Diff: ports/ruby_ppapi/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/ruby/build.sh ('k') | ports/scummvm/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 6 BUILD_DIR=${START_DIR}
7 source ../../build_tools/common.sh
8 7
9 BuildStep() { 8 BuildStep() {
10 # The sample is built using the NaCl SDK common.mk system. 9 # The sample is built using the NaCl SDK common.mk system.
11 # We override $(OUTBASE) to force the build system to put 10 # We override $(OUTBASE) to force the build system to put
12 # all its artifacts in ${NACL_PACKAGES_REPOSITORY} rather 11 # all its artifacts in ${NACL_PACKAGES_REPOSITORY} rather
13 # than alongside the Makefile. 12 # than alongside the Makefile.
14 export OUTBASE=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR} 13 export OUTBASE=${SRC_DIR}
15 export NACLPORTS_INCLUDE 14 export NACLPORTS_INCLUDE
16 export NACLPORTS_PREFIX 15 export NACLPORTS_PREFIX
17 export NACL_PACKAGES_PUBLISH 16 export NACL_PACKAGES_PUBLISH
18 export NACL_SRC 17 export NACL_SRC
19 export CFLAGS=${NACLPORTS_CFLAGS} 18 export CFLAGS=${NACLPORTS_CFLAGS}
20 export CXXFLAGS=${NACLPORTS_CXXFLAGS} 19 export CXXFLAGS=${NACLPORTS_CXXFLAGS}
21 export LDFLAGS=${NACLPORTS_LDFLAGS} 20 export LDFLAGS=${NACLPORTS_LDFLAGS}
22 21
23 MakeDir ${OUTBASE} 22 MakeDir ${OUTBASE}
24 if [ "${NACL_GLIBC}" = "1" ]; then 23 if [ "${NACL_GLIBC}" = "1" ]; then
25 MAKEFLAGS+=" TOOLCHAIN=glibc" 24 MAKEFLAGS+=" TOOLCHAIN=glibc"
26 elif [ "${NACL_ARCH}" = "pnacl" ]; then 25 elif [ "${NACL_ARCH}" = "pnacl" ]; then
27 MAKEFLAGS+=" TOOLCHAIN=pnacl" 26 MAKEFLAGS+=" TOOLCHAIN=pnacl"
28 else 27 else
29 MAKEFLAGS+=" TOOLCHAIN=newlib" 28 MAKEFLAGS+=" TOOLCHAIN=newlib"
30 fi 29 fi
31 if [ "${NACL_DEBUG}" = "1" ]; then 30 if [ "${NACL_DEBUG}" = "1" ]; then
32 MAKEFLAGS+=" CONFIG=Debug" 31 MAKEFLAGS+=" CONFIG=Debug"
33 else 32 else
34 MAKEFLAGS+=" CONFIG=Release" 33 MAKEFLAGS+=" CONFIG=Release"
35 fi 34 fi
36 if [ "${NACL_ARCH}" != "pnacl" ]; then 35 if [ "${NACL_ARCH}" != "pnacl" ]; then
37 MAKEFLAGS+=" NACL_ARCH=${NACL_ARCH_ALT}" 36 MAKEFLAGS+=" NACL_ARCH=${NACL_ARCH_ALT}"
38 fi 37 fi
39 MAKEFLAGS+=" V=1" 38 MAKEFLAGS+=" V=1"
40 export MAKEFLAGS 39 export MAKEFLAGS
41 ChangeDir ${START_DIR}
42 DefaultBuildStep 40 DefaultBuildStep
43 } 41 }
44 42
45 PackageInstall() { 43 PackageInstall() {
46 PreInstallStep 44 PreInstallStep
47 BuildStep 45 BuildStep
48 InstallStep 46 InstallStep
49 } 47 }
50
51 PackageInstall
52 exit 0
OLDNEW
« no previous file with comments | « ports/ruby/build.sh ('k') | ports/scummvm/build.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698