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

Side by Side Diff: ports/glibc-compat/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/glib/build.sh ('k') | ports/gmock/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
9 readonly LIB_GLIBC_COMPAT=libglibc-compat.a 6 readonly LIB_GLIBC_COMPAT=libglibc-compat.a
10 7
11 ExtractStep() { 8 BUILD_DIR=${SRC_DIR}
12 ChangeDir ${NACL_PACKAGES_REPOSITORY}
13 MakeDir ${PACKAGE_NAME}
14 LogExecute cp -rf ${START_DIR}/* ${PACKAGE_NAME}
15 }
16 9
17 ConfigureStep() { 10 ConfigureStep() {
18 Banner "Configuring ${PACKAGE_NAME}" 11 Banner "Configuring ${PACKAGE_NAME}"
12 MakeDir ${BUILD_DIR}
13 LogExecute cp -rf ${START_DIR}/* ${BUILD_DIR}
19 # export the nacl tools 14 # export the nacl tools
20 export CC=${NACLCC} 15 export CC=${NACLCC}
21 export CXX=${NACLCXX} 16 export CXX=${NACLCXX}
22 export AR=${NACLAR} 17 export AR=${NACLAR}
23 export NACL_SDK_VERSION 18 export NACL_SDK_VERSION
24 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} 19 ChangeDir ${SRC_DIR}
25 LogExecute rm -rf out 20 LogExecute rm -rf out
26 } 21 }
27 22
28 InstallStep() { 23 InstallStep() {
29 Remove ${NACLPORTS_LIBDIR}/${LIB_GLIBC_COMPAT} 24 Remove ${NACLPORTS_LIBDIR}/${LIB_GLIBC_COMPAT}
30 Remove ${NACLPORTS_INCLUDE}/glibc-compat 25 Remove ${NACLPORTS_INCLUDE}/glibc-compat
31 LogExecute install -m 644 out/${LIB_GLIBC_COMPAT} ${NACLPORTS_LIBDIR}/${LIB_GL IBC_COMPAT} 26 LogExecute install -m 644 out/${LIB_GLIBC_COMPAT} ${NACLPORTS_LIBDIR}/${LIB_GL IBC_COMPAT}
32 LogExecute cp -r include ${NACLPORTS_INCLUDE}/glibc-compat 27 LogExecute cp -r include ${NACLPORTS_INCLUDE}/glibc-compat
33 } 28 }
34
35 PackageInstall
36 exit 0
OLDNEW
« no previous file with comments | « ports/glib/build.sh ('k') | ports/gmock/build.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698