Skip to content
Permalink
Browse files

build: Add 'tools' option

  • Loading branch information...
3unjee committed May 28, 2019
1 parent 0914ba5 commit 52e0ca30ca6547766fc2b140e1623ce8db06cec8
Showing with 20 additions and 10 deletions.
  1. +10 −6 Sky.pro
  2. +10 −4 build.sh
16 Sky.pro
@@ -2,12 +2,16 @@ TEMPLATE = subdirs

CONFIG += ordered

SUBDIRS = src/SkCore \
src/SkGui \
src/SkMedia \
src/SkTorrent \
src/SkBackend \
tools \
isEmpty(TOOLS) {
SUBDIRS = src/SkCore \
src/SkGui \
src/SkMedia \
src/SkTorrent \
src/SkBackend \
tools
} else {
SUBDIRS = tools
}

#contains(QT_MAJOR_VERSION, 4): SUBDIRS += src/SkWeb

@@ -36,9 +36,9 @@ if [ $# != 2 -a $# != 3 ] \
|| \
[ $2 != "win32" -a $2 != "win64" -a $2 != "macOS" -a $2 != "linux" ] \
|| \
[ $# = 3 -a "$3" != "deploy" ]; then
[ $# = 3 -a "$3" != "deploy" -a "$3" != "tools" ]; then

echo "Usage: build <qt4 | qt5 | clean> <win32 | win64 | macOS | linux> [deploy]"
echo "Usage: build <qt4 | qt5 | clean> <win32 | win64 | macOS | linux> [deploy | tools]"

exit 1
fi
@@ -129,7 +129,13 @@ echo ""

cd $build

qmake -r -spec $spec "CONFIG += release" $Sky
if [ "$3" = "tools" ]; then

qmake -r -spec $spec "CONFIG += release" "TOOLS = true" $Sky
else
qmake -r -spec $spec "CONFIG += release" $Sky
fi

echo ""

if [ $windows = true ]; then
@@ -145,7 +151,7 @@ echo "------------"
# Deploying Sky
#--------------------------------------------------------------------------------------------------

if [ "$3" = "deploy" ]; then
if [ "$3" = "deploy" -o "$3" = "tools" ]; then

echo ""
echo "DEPLOYING Sky"

0 comments on commit 52e0ca3

Please sign in to comment.
You can’t perform that action at this time.