summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-10-22 02:21:03 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-10-22 02:21:03 (EDT)
commitd5805ace5fc8b0ac3b6d3933ff94e2e06905c886 (patch)
tree772cfc81626cb87ea2491bdfae2dc8a416af0051
parentd7d639349ae7763a8be80a6745c1cd97c3d9082c (diff)
Add "destdir" build system option.
-rw-r--r--lib/buildsystem.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/buildsystem.sh b/lib/buildsystem.sh
index ef668f7..b45d3d5 100644
--- a/lib/buildsystem.sh
+++ b/lib/buildsystem.sh
@@ -37,6 +37,8 @@ oh_buildsystems_init()
[ -z "${_OH_BUILDSYSTEM_BUILD_DIR}" ] && \
_OH_BUILDSYSTEM_BUILD_DIR="${PWD}/src"
+ [ -z "${_OH_BUILDSYSTEM_DESTDIR}" ] && \
+ _OH_BUILDSYSTEM_DESTDIR="${PWD}/dest"
[ -z "${_OH_BUILDSYSTEM_SYSTEM}" ] && \
_OH_BUILDSYSTEM_SYSTEM=''
}
@@ -57,6 +59,9 @@ oh_set_buildsystem_option()
'build-dir')
_OH_BUILDSYSTEM_BUILD_DIR="${_ohsbso_value}"
;;
+ 'destdir')
+ _OH_BUILDSYSTEM_DESTDIR="${_ohsbso_value}"
+ ;;
'build-system')
_OH_BUILDSYSTEM_SYSTEM="${_ohsbso_value}"
;;