Added a build specific for mac

This commit is contained in:
Xawotihs
2019-09-09 22:16:40 +02:00
committed by GitHub
parent 29b89ba562
commit bc79115985

View File

@@ -67,8 +67,8 @@ if [ "$BUILD_ANDROID" = "YES" ]; then
ant debug -f projects/mtg/Android/build.xml
fi
# we're building a Qt version with GUI here
if [ "$BUILD_Qt" = "YES" ]; then
# we're building a linux Qt version with GUI here
if [ "$BUILD_Qt" = "YES" ] && [ "$TRAVIS_OS_NAME" == "linux" ]; then
mkdir qt-gui-build
cd qt-gui-build
$QMAKE ../projects/mtg/wagic-qt.pro CONFIG+=release CONFIG+=graphics
@@ -84,3 +84,10 @@ if [ "$BUILD_Qt" = "YES" ]; then
../../wagic
cd ../..
fi
# we're building a mac Qt version with GUI here
if [ "$BUILD_Qt" = "YES" ] && [ "$TRAVIS_OS_NAME" == "osx" ]; then
mkdir qt-gui-build
cd qt-gui-build
$QMAKE ../projects/mtg/wagic-qt.pro CONFIG+=release CONFIG+=graphics
make -j 4 dmg
fi