Set Windows Qt appveyor build to use Qt6. Build fix for Mac OSX pipeline using Qt6.

This commit is contained in:
mjbudd77 2021-04-11 21:26:46 -04:00
parent 229705f693
commit a3c73c5a4d
2 changed files with 5 additions and 2 deletions

View File

@ -52,9 +52,11 @@ export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig:
if [ $QT_MAJOR == 6 ]; then
export Qt6_DIR=`brew --prefix qt6`;
echo "Qt6_DIR=$Qt6_DIR";
USE_QT6=1;
else
export Qt5_DIR=`brew --prefix qt5`;
echo "Qt5_DIR=$Qt5_DIR";
USE_QT6=0;
fi
echo '**************************'
@ -73,6 +75,7 @@ cmake \
-DCPACK_PACKAGE_VERSION_MAJOR=$FCEUX_VERSION_MAJOR \
-DCPACK_PACKAGE_VERSION_MINOR=$FCEUX_VERSION_MINOR \
-DCPACK_PACKAGE_VERSION_PATCH=$FCEUX_VERSION_PATCH \
-DQT6=$USE_QT6 \
.. || exit 1
make -j $NPROC || exit 1
sudo make install || exit 1

View File

@ -2,8 +2,8 @@
set PROJECT_ROOT=%~dp0..
set CWD=%CD%
REM call "C:\Qt\6.0\msvc2019_64\bin\qtenv2.bat"
call "C:\Qt\5.15\msvc2019_64\bin\qtenv2.bat"
REM call "C:\Qt\5.15\msvc2019_64\bin\qtenv2.bat"
call "C:\Qt\6.0\msvc2019_64\bin\qtenv2.bat"
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
cd %CWD%