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

Side by Side Diff: ports/ruby/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/readline/build.sh ('k') | ports/ruby_ppapi/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="pprogram" 7 MAKE_TARGETS="pprogram"
10 INSTALL_TARGETS="install-nodoc DESTDIR=${NACL_TOOLCHAIN_INSTALL}" 8 INSTALL_TARGETS="install-nodoc DESTDIR=${NACL_TOOLCHAIN_INSTALL}"
11 9
12 EXECUTABLES="ruby${NACL_EXEEXT} pepper-ruby${NACL_EXEEXT}" 10 EXECUTABLES="ruby${NACL_EXEEXT} pepper-ruby${NACL_EXEEXT}"
13 11
14 ConfigureStep() { 12 ConfigureStep() {
15 # We need to build a host version of ruby for use during the nacl 13 # We need to build a host version of ruby for use during the nacl
16 # build. 14 # build.
17 HOST_BUILD=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR}/build-nacl-host 15 HOST_BUILD=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR}/build-nacl-host
(...skipping 13 matching lines...) Expand all
31 export CXX=${NACLCXX} 29 export CXX=${NACLCXX}
32 export AR=${NACLAR} 30 export AR=${NACLAR}
33 export RANLIB=${NACLRANLIB} 31 export RANLIB=${NACLRANLIB}
34 export PKG_CONFIG_PATH=${NACLPORTS_LIBDIR}/pkgconfig 32 export PKG_CONFIG_PATH=${NACLPORTS_LIBDIR}/pkgconfig
35 export PKG_CONFIG_LIBDIR=${NACLPORTS_LIBDIR} 33 export PKG_CONFIG_LIBDIR=${NACLPORTS_LIBDIR}
36 export FREETYPE_CONFIG=${NACLPORTS_PREFIX_BIN}/freetype-config 34 export FREETYPE_CONFIG=${NACLPORTS_PREFIX_BIN}/freetype-config
37 export CFLAGS=${NACLPORTS_CFLAGS} 35 export CFLAGS=${NACLPORTS_CFLAGS}
38 export CXXFLAGS=${NACLPORTS_CXXFLAGS} 36 export CXXFLAGS=${NACLPORTS_CXXFLAGS}
39 export LDFLAGS=${NACLPORTS_LDFLAGS} 37 export LDFLAGS=${NACLPORTS_LDFLAGS}
40 export PATH=${NACL_BIN_PATH}:${PATH}; 38 export PATH=${NACL_BIN_PATH}:${PATH};
41 local SRC_DIR=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR}
42 if [ ! -f "${SRC_DIR}/configure" ]; then 39 if [ ! -f "${SRC_DIR}/configure" ]; then
43 echo "No configure script found" 40 echo "No configure script found"
44 return 41 return
45 fi 42 fi
46 local DEFAULT_BUILD_DIR=${SRC_DIR}/${NACL_BUILD_SUBDIR}
47 local BUILD_DIR=${NACL_BUILD_DIR:-${DEFAULT_BUILD_DIR}}
48 MakeDir ${BUILD_DIR} 43 MakeDir ${BUILD_DIR}
49 ChangeDir ${BUILD_DIR} 44 ChangeDir ${BUILD_DIR}
50 echo "Directory: $(pwd)" 45 echo "Directory: $(pwd)"
51 46
52 # TODO(sbc): remove once getaddrinfo() is working 47 # TODO(sbc): remove once getaddrinfo() is working
53 EXTRA_CONFIGURE_ARGS=--disable-ipv6 48 EXTRA_CONFIGURE_ARGS=--disable-ipv6
54 49
55 if [ ${NACL_GLIBC} != 1 ]; then 50 if [ ${NACL_GLIBC} != 1 ]; then
56 EXTRA_CONFIGURE_ARGS+=" --with-static-linked-ext --with-newlib" 51 EXTRA_CONFIGURE_ARGS+=" --with-static-linked-ext --with-newlib"
57 export LIBS="-lglibc-compat" 52 export LIBS="-lglibc-compat"
(...skipping 29 matching lines...) Expand all
87 82
88 BuildStep() { 83 BuildStep() {
89 DefaultBuildStep 84 DefaultBuildStep
90 if [ $NACL_ARCH != "pnacl" ]; then 85 if [ $NACL_ARCH != "pnacl" ]; then
91 WriteSelLdrScript ruby ruby.nexe 86 WriteSelLdrScript ruby ruby.nexe
92 else 87 else
93 # Just write the x86-64 version out for now. 88 # Just write the x86-64 version out for now.
94 TranslateAndWriteSelLdrScript ruby.pexe x86-64 ruby.x86-64.nexe ruby 89 TranslateAndWriteSelLdrScript ruby.pexe x86-64 ruby.x86-64.nexe ruby
95 fi 90 fi
96 } 91 }
97
98 PackageInstall
99 exit 0
OLDNEW
« no previous file with comments | « ports/readline/build.sh ('k') | ports/ruby_ppapi/build.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698