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

Side by Side Diff: ports/sqlite/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/speex/build.sh ('k') | ports/subversion/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 MAKE_TARGETS="CCLD=\$(CXX) all" 7 MAKE_TARGETS="CCLD=\$(CXX) all"
10 NACLPORTS_CFLAGS+=" -DNACL_SDK_VERSION=$NACL_SDK_VERSION" 8 NACLPORTS_CFLAGS+=" -DNACL_SDK_VERSION=$NACL_SDK_VERSION"
11 export LIBS="-lnacl_io -pthread" 9 export LIBS="-lnacl_io -pthread"
12 if [ ${NACL_GLIBC} != "1" ]; then 10 if [ ${NACL_GLIBC} != "1" ]; then
13 EXTRA_CONFIGURE_ARGS=--disable-dynamic-extensions 11 EXTRA_CONFIGURE_ARGS=--disable-dynamic-extensions
14 EXECUTABLE_DIR=. 12 EXECUTABLE_DIR=.
15 else 13 else
16 EXECUTABLE_DIR=.libs 14 EXECUTABLE_DIR=.libs
17 fi 15 fi
18 16
19 PackageInstall() { 17 PackageInstall() {
20 local SRC_DIR=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR}
21 if [ -f ${SRC_DIR}/shell.c ]; then 18 if [ -f ${SRC_DIR}/shell.c ]; then
22 touch ${SRC_DIR}/shell.c 19 touch ${SRC_DIR}/shell.c
23 fi 20 fi
24 21
25 DefaultPackageInstall 22 DefaultPackageInstall
26 if [ ${NACL_ARCH} != "pnacl" ]; then 23 if [ ${NACL_ARCH} != "pnacl" ]; then
27 WriteSelLdrScript sqlite3 ${EXECUTABLE_DIR}/sqlite3${NACL_EXEEXT} 24 WriteSelLdrScript sqlite3 ${EXECUTABLE_DIR}/sqlite3${NACL_EXEEXT}
28 else 25 else
29 local pexe=${EXECUTABLE_DIR}/sqlite3${NACL_EXEEXT} 26 local pexe=${EXECUTABLE_DIR}/sqlite3${NACL_EXEEXT}
30 TranslateAndWriteSelLdrScript ${pexe} x86-64 sqlite3.x86-64.nexe sqlite3 27 TranslateAndWriteSelLdrScript ${pexe} x86-64 sqlite3.x86-64.nexe sqlite3
(...skipping 26 matching lines...) Expand all
57 pushd ${PUBLISH_DIR} 54 pushd ${PUBLISH_DIR}
58 LogExecute python ${NACL_SDK_ROOT}/tools/create_nmf.py \ 55 LogExecute python ${NACL_SDK_ROOT}/tools/create_nmf.py \
59 sqlite3_ppapi*${NACL_EXEEXT} \ 56 sqlite3_ppapi*${NACL_EXEEXT} \
60 -s . \ 57 -s . \
61 -o sqlite.nmf 58 -o sqlite.nmf
62 LogExecute python ${TOOLS_DIR}/create_term.py sqlite.nmf 59 LogExecute python ${TOOLS_DIR}/create_term.py sqlite.nmf
63 popd 60 popd
64 61
65 InstallNaClTerm ${PUBLISH_DIR} 62 InstallNaClTerm ${PUBLISH_DIR}
66 } 63 }
67
68 PackageInstall
69 exit 0
OLDNEW
« no previous file with comments | « ports/speex/build.sh ('k') | ports/subversion/build.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698