[vlc-commits] macOS: build.sh: specify build dir with -C
Thomas Guillem
git at videolan.org
Thu Sep 7 15:16:16 CEST 2017
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Sep 7 15:16:01 2017 +0200| [634cbf0803c368575b5b05cd8de9169aecd34ef3] | committer: Thomas Guillem
macOS: build.sh: specify build dir with -C
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=634cbf0803c368575b5b05cd8de9169aecd34ef3
---
extras/package/macosx/build.sh | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/extras/package/macosx/build.sh b/extras/package/macosx/build.sh
index 3327e33db4..f2b4344b70 100755
--- a/extras/package/macosx/build.sh
+++ b/extras/package/macosx/build.sh
@@ -14,6 +14,7 @@ MINIMAL_OSX_VERSION="10.7"
OSX_VERSION=`xcrun --show-sdk-version`
OSX_KERNELVERSION=`uname -r | cut -d. -f1`
SDKROOT=`xcode-select -print-path`/Platforms/MacOSX.platform/Developer/SDKs/MacOSX$OSX_VERSION.sdk
+VLCBUILDDIR=""
CORE_COUNT=`sysctl -n machdep.cpu.core_count`
let JOBS=$CORE_COUNT+1
@@ -34,6 +35,7 @@ OPTIONS:
-p Build packages for all artifacts
-k <sdk> Use the specified sdk (default: $SDKROOT)
-a <arch> Use the specified arch (default: $ARCH)
+ -C Use the specified VLC build dir
EOF
}
@@ -48,7 +50,7 @@ spopd()
popd > /dev/null
}
-while getopts "hvrcpk:a:j:" OPTION
+while getopts "hvrcpk:a:j:C:" OPTION
do
case $OPTION in
h)
@@ -77,6 +79,9 @@ do
j)
JOBS=$OPTARG
;;
+ C)
+ VLCBUILDDIR=$OPTARG
+ ;;
esac
done
shift $(($OPTIND - 1))
@@ -212,6 +217,10 @@ fi
spopd
+if [ ! -z "$VLCBUILDDIR" ];then
+ mkdir -p $VLCBUILDDIR
+ pushd $VLCBUILDDIR
+fi
#
# vlc/configure
#
@@ -247,3 +256,7 @@ if [ "$PACKAGE" = "yes" ]; then
info "Building VLC dmg package"
make package-macosx
fi
+
+if [ ! -z "$VLCBUILDDIR" ];then
+ popd
+fi
More information about the vlc-commits
mailing list