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

Side by Side Diff: ports/DevIL/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 | « build_tools/naclports.sh ('k') | ports/FreeImage/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 TestStep() { 7 TestStep() {
10 return 0 8 return 0
11 Banner "Testing ${PACKAGE_NAME}" 9 Banner "Testing ${PACKAGE_NAME}"
12 10
13 if [ ${NACL_ARCH} == "pnacl" ]; then 11 if [ ${NACL_ARCH} == "pnacl" ]; then
14 # Run once for each architecture. 12 # Run once for each architecture.
15 local pexe=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR}/${NACL_BUILD_SUBDIR}/t est/testil 13 local pexe=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR}/${NACL_BUILD_SUBDIR}/t est/testil
16 local script=${pexe}.sh 14 local script=${pexe}.sh
17 15
18 TranslateAndWriteSelLdrScript ${pexe} x86-32 ${pexe}.x86-32.nexe ${script} 16 TranslateAndWriteSelLdrScript ${pexe} x86-32 ${pexe}.x86-32.nexe ${script}
19 cd ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR}/${NACL_BUILD_SUBDIR}/test && m ake check 17 cd ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR}/${NACL_BUILD_SUBDIR}/test && m ake check
20 18
21 TranslateAndWriteSelLdrScript ${pexe} x86-64 ${pexe}.x86-64.nexe ${script} 19 TranslateAndWriteSelLdrScript ${pexe} x86-64 ${pexe}.x86-64.nexe ${script}
22 cd ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR}/${NACL_BUILD_SUBDIR}/test && m ake check 20 cd ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR}/${NACL_BUILD_SUBDIR}/test && m ake check
23 else 21 else
24 local nexe=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR}/${NACL_BUILD_SUBDIR}/t est/testil 22 local nexe=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR}/${NACL_BUILD_SUBDIR}/t est/testil
25 local script=${nexe}.sh 23 local script=${nexe}.sh
26 24
27 WriteSelLdrScript ${script} ${nexe} 25 WriteSelLdrScript ${script} ${nexe}
28 26
29 cd ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR}/${NACL_BUILD_SUBDIR}/test && m ake check 27 cd ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR}/${NACL_BUILD_SUBDIR}/test && m ake check
30 fi 28 fi
31 } 29 }
32
33
34 PackageInstall
35 exit 0
OLDNEW
« no previous file with comments | « build_tools/naclports.sh ('k') | ports/FreeImage/build.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698