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

Side by Side Diff: ports/openssh/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/opencv/build.sh ('k') | ports/openssl/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
7 source ../../build_tools/common.sh
8 6
9 EXECUTABLES="scp${NACL_EXEEXT} ssh${NACL_EXEEXT} \ 7 EXECUTABLES="scp${NACL_EXEEXT} ssh${NACL_EXEEXT} \
10 ssh-add${NACL_EXEEXT} sshd${NACL_EXEEXT}" 8 ssh-add${NACL_EXEEXT} sshd${NACL_EXEEXT}"
11 INSTALL_TARGETS="install-nokeys DESTDIR=${NACLPORTS_PREFIX}" 9 INSTALL_TARGETS="install-nokeys DESTDIR=${NACLPORTS_PREFIX}"
12 10
13 # Force configure to recognise the existence of truncate 11 # Force configure to recognise the existence of truncate
14 # and sigaction. Normally it will detect that both this functions 12 # and sigaction. Normally it will detect that both this functions
15 # are implemented by glibc in terms of NOSYS. 13 # are implemented by glibc in terms of NOSYS.
16 export ac_cv_func_truncate=yes 14 export ac_cv_func_truncate=yes
17 export ac_cv_func_sigaction=yes 15 export ac_cv_func_sigaction=yes
(...skipping 17 matching lines...) Expand all
35 export CXX=${NACLCXX} 33 export CXX=${NACLCXX}
36 export AR=${NACLAR} 34 export AR=${NACLAR}
37 export RANLIB=${NACLRANLIB} 35 export RANLIB=${NACLRANLIB}
38 export PKG_CONFIG_PATH=${NACLPORTS_LIBDIR}/pkgconfig 36 export PKG_CONFIG_PATH=${NACLPORTS_LIBDIR}/pkgconfig
39 export PKG_CONFIG_LIBDIR=${NACLPORTS_LIBDIR} 37 export PKG_CONFIG_LIBDIR=${NACLPORTS_LIBDIR}
40 export FREETYPE_CONFIG=${NACLPORTS_PREFIX_BIN}/freetype-config 38 export FREETYPE_CONFIG=${NACLPORTS_PREFIX_BIN}/freetype-config
41 export CFLAGS=${NACLPORTS_CFLAGS} 39 export CFLAGS=${NACLPORTS_CFLAGS}
42 export CXXFLAGS=${NACLPORTS_CXXFLAGS} 40 export CXXFLAGS=${NACLPORTS_CXXFLAGS}
43 export LDFLAGS=${NACLPORTS_LDFLAGS} 41 export LDFLAGS=${NACLPORTS_LDFLAGS}
44 export PATH=${NACL_BIN_PATH}:${PATH}; 42 export PATH=${NACL_BIN_PATH}:${PATH};
45 local SRC_DIR=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR}
46 local CONFIGURE=${NACL_CONFIGURE_PATH:-${SRC_DIR}/configure} 43 local CONFIGURE=${NACL_CONFIGURE_PATH:-${SRC_DIR}/configure}
47 local DEFAULT_BUILD_DIR=${SRC_DIR}/${NACL_BUILD_SUBDIR}
48 local BUILD_DIR=${NACL_BUILD_DIR:-${DEFAULT_BUILD_DIR}}
49 MakeDir ${BUILD_DIR} 44 MakeDir ${BUILD_DIR}
50 ChangeDir ${BUILD_DIR} 45 ChangeDir ${BUILD_DIR}
51 46
52 local conf_host=${NACL_CROSS_PREFIX} 47 local conf_host=${NACL_CROSS_PREFIX}
53 if [ "${NACL_ARCH}" = "pnacl" -o "${NACL_ARCH}" = "emscripten" ]; then 48 if [ "${NACL_ARCH}" = "pnacl" -o "${NACL_ARCH}" = "emscripten" ]; then
54 # The PNaCl tools use "pnacl-" as the prefix, but config.sub 49 # The PNaCl tools use "pnacl-" as the prefix, but config.sub
55 # does not know about "pnacl". It only knows about "le32-nacl". 50 # does not know about "pnacl". It only knows about "le32-nacl".
56 # Unfortunately, most of the config.subs here are so old that 51 # Unfortunately, most of the config.subs here are so old that
57 # it doesn't know about that "le32" either. So we just say "nacl". 52 # it doesn't know about that "le32" either. So we just say "nacl".
58 conf_host="nacl" 53 conf_host="nacl"
(...skipping 22 matching lines...) Expand all
81 ssh_*${NACL_EXEEXT} \ 76 ssh_*${NACL_EXEEXT} \
82 -s . \ 77 -s . \
83 -o openssh.nmf 78 -o openssh.nmf
84 LogExecute python ${TOOLS_DIR}/create_term.py openssh.nmf 79 LogExecute python ${TOOLS_DIR}/create_term.py openssh.nmf
85 popd 80 popd
86 81
87 InstallNaClTerm ${ASSEMBLY_DIR} 82 InstallNaClTerm ${ASSEMBLY_DIR}
88 LogExecute cp ${START_DIR}/background.js ${ASSEMBLY_DIR} 83 LogExecute cp ${START_DIR}/background.js ${ASSEMBLY_DIR}
89 LogExecute cp ${START_DIR}/manifest.json ${ASSEMBLY_DIR} 84 LogExecute cp ${START_DIR}/manifest.json ${ASSEMBLY_DIR}
90 } 85 }
91
92 PackageInstall
93 exit 0
OLDNEW
« no previous file with comments | « ports/opencv/build.sh ('k') | ports/openssl/build.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698