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

Side by Side Diff: ports/SDL/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
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
7 source ../../build_tools/common.sh
8 6
9 AutogenStep() { 7 AutogenStep() {
10 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} 8 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}
11 # For some reason if we don't remove configure before running 9 # For some reason if we don't remove configure before running
12 # autoconf it doesn't always get updates correctly. About half 10 # autoconf it doesn't always get updates correctly. About half
13 # the time the old configure script (with no reference to nacl) 11 # the time the old configure script (with no reference to nacl)
14 # will remain after ./autogen.sh 12 # will remain after ./autogen.sh
15 rm -f configure 13 rm -f configure
16 ./autogen.sh 14 ./autogen.sh
17 PatchConfigure 15 PatchConfigure
(...skipping 18 matching lines...) Expand all
36 34
37 local conf_host=${NACL_CROSS_PREFIX} 35 local conf_host=${NACL_CROSS_PREFIX}
38 if [ ${NACL_ARCH} = "pnacl" ]; then 36 if [ ${NACL_ARCH} = "pnacl" ]; then
39 # The PNaCl tools use "pnacl-" as the prefix, but config.sub 37 # The PNaCl tools use "pnacl-" as the prefix, but config.sub
40 # does not know about "pnacl". It only knows about "le32-nacl". 38 # does not know about "pnacl". It only knows about "le32-nacl".
41 # Unfortunately, most of the config.subs here are so old that 39 # Unfortunately, most of the config.subs here are so old that
42 # it doesn't know about that "le32" either. So we just say "nacl". 40 # it doesn't know about that "le32" either. So we just say "nacl".
43 conf_host="nacl" 41 conf_host="nacl"
44 fi 42 fi
45 43
46 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} 44 BUILD_DIR=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}/${NACL_BUILD_SUBDIR}-tes t
47 MakeDir ${NACL_BUILD_SUBDIR}-test 45 ChangeDir ${BUILD_DIR}
48 ChangeDir ${NACL_BUILD_SUBDIR}-test
49 46
50 LIBS="$LDFLAGS" LogExecute ../test/configure \ 47 LIBS="$LDFLAGS" LogExecute ../test/configure \
51 --host=${conf_host} \ 48 --host=${conf_host} \
52 --disable-assembly \ 49 --disable-assembly \
53 --disable-pthread-sem \ 50 --disable-pthread-sem \
54 --prefix=${NACLPORTS_PREFIX} \ 51 --prefix=${NACLPORTS_PREFIX} \
55 --exec-prefix=${NACLPORTS_PREFIX} \ 52 --exec-prefix=${NACLPORTS_PREFIX} \
56 --libdir=${NACLPORTS_LIBDIR} \ 53 --libdir=${NACLPORTS_LIBDIR} \
57 --oldincludedir=${NACLPORTS_INCLUDE} 54 --oldincludedir=${NACLPORTS_INCLUDE}
58 } 55 }
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 ExtractStep 118 ExtractStep
122 PatchStep 119 PatchStep
123 AutogenStep 120 AutogenStep
124 ConfigureStep 121 ConfigureStep
125 BuildStep 122 BuildStep
126 InstallStep 123 InstallStep
127 ConfigureTests 124 ConfigureTests
128 BuildStep 125 BuildStep
129 PublishStep 126 PublishStep
130 } 127 }
131
132
133 PackageInstall
134 exit 0
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698