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

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: review 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') | no next file with comments »
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..9f9b5a591feb920c504579c01f1a794308302923 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,14 @@ GetTranslatorBuildDir() {
}
GetTranslatorInstallDir() {
- local arch="$1"
- echo "${INSTALL_TRANSLATOR}"/${arch}
+ local arch
+ case $1 in
+ 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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698