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

Unified Diff: pnacl/build.sh

Issue 583783002: Switch PNaCl lib, include, and translator directories for new layout (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: typo Created 6 years, 3 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 | « no previous file | pnacl/driver/driver_env.py » ('j') | pnacl/driver/driver_env.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pnacl/build.sh
diff --git a/pnacl/build.sh b/pnacl/build.sh
index b4a3c6405cc08f35e17ffa4d740a7d3102f02c20..9f04c1862ed85965381cfb74325b2873b29dbad2 100755
--- a/pnacl/build.sh
+++ b/pnacl/build.sh
@@ -132,11 +132,11 @@ INSTALL_LIB="${INSTALL_ROOT}/lib"
# Native nacl lib directories
# The pattern `${INSTALL_LIB_NATIVE}${arch}' is used in many places.
-readonly INSTALL_LIB_NATIVE="${INSTALL_ROOT}/lib-"
-readonly INSTALL_LIB_ARM="${INSTALL_LIB_NATIVE}arm"
-readonly INSTALL_LIB_X8632="${INSTALL_LIB_NATIVE}x86-32"
-readonly INSTALL_LIB_X8664="${INSTALL_LIB_NATIVE}x86-64"
-readonly INSTALL_LIB_MIPS32="${INSTALL_LIB_NATIVE}mips32"
+readonly INSTALL_LIB_NATIVE="${INSTALL_ROOT}/translator/"
+readonly INSTALL_LIB_ARM="${INSTALL_LIB_NATIVE}arm/lib"
+readonly INSTALL_LIB_X8632="${INSTALL_LIB_NATIVE}x86-32/lib"
+readonly INSTALL_LIB_X8664="${INSTALL_LIB_NATIVE}x86-64/lib"
+readonly INSTALL_LIB_MIPS32="${INSTALL_LIB_NATIVE}mips32/lib"
# PNaCl client-translators (sandboxed) binary locations
readonly INSTALL_TRANSLATOR="${TOOLCHAIN_BASE}/pnacl_translator"
@@ -558,7 +558,8 @@ translator-all() {
fi
# Copy native libs to translator install dir.
- cp -a ${INSTALL_LIB_NATIVE}* ${INSTALL_TRANSLATOR}
+ mkdir -p ${INSTALL_TRANSLATOR}/translator
+ cp -a ${INSTALL_LIB_NATIVE}* ${INSTALL_TRANSLATOR}/translator
driver-install-translator
@@ -1986,8 +1987,13 @@ GetTranslatorBuildDir() {
}
GetTranslatorInstallDir() {
- local arch="$1"
- echo "${INSTALL_TRANSLATOR}"/${arch}
+ case $1 in
jvoung (off chromium) 2014/09/19 16:29:02 local arch?
Derek Schuff 2014/09/19 16:39:48 Done.
+ i686) arch=x86-32 ;;
+ x86_64) arch=x86-64 ;;
+ armv7) arch=arm ;;
+ default) arch=$1 ;;
+ esac
+ echo "${INSTALL_TRANSLATOR}"/translator/${arch}
}
### Sandboxed version of gold.
« no previous file with comments | « no previous file | pnacl/driver/driver_env.py » ('j') | pnacl/driver/driver_env.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698