build_proton.sh: Do not package proton when building single component

This commit is contained in:
Józef Kucia 2018-03-21 16:43:41 +01:00 committed by Andrew Eikum
parent b63199deff
commit 1708a87b49

View file

@ -191,14 +191,6 @@ else
STRIP='strip'
fi
if [ "$1" == "--release" ]; then
RELEASE_BUILD=1
INSTALL_PROGRAM_FLAGS='-s'
else
RELEASE_BUILD=1
INSTALL_PROGRAM_FLAGS=''
fi
BUILD_COMPONENTS='all'
if [ "$#" -ge 2 ]; then
for (( i=1; i <= $# - 1; i++)); do
@ -210,6 +202,22 @@ if [ "$#" -ge 2 ]; then
done
fi
PACKAGE=false
if [ "$BUILD_COMPONENTS" == "all" ]; then
PACKAGE=true
fi
RELEASE_BUILD=1
INSTALL_PROGRAM_FLAGS=''
for param in "$@"; do
if [ "$param" == "--release" ]; then
RELEASE_BUILD=1
INSTALL_PROGRAM_FLAGS='-s'
elif [ "$param" == "--package" ]; then
PACKAGE=true
fi
done
DST_DIR="$TOP/build/dist"
TOOLS_DIR64="$TOP/build/tools.win64"
TOOLS_DIR32="$TOP/build/tools.win32"
@ -442,6 +450,7 @@ case "$BUILD_COMPONENTS" in
*) echo "Invalid build components: $BUILD_COMPONENTS" ;;
esac
if [ "$PACKAGE" = true ]; then
echo "Packaging..."
cd "$TOP"
@ -459,3 +468,4 @@ fi
date '+%s' > dist/version
echo "Proton ready in dist/"
fi