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

Side by Side Diff: build_tools/nacl_env.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) 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 # Echo the environment variables need to to build/configure standard 6 # Echo the environment variables need to to build/configure standard
7 # GNU make/automake/configure projects. 7 # GNU make/automake/configure projects.
8 # 8 #
9 # To import these variables into your environment do: 9 # To import these variables into your environment do:
10 # $ . nacl_env.sh 10 # $ . nacl_env.sh
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 fi 263 fi
264 264
265 NACL_LDFLAGS="-L${NACL_SDK_LIBDIR}" 265 NACL_LDFLAGS="-L${NACL_SDK_LIBDIR}"
266 NACL_CFLAGS="-I${NACL_SDK_ROOT}/include" 266 NACL_CFLAGS="-I${NACL_SDK_ROOT}/include"
267 NACL_CXXFLAGS="-I${NACL_SDK_ROOT}/include" 267 NACL_CXXFLAGS="-I${NACL_SDK_ROOT}/include"
268 268
269 if [ ${NACL_GLIBC} = "1" ]; then 269 if [ ${NACL_GLIBC} = "1" ]; then
270 NACL_LDFLAGS+=" -Wl,-rpath-link=${NACL_SDK_LIBDIR}" 270 NACL_LDFLAGS+=" -Wl,-rpath-link=${NACL_SDK_LIBDIR}"
271 fi 271 fi
272 272
273 if [ $# -gt 0 ]; then 273 if [ -z "${NACL_ENV_IMPORT:-}" ]; then
274 if [ "$1" = '--print' ]; then 274 if [ $# -gt 0 ]; then
275 echo "export CC=${NACLCC}" 275 if [ "$1" = '--print' ]; then
276 echo "export CXX=${NACLCXX}" 276 echo "export CC=${NACLCC}"
277 echo "export AR=${NACLAR}" 277 echo "export CXX=${NACLCXX}"
278 echo "export RANLIB=${NACLRANLIB}" 278 echo "export AR=${NACLAR}"
279 echo "export PKG_CONFIG_PATH=${NACLPORTS_LIBDIR}/pkgconfig" 279 echo "export RANLIB=${NACLRANLIB}"
280 echo "export PKG_CONFIG_LIBDIR=${NACLPORTS_LIBDIR}" 280 #echo "export PKG_CONFIG_PATH=${NACLPORTS_LIBDIR}/pkgconfig"
binji 2014/01/13 23:05:42 why commented?
Sam Clegg 2014/01/14 01:54:38 Its unrelated, but this is currently broken as NAC
281 echo "export PATH=\${PATH}:${NACL_BIN_PATH}" 281 #echo "export PKG_CONFIG_LIBDIR=${NACLPORTS_LIBDIR}"
282 echo "export CFLAGS=\"${NACL_CFLAGS}\"" 282 echo "export PATH=\${PATH}:${NACL_BIN_PATH}"
283 echo "export LDFLAGS=\"${NACL_LDFLAGS}\"" 283 echo "export CFLAGS=\"${NACL_CFLAGS}\""
284 else 284 echo "export LDFLAGS=\"${NACL_LDFLAGS}\""
285 export CC=${NACLCC} 285 else
286 export CXX=${NACLCXX} 286 export CC=${NACLCC}
287 export AR=${NACLAR} 287 export CXX=${NACLCXX}
288 export RANLIB=${NACLRANLIB} 288 export AR=${NACLAR}
289 export PKG_CONFIG_PATH=${NACLPORTS_LIBDIR}/pkgconfig 289 export RANLIB=${NACLRANLIB}
290 export PKG_CONFIG_LIBDIR=${NACLPORTS_LIBDIR} 290 #export PKG_CONFIG_PATH=${NACLPORTS_LIBDIR}/pkgconfig
291 export PATH=${PATH}:${NACL_BIN_PATH} 291 #export PKG_CONFIG_LIBDIR=${NACLPORTS_LIBDIR}
292 export CFLAGS=${NACL_CFLAGS} 292 export PATH=${PATH}:${NACL_BIN_PATH}
293 exec $@ 293 export CFLAGS=${NACL_CFLAGS}
294 exec $@
295 fi
294 fi 296 fi
295 fi 297 fi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698