Skip to content

Commit

Permalink
Windows: Use Qt 6 build
Browse files Browse the repository at this point in the history
  • Loading branch information
hluk committed Nov 2, 2023
1 parent c18c8b6 commit a28e894
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 8 deletions.
28 changes: 25 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,39 @@ environment:
SNORETOAST_VERSION: 0.9.0

matrix:
- QTDIR: /c/Qt/5.15/msvc2019_64
# - QTDIR: /c/Qt/5.15/msvc2019_64
# CMAKE_GENERATOR: Visual Studio 16 2019
# CMAKE_GENERATOR_ARCH: x64
# BUILD_SUB_DIR: Release
# # https://wiki.qt.io/Qt_5.15_Tools_and_Versions
# # https://www.appveyor.com/docs/windows-images-software/#tools
# OPENSSL_PATH: /c/OpenSSL-v111-Win64/bin
# LIBSSL: libssl-1_1-x64.dll
# LIBCRYPTO: libcrypto-1_1-x64.dll
# WITH_NATIVE_NOTIFICATIONS: "ON"
# WITH_QT6: "OFF"
# WINDEPLOYQT_ARGS: >-
# --no-system-d3d-compiler
# --no-angle
# --no-opengl-sw
# --no-quick

- QTDIR: /c/Qt/6.5/msvc2019_64
CMAKE_GENERATOR: Visual Studio 16 2019
CMAKE_GENERATOR_ARCH: x64
BUILD_SUB_DIR: Release
# https://wiki.qt.io/Qt_5.15_Tools_and_Versions
# https://wiki.qt.io/Qt_6.5_Tools_and_Versions
# https://www.appveyor.com/docs/windows-images-software/#tools
OPENSSL_PATH: /c/OpenSSL-v111-Win64/bin
LIBSSL: libssl-1_1-x64.dll
LIBCRYPTO: libcrypto-1_1-x64.dll
WITH_NATIVE_NOTIFICATIONS: "ON"
GPGPATH: /c/Program Files/Git/usr/bin
WITH_NATIVE_NOTIFICATIONS: "OFF"
WITH_QT6: "ON"
WINDEPLOYQT_ARGS: >-
--no-system-d3d-compiler
--no-opengl-sw
--no-quick
# Parameters for default build commands (build_script is used instead).
build:
Expand Down
2 changes: 1 addition & 1 deletion shared/copyq.iss
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ Source: "{#Root}\plugins\*itemtags.dll"; DestDir: "{app}\plugins"; Components: p
Source: "{#Root}\plugins\*itempinned.dll"; DestDir: "{app}\plugins"; Components: plugins/pinned; Flags: ignoreversion

; Qt and toolchain
Source: "{#Root}\bearer\*.dll"; DestDir: "{app}\bearer"; Components: program; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "{#Root}\bearer\*.dll"; DestDir: "{app}\bearer"; Components: program; Flags: ignoreversion recursesubdirs createallsubdirs skipifsourcedoesntexist
Source: "{#Root}\imageformats\*.dll"; DestDir: "{app}\imageformats"; Components: program; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "{#Root}\platforms\*.dll"; DestDir: "{app}\platforms"; Components: program; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "{#Root}\styles\*.dll"; DestDir: "{app}\styles"; Components: program; Flags: ignoreversion recursesubdirs createallsubdirs
Expand Down
5 changes: 1 addition & 4 deletions utils/appveyor/after_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,7 @@ cp -v "$OPENSSL_PATH/$LIBSSL" "$Destination"

"$QTDIR/bin/windeployqt" --help
"$QTDIR/bin/windeployqt" \
--no-system-d3d-compiler \
--no-angle \
--no-opengl-sw \
--no-quick \
$WINDEPLOYQT_ARGS \
"${kf5_libraries[@]}" \
"$Executable"

Expand Down
1 change: 1 addition & 0 deletions utils/appveyor/before_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,5 @@ cmake -B"$BUILD_PATH" -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_PREFIX_PATH="$CMAKE_PREFIX_PATH" \
-DCMAKE_INSTALL_SYSTEM_RUNTIME_DESTINATION=. \
-DWITH_NATIVE_NOTIFICATIONS="$WITH_NATIVE_NOTIFICATIONS" \
-DWITH_QT6="$WITH_QT6" \
-DWITH_TESTS=ON

0 comments on commit a28e894

Please sign in to comment.