添加打包时image相关插件安装。
This commit is contained in:
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
@@ -17,7 +17,7 @@
|
|||||||
"args": []
|
"args": []
|
||||||
},
|
},
|
||||||
"cmake.configureSettings": {
|
"cmake.configureSettings": {
|
||||||
"CMAKE_PREFIX_PATH": "C:/dev/qt6",
|
"CMAKE_PREFIX_PATH": "C:/local/qt6",
|
||||||
},
|
},
|
||||||
"cmake.configureArgs": [
|
"cmake.configureArgs": [
|
||||||
"-Wno-dev",
|
"-Wno-dev",
|
||||||
|
|||||||
@@ -76,6 +76,11 @@ set(QT_DEP_STYLES
|
|||||||
"${CMAKE_PREFIX_PATH}/plugins/styles/qmodernwindowsstyle.dll"
|
"${CMAKE_PREFIX_PATH}/plugins/styles/qmodernwindowsstyle.dll"
|
||||||
"${CMAKE_PREFIX_PATH}/plugins/styles/qwindowsvistastyle.dll"
|
"${CMAKE_PREFIX_PATH}/plugins/styles/qwindowsvistastyle.dll"
|
||||||
)
|
)
|
||||||
|
set(QT_IMG_DEP
|
||||||
|
"${CMAKE_PREFIX_PATH}/plugins/imageformats/qgif.dll"
|
||||||
|
"${CMAKE_PREFIX_PATH}/plugins/imageformats/qico.dll"
|
||||||
|
"${CMAKE_PREFIX_PATH}/plugins/imageformats/qjpeg.dll"
|
||||||
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(CMAKE_DEBUG_POSTFIX "d")
|
set(CMAKE_DEBUG_POSTFIX "d")
|
||||||
@@ -109,7 +114,7 @@ function(safe_install_files files_list destination)
|
|||||||
if(EXISTS ${file})
|
if(EXISTS ${file})
|
||||||
list(APPEND existing_files ${file})
|
list(APPEND existing_files ${file})
|
||||||
else()
|
else()
|
||||||
message(STATUS "跳过: ${file}")
|
message(STATUS "Jump: ${file}")
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
if(existing_files)
|
if(existing_files)
|
||||||
@@ -129,6 +134,7 @@ if (WIN32)
|
|||||||
install(FILES ${QT_DEP_FILES} DESTINATION bin)
|
install(FILES ${QT_DEP_FILES} DESTINATION bin)
|
||||||
safe_install_files("${QT_DEP_PLATFORM}" "bin/platforms")
|
safe_install_files("${QT_DEP_PLATFORM}" "bin/platforms")
|
||||||
safe_install_files("${QT_DEP_STYLES}" "bin/styles")
|
safe_install_files("${QT_DEP_STYLES}" "bin/styles")
|
||||||
|
safe_install_files("${QT_IMG_DEP}" "bin/imageformats")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
execute_process(
|
execute_process(
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
@echo on
|
@echo on
|
||||||
|
|
||||||
set QT_DIR=C:/Qt/6.8.3/mingw_64
|
set QT_DIR=C:/local/qt6
|
||||||
cd ..
|
cd ..
|
||||||
cmake -G "MinGW Makefiles" -Bbuild-qt6 -S. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=%QT_DIR% -DQT_DEFAULT_MAJOR_VERSION=6 -DCOMPILE_GUI=ON -DRELEASE_MARK=ON
|
cmake -G "MinGW Makefiles" -Bbuild-qt6 -S. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=%QT_DIR% -DQT_DEFAULT_MAJOR_VERSION=6 -DCOMPILE_GUI=ON -DRELEASE_MARK=ON
|
||||||
cmake --build build-qt6 --config Release
|
cmake --build build-qt6 --config Release
|
||||||
|
|||||||
Reference in New Issue
Block a user