Updated Mac OSX appveyor pipeline to build against Qt6
This commit is contained in:
parent
ca232c8b3c
commit
229705f693
|
@ -6,6 +6,8 @@ pwd
|
||||||
uname -a
|
uname -a
|
||||||
sw_vers
|
sw_vers
|
||||||
|
|
||||||
|
QT_MAJOR=6;
|
||||||
|
QT_PKGNAME=qt$QT_MAJOR;
|
||||||
FCEUX_VERSION_MAJOR=2
|
FCEUX_VERSION_MAJOR=2
|
||||||
FCEUX_VERSION_MINOR=3
|
FCEUX_VERSION_MINOR=3
|
||||||
FCEUX_VERSION_PATCH=0
|
FCEUX_VERSION_PATCH=0
|
||||||
|
@ -30,9 +32,9 @@ echo '****************************************'
|
||||||
brew install sdl2
|
brew install sdl2
|
||||||
|
|
||||||
echo '****************************************'
|
echo '****************************************'
|
||||||
echo 'Install Dependency Qt5'
|
echo "Install Dependency $QT_PKGNAME"
|
||||||
echo '****************************************'
|
echo '****************************************'
|
||||||
brew install qt5
|
brew install $QT_PKGNAME
|
||||||
|
|
||||||
echo '****************************************'
|
echo '****************************************'
|
||||||
echo 'Install Dependency minizip'
|
echo 'Install Dependency minizip'
|
||||||
|
@ -43,10 +45,17 @@ brew install minizip
|
||||||
|
|
||||||
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig:
|
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig:
|
||||||
|
|
||||||
QT_CMAKE=`find /usr/local -name Qt5Config.cmake`
|
#QT_CMAKE=`find /usr/local -name Qt5Config.cmake`
|
||||||
echo $QT_CMAKE;
|
#echo $QT_CMAKE;
|
||||||
export Qt5_DIR=`dirname $QT_CMAKE`;
|
#export Qt5_DIR=`dirname $QT_CMAKE`;
|
||||||
|
|
||||||
|
if [ $QT_MAJOR == 6 ]; then
|
||||||
|
export Qt6_DIR=`brew --prefix qt6`;
|
||||||
|
echo "Qt6_DIR=$Qt6_DIR";
|
||||||
|
else
|
||||||
|
export Qt5_DIR=`brew --prefix qt5`;
|
||||||
echo "Qt5_DIR=$Qt5_DIR";
|
echo "Qt5_DIR=$Qt5_DIR";
|
||||||
|
fi
|
||||||
|
|
||||||
echo '**************************'
|
echo '**************************'
|
||||||
echo '*** Building Project ***'
|
echo '*** Building Project ***'
|
||||||
|
@ -57,7 +66,7 @@ cmake \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
-DCMAKE_INSTALL_PREFIX=$INSTALL_PREFIX \
|
-DCMAKE_INSTALL_PREFIX=$INSTALL_PREFIX \
|
||||||
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
|
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
|
||||||
-DCMAKE_PREFIX_PATH=`brew --prefix qt5` \
|
-DCMAKE_PREFIX_PATH=`brew --prefix $QT_PKGNAME` \
|
||||||
-DCMAKE_PROJECT_VERSION_MAJOR=$FCEUX_VERSION_MAJOR \
|
-DCMAKE_PROJECT_VERSION_MAJOR=$FCEUX_VERSION_MAJOR \
|
||||||
-DCMAKE_PROJECT_VERSION_MINOR=$FCEUX_VERSION_MINOR \
|
-DCMAKE_PROJECT_VERSION_MINOR=$FCEUX_VERSION_MINOR \
|
||||||
-DCMAKE_PROJECT_VERSION_PATCH=$FCEUX_VERSION_PATCH \
|
-DCMAKE_PROJECT_VERSION_PATCH=$FCEUX_VERSION_PATCH \
|
||||||
|
|
|
@ -2,7 +2,8 @@
|
||||||
set PROJECT_ROOT=%~dp0..
|
set PROJECT_ROOT=%~dp0..
|
||||||
set CWD=%CD%
|
set CWD=%CD%
|
||||||
|
|
||||||
call "C:\Qt\5.15.2\msvc2019_64\bin\qtenv2.bat"
|
REM call "C:\Qt\6.0\msvc2019_64\bin\qtenv2.bat"
|
||||||
|
call "C:\Qt\5.15\msvc2019_64\bin\qtenv2.bat"
|
||||||
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
|
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
|
||||||
|
|
||||||
cd %CWD%
|
cd %CWD%
|
||||||
|
|
|
@ -5,17 +5,17 @@ set(CMAKE_AUTORCC ON)
|
||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if ( ${QT6} )
|
if ( ${QT6} )
|
||||||
message( STATUS "GUI backend: QT6")
|
message( STATUS "GUI Frontend: Qt6")
|
||||||
set( Qt Qt6 )
|
set( Qt Qt6 )
|
||||||
else()
|
else()
|
||||||
message( STATUS "GUI backend: QT5")
|
message( STATUS "GUI Frontend: Qt5")
|
||||||
set( Qt Qt5 )
|
set( Qt Qt5 )
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if ( ${QT6} )
|
if ( ${QT6} )
|
||||||
find_package( Qt6 COMPONENTS Widgets OpenGL OpenGLWidgets REQUIRED)
|
find_package( Qt6 COMPONENTS Widgets OpenGL OpenGLWidgets REQUIRED)
|
||||||
add_definitions( ${Qt6Widgets_DEFINITIONS} ${Qt6OpenGLWidgets_DEFINITIONS} )
|
add_definitions( ${Qt6Widgets_DEFINITIONS} ${Qt6OpenGLWidgets_DEFINITIONS} )
|
||||||
include_directories( ${Qt6Widgets_INCLUDE_DIRS} ${QtOpenGLWidgets_INCLUDE_DIRS} )
|
include_directories( ${Qt6Widgets_INCLUDE_DIRS} ${Qt6OpenGLWidgets_INCLUDE_DIRS} )
|
||||||
else()
|
else()
|
||||||
find_package( Qt5 COMPONENTS Widgets OpenGL REQUIRED)
|
find_package( Qt5 COMPONENTS Widgets OpenGL REQUIRED)
|
||||||
add_definitions( ${Qt5Widgets_DEFINITIONS} )
|
add_definitions( ${Qt5Widgets_DEFINITIONS} )
|
||||||
|
|
Loading…
Reference in New Issue