Skip to content

Commit ab72342

Browse files
committed
feat(windows): add Windows build pipeline and Qt configuration support
1 parent cc39a53 commit ab72342

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/build-windows.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ jobs:
9999
call "%VS_PATH%\VC\Auxiliary\Build\${{ matrix.vcvars }}"
100100
cd build
101101
set PATH=%PATH%;C:\Program Files (x86)\Inno Setup 6;%CD%
102+
set "QT_ROOT_DIR=%QT_ROOT_DIR:\=/%"
102103
cmake -GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=output -DQTROOT=%QT_ROOT_DIR% -DMPV_INCLUDE_DIR=mpv/include -DMPV_LIBRARY=mpv/libmpv-2.dll -DCHECK_FOR_UPDATES=ON -DUSE_STATIC_MPVQT=ON ..
103104
lib /def:mpv\mpv.def /out:mpv\libmpv-2.dll.lib /MACHINE:${{ matrix.machine }}
104105
ninja

CMakeModules/QtConfiguration.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ if("${QTROOT}" STREQUAL "")
1717
endforeach()
1818
endif()
1919

20+
if(NOT "${QTROOT}" STREQUAL "")
21+
file(TO_CMAKE_PATH "${QTROOT}" QTROOT)
22+
set(QTROOT "${QTROOT}" CACHE PATH "Qt root directory" FORCE)
23+
endif()
24+
2025
if((NOT IS_DIRECTORY ${QTROOT}) AND (NOT "${QTROOT}" STREQUAL ""))
2126
# Write qt.conf in the Qt depends directory so that the Qt tools can find QML files
2227
set(QTCONFCONTENT "[Paths]

0 commit comments

Comments
 (0)