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

Unified Diff: ports/glibc-compat/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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ports/glib/build.sh ('k') | ports/gmock/build.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ports/glibc-compat/build.sh
diff --git a/ports/glibc-compat/build.sh b/ports/glibc-compat/build.sh
old mode 100755
new mode 100644
index 20002911f628dbdc4df04c0ffe7c6d58e29e1afc..e68d9721e71e733ea85796071e9565926299d2df
--- a/ports/glibc-compat/build.sh
+++ b/ports/glibc-compat/build.sh
@@ -3,25 +3,20 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-source pkg_info
-source ../../build_tools/common.sh
-
readonly LIB_GLIBC_COMPAT=libglibc-compat.a
-ExtractStep() {
- ChangeDir ${NACL_PACKAGES_REPOSITORY}
- MakeDir ${PACKAGE_NAME}
- LogExecute cp -rf ${START_DIR}/* ${PACKAGE_NAME}
-}
+BUILD_DIR=${SRC_DIR}
ConfigureStep() {
Banner "Configuring ${PACKAGE_NAME}"
+ MakeDir ${BUILD_DIR}
+ LogExecute cp -rf ${START_DIR}/* ${BUILD_DIR}
# export the nacl tools
export CC=${NACLCC}
export CXX=${NACLCXX}
export AR=${NACLAR}
export NACL_SDK_VERSION
- ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}
+ ChangeDir ${SRC_DIR}
LogExecute rm -rf out
}
@@ -31,6 +26,3 @@ InstallStep() {
LogExecute install -m 644 out/${LIB_GLIBC_COMPAT} ${NACLPORTS_LIBDIR}/${LIB_GLIBC_COMPAT}
LogExecute cp -r include ${NACLPORTS_INCLUDE}/glibc-compat
}
-
-PackageInstall
-exit 0
« no previous file with comments | « ports/glib/build.sh ('k') | ports/gmock/build.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698