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

Side by Side Diff: ports/fftw/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/ffmpeg/build.sh ('k') | ports/flac/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 6 BUILD_DIR=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}
7 source ../../build_tools/common.sh
8 7
9 ConfigureStep() { 8 ConfigureStep() {
10 local EXTRA_CONFIGURE_OPTS=("${@:-}") 9 local EXTRA_CONFIGURE_OPTS=("${@:-}")
11 Banner "Configuring ${PACKAGE_NAME}" 10 Banner "Configuring ${PACKAGE_NAME}"
12 # Export the nacl tools. 11 # Export the nacl tools.
13 export CC=${NACLCC} 12 export CC=${NACLCC}
14 export CXX=${NACLCXX} 13 export CXX=${NACLCXX}
15 export AR=${NACLAR} 14 export AR=${NACLAR}
16 export RANLIB=${NACLRANLIB} 15 export RANLIB=${NACLRANLIB}
17 export PKG_CONFIG_PATH=${NACLPORTS_LIBDIR}/pkgconfig 16 export PKG_CONFIG_PATH=${NACLPORTS_LIBDIR}/pkgconfig
18 export PKG_CONFIG_LIBDIR=${NACLPORTS_LIBDIR} 17 export PKG_CONFIG_LIBDIR=${NACLPORTS_LIBDIR}
19 export PATH=${NACL_BIN_PATH}:${PATH}; 18 export PATH=${NACL_BIN_PATH}:${PATH};
20 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}
21 extra="--enable-threads" 19 extra="--enable-threads"
22 if [ ${NACL_ARCH} = "x86_64" -o ${NACL_ARCH} = "i686" ]; then 20 if [ ${NACL_ARCH} = "x86_64" -o ${NACL_ARCH} = "i686" ]; then
23 extra="${extra} --enable-sse2" 21 extra="${extra} --enable-sse2"
24 fi 22 fi
25 23
26 LogExecute ./configure \ 24 LogExecute ./configure \
27 --host=nacl \ 25 --host=nacl \
28 --prefix=${NACLPORTS_PREFIX} \ 26 --prefix=${NACLPORTS_PREFIX} \
29 ${EXTRA_CONFIGURE_OPTS[@]} \ 27 ${EXTRA_CONFIGURE_OPTS[@]} \
30 ${extra} 28 ${extra}
(...skipping 14 matching lines...) Expand all
45 ValidateStep 43 ValidateStep
46 44
47 # build fftwf (float) 45 # build fftwf (float)
48 EXECUTABLES=tools/fftwf-wisdom${NACL_EXEEXT} 46 EXECUTABLES=tools/fftwf-wisdom${NACL_EXEEXT}
49 ConfigureStep --enable-float 47 ConfigureStep --enable-float
50 BuildStep 48 BuildStep
51 InstallStep 49 InstallStep
52 TranslateStep 50 TranslateStep
53 ValidateStep 51 ValidateStep
54 } 52 }
55
56 PackageInstall
57 exit 0
OLDNEW
« no previous file with comments | « ports/ffmpeg/build.sh ('k') | ports/flac/build.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698