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

Unified Diff: libraries/nacl-mounts/nacl-nacl-mounts.sh

Issue 11885025: Allow re-targeting of naclports install (Closed) Base URL: http://naclports.googlecode.com/svn/trunk/src
Patch Set: rebase Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « libraries/lua-5.1.4/nacl-lua-5.1.4.sh ('k') | libraries/openal-soft-1.13/nacl-openal-soft-1.13.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: libraries/nacl-mounts/nacl-nacl-mounts.sh
diff --git a/libraries/nacl-mounts/nacl-nacl-mounts.sh b/libraries/nacl-mounts/nacl-nacl-mounts.sh
index 3d44d3cdf2ec00b75f8308b22c20894d701053fd..0ac3fa682a8156ae1b95e8cee2ba64ba47729d77 100755
--- a/libraries/nacl-mounts/nacl-nacl-mounts.sh
+++ b/libraries/nacl-mounts/nacl-nacl-mounts.sh
@@ -39,13 +39,7 @@ RunSelLdrTests() {
export CC=${NACLCC}
export CXX=${NACLCXX}
- export CFLAGS="-I${NACL_SDK_USR_INCLUDE} -I${NACL_SDK_ROOT}/include"
-
- LDFLAGS=-L${NACL_SDK_USR_LIB}
- if [ $NACL_GLIBC != "1" ] ; then
- LDFLAGS="${LDFLAGS}"
- fi
- export LDFLAGS
+ export CFLAGS="${NACLPORTS_CFLAGS} -I${NACL_SDK_ROOT}/include"
MakeDir ${PACKAGE_DIR}/test.nacl
ChangeDir ${PACKAGE_DIR}/test.nacl
@@ -134,27 +128,27 @@ CustomBuildStep() {
CustomInstallStep() {
Banner "Installing ${PACKAGE_NAME}"
export PACKAGE_DIR="${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}"
- cp ${PACKAGE_DIR}/libnacl-mounts.a ${NACL_SDK_USR_LIB}
- mkdir -p ${NACL_SDK_USR_LIB}/nacl-mounts/util
- cp ${START_DIR}/console/console.js ${NACL_SDK_USR_LIB}/nacl-mounts
- cp ${START_DIR}/http2/genfs.py ${NACL_SDK_USR_LIB}/nacl-mounts/util
+ cp ${PACKAGE_DIR}/libnacl-mounts.a ${NACLPORTS_LIBDIR}
+ mkdir -p ${NACLPORTS_LIBDIR}/nacl-mounts/util
+ cp ${START_DIR}/console/console.js ${NACLPORTS_LIBDIR}/nacl-mounts
+ cp ${START_DIR}/http2/genfs.py ${NACLPORTS_LIBDIR}/nacl-mounts/util
# GLibC toolchain has termio.h so don't copy stub header.
if [[ $NACL_GLIBC = 0 ]]; then
- cp ${START_DIR}/console/termio.h ${NACL_SDK_USR_INCLUDE}
+ cp ${START_DIR}/console/termio.h ${NACLPORTS_INCLUDE}
fi
- mkdir -p ${NACL_SDK_USR_INCLUDE}/nacl-mounts
+ mkdir -p ${NACLPORTS_INCLUDE}/nacl-mounts
for DIR in console base util memory net http2 AppEngine pepper buffer; do
- mkdir -p ${NACL_SDK_USR_INCLUDE}/nacl-mounts/${DIR}
- cp ${START_DIR}/${DIR}/*.h ${NACL_SDK_USR_INCLUDE}/nacl-mounts/${DIR}
+ mkdir -p ${NACLPORTS_INCLUDE}/nacl-mounts/${DIR}
+ cp ${START_DIR}/${DIR}/*.h ${NACLPORTS_INCLUDE}/nacl-mounts/${DIR}
done
- mkdir -p ${NACL_SDK_USR_INCLUDE}/nacl-mounts/ppapi/cpp/private
- mkdir -p ${NACL_SDK_USR_INCLUDE}/nacl-mounts/ppapi/c/private
+ mkdir -p ${NACLPORTS_INCLUDE}/nacl-mounts/ppapi/cpp/private
+ mkdir -p ${NACLPORTS_INCLUDE}/nacl-mounts/ppapi/c/private
cp -R ${START_DIR}/ppapi/cpp/private/*.h \
- ${NACL_SDK_USR_INCLUDE}/nacl-mounts/ppapi/cpp/private/
+ ${NACLPORTS_INCLUDE}/nacl-mounts/ppapi/cpp/private/
cp -R ${START_DIR}/ppapi/c/private/*.h \
- ${NACL_SDK_USR_INCLUDE}/nacl-mounts/ppapi/c/private/
+ ${NACLPORTS_INCLUDE}/nacl-mounts/ppapi/c/private/
}
CustomPackageInstall() {
« no previous file with comments | « libraries/lua-5.1.4/nacl-lua-5.1.4.sh ('k') | libraries/openal-soft-1.13/nacl-openal-soft-1.13.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698