Skip to content

Commit 0250924

Browse files
committed
CMake: Properly add lzma and gnurx to deployment
1 parent f5f2321 commit 0250924

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

_common/deployment.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ function(pgeSetupQtDeploymet _is_static_qt _is_shared_mixer)
9595
find_mingw_dll(WINPTHREAD "libwinpthread-1.dll" MINGW_DLLS "${MINGW_BIN_PATH}")
9696
find_mingw_dll(WINPTHREADGC3 "pthreadGC-3.dll" MINGW_DLLS "${MINGW_BIN_PATH}")
9797
find_mingw_dll(STDCPP "libstdc++-6.dll" MINGW_DLLS "${MINGW_BIN_PATH}")
98+
if(PGE_BUILD_XTCONVERT)
99+
find_mingw_dll(LZMA5 "liblzma-5.dll" MINGW_DLLS "${MINGW_BIN_PATH}")
100+
find_mingw_dll(GNURX "libgnurx-0.dll" MINGW_DLLS "${MINGW_BIN_PATH}")
101+
endif()
98102

99103
message("MinGW DLLs: [${MINGW_DLLS}]")
100104

_common/deployment_windows.cmake

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ if(SevenZipProgram)
6363
"libgcc*.dll"
6464
"libstdc*.dll"
6565
)
66+
# DLLs variables formed at the deployment.dll, via the find_mingw_dll() macro
6667
if(MINGWDLL_MINGWEX)
6768
list(APPEND MinGW_BuiltDlls "libmingwex-0.dll")
6869
endif()
@@ -74,8 +75,13 @@ if(SevenZipProgram)
7475
endif()
7576

7677
if(PGE_BUILD_XTCONVERT)
77-
# XTConvert needs to supply the liblzma-5.dll
78-
list(APPEND MinGW_BuiltDlls "liblzma-5.dll")
78+
# XTConvert needs to supply the liblzma-5.dll and libgnurx-0.dll
79+
if(MINGWDLL_LZMA5)
80+
list(APPEND MinGW_BuiltDlls "liblzma-5.dll")
81+
endif()
82+
if(MINGWDLL_GNURX)
83+
list(APPEND MinGW_BuiltDlls "libgnurx-0.dll")
84+
endif()
7985
endif()
8086

8187
set(PGE_CommonQtFiles)

0 commit comments

Comments
 (0)