-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
131 additions
and
63 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,14 +17,19 @@ jobs: | |
include: | ||
- os: ubuntu-22.04 | ||
compiler: 'gcc' | ||
qt: qt5 | ||
- os: ubuntu-22.04 | ||
compiler: 'clang' | ||
qt: qt5 | ||
- os: macos-11.0 | ||
compiler: 'clang' | ||
qt: qt5 | ||
- os: windows-2022 | ||
compiler: msvc | ||
qt: qt5 | ||
- os: macos-11.0 | ||
compiler: 'clang' | ||
qt: qt6 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
|
@@ -41,7 +46,15 @@ jobs: | |
name: Install Packages for Ubuntu | ||
run: | | ||
sudo apt update -qq | ||
sudo apt install -y build-essential git qt5-qmake libqt5opengl5-dev zlib1g-dev libssl-dev libminiupnpc-dev | ||
sudo apt install -y build-essential git zlib1g-dev libssl-dev libminiupnpc-dev | ||
- if: contains( matrix.os, 'ubuntu' ) && matrix.qt == 'qt5' | ||
name: Install Qt5 for Ubuntu | ||
run: | | ||
sudo apt install -y qt5-qmake libqt5opengl5-dev | ||
- if: contains( matrix.os, 'ubuntu' ) && matrix.qt == 'qt6' | ||
name: Install Qt6 for Ubuntu | ||
run: | | ||
sudo apt install -y qmake6 libqt6opengl6-dev libqt6core5compat6-dev | ||
- if: contains( matrix.os, 'ubuntu' ) && matrix.compiler == 'gcc' | ||
name: Install GCC for Ubuntu | ||
run: | | ||
|
@@ -67,11 +80,21 @@ jobs: | |
- if: runner.os == 'macOS' | ||
name: Install Packages for Mac | ||
run: | | ||
brew install qt5 openssl\@1.1 lcov miniupnpc | ||
brew install lcov miniupnpc | ||
- if: runner.os == 'macOS' && matrix.qt == 'qt5' | ||
name: Install Qt5 for Mac | ||
run: | | ||
brew install qt5 openssl\@1.1 | ||
brew link qt5 --force | ||
echo "$(brew --prefix qt5)/bin" >> $GITHUB_PATH | ||
echo "MMAPPER_CMAKE_EXTRA=-DUSE_CODE_COVERAGE=true -DOPENSSL_ROOT_DIR=/usr/local/opt/[email protected]" >> $GITHUB_ENV | ||
echo "COVERAGE=true" >> $GITHUB_ENV | ||
echo "MMAPPER_CMAKE_EXTRA=-DOPENSSL_ROOT_DIR=/usr/local/opt/[email protected]" >> $GITHUB_ENV | ||
- if: runner.os == 'macOS' && matrix.qt == 'qt6' | ||
name: Install Qt6 for Mac | ||
run: | | ||
brew install qt6 openssl\@3 | ||
brew link qt6 --force | ||
echo "$(brew --prefix qt6)/bin" >> $GITHUB_PATH | ||
echo "MMAPPER_CMAKE_EXTRA=-DOPENSSL_ROOT_DIR=/usr/local/opt/openssl@3" >> $GITHUB_ENV | ||
# | ||
|
@@ -171,17 +194,17 @@ jobs: | |
name: Upload Package for Mac | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: build-test Mac ${{ matrix.os }} ${{ matrix.compiler }} | ||
name: build-test Mac ${{ matrix.os }} ${{ matrix.compiler }} ${{ matrix.qt }} | ||
path: ${{ github.workspace }}/artifact/*.dmg | ||
- if: contains( matrix.os, 'ubuntu' ) | ||
name: Upload Package for Ubuntu | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: build-test Linux ${{ matrix.os }} ${{ matrix.compiler }} | ||
name: build-test Linux ${{ matrix.os }} ${{ matrix.compiler }} ${{ matrix.qt }} | ||
path: ${{ github.workspace }}/artifact/*.deb | ||
- if: runner.os == 'Windows' | ||
name: Upload Package for Windows | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: build-test Windows ${{ matrix.os }} ${{ matrix.compiler }} | ||
name: build-test Windows ${{ matrix.os }} ${{ matrix.compiler }} ${{ matrix.qt }} | ||
path: ${{ github.workspace }}/artifact/*.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -499,6 +499,13 @@ target_link_libraries(mmapper PUBLIC | |
Qt${QT_VERSION_MAJOR}::OpenGL | ||
) | ||
|
||
if (QT_VERSION_MAJOR MATCHES 6) | ||
target_link_libraries(mmapper PUBLIC | ||
Qt::OpenGLWidgets | ||
Qt::Core5Compat | ||
) | ||
endif() | ||
|
||
set_target_properties( | ||
mmapper PROPERTIES | ||
CXX_STANDARD 17 | ||
|
@@ -676,12 +683,20 @@ if(UNIX AND NOT APPLE) | |
# Debian | ||
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "[email protected]") | ||
set(CPACK_DEBIAN_PACKAGE_NAME "mmapper") | ||
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libqt5core5a (>= 5.15.0), libqt5gui5 (>= 5.15.0), libqt5opengl5 (>= 5.15.0), libqt5network5 (>= 5.15.0)") | ||
if (QT_VERSION_MAJOR MATCHES 5) | ||
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libqt5core5a (>= 5.15.0), libqt5gui5 (>= 5.15.0), libqt5opengl5 (>= 5.15.0), libqt5network5 (>= 5.15.0)") | ||
else() | ||
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libqt6core6, libqt6gui6, libqt6opengl6, libqt6network6, libqt6core5compat6") | ||
endif() | ||
if(WITH_ZLIB) | ||
set(CPACK_DEBIAN_PACKAGE_DEPENDS "${CPACK_DEBIAN_PACKAGE_DEPENDS}, zlib1g") | ||
endif() | ||
if(WITH_OPENSSL) | ||
set(CPACK_DEBIAN_PACKAGE_DEPENDS "${CPACK_DEBIAN_PACKAGE_DEPENDS}, libssl1.1") | ||
if (QT_VERSION_MAJOR MATCHES 5) | ||
set(CPACK_DEBIAN_PACKAGE_DEPENDS "${CPACK_DEBIAN_PACKAGE_DEPENDS}, libssl1.1") | ||
else() | ||
set(CPACK_DEBIAN_PACKAGE_DEPENDS "${CPACK_DEBIAN_PACKAGE_DEPENDS}, libssl3") | ||
endif() | ||
endif() | ||
if(WITH_MINIUPNPC) | ||
set(CPACK_DEBIAN_PACKAGE_DEPENDS "${CPACK_DEBIAN_PACKAGE_DEPENDS}, libminiupnpc${MINIUPNPC_API_VERSION}") | ||
|
@@ -701,7 +716,10 @@ if(WIN32) | |
) | ||
|
||
# Bundle Library Files | ||
set(WINDEPLOYQT_ARGS ${WINDEPLOYQT_ARGS} --dir ${CMAKE_CURRENT_BINARY_DIR}/bin --compiler-runtime --no-angle) | ||
set(WINDEPLOYQT_ARGS ${WINDEPLOYQT_ARGS} --dir ${CMAKE_CURRENT_BINARY_DIR}/bin --compiler-runtime) | ||
if (QT_VERSION_MAJOR MATCHES 5) | ||
set(WINDEPLOYQT_ARGS ${WINDEPLOYQT_ARGS} --no-angle) | ||
endif() | ||
find_program(WINDEPLOYQT_APP windeployqt HINTS ${QTDIR} ENV QTDIR PATH_SUFFIXES bin) | ||
message(" - windeployqt path: ${WINDEPLOYQT_APP}") | ||
message(" - windeployqt args: ${WINDEPLOYQT_ARGS}") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.