trying to migrate
VoidLoader/VoidLoaderCore/pipeline/head There was a failure building this commit

Signed-off-by: Faumaray <faumaray@gmail.com>
This commit is contained in:
faumaray committed 2025-10-19 02:59:05 +03:00
1 parent 9117db390b
commit 6527ef9d69
12 files changed
+647 -17

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
# Copy referenced DLLs using objdump
execute_process(
COMMAND objdump -p ${INPUT_LIB}
OUTPUT_VARIABLE OBJDUMP_OUT
)
string(REGEX MATCHALL "DLL Name: ([A-Za-z0-9_\\.-]+)" DLLS "${OBJDUMP_OUT}")
set(MINGW_ROOTS
"/usr/x86_64-w64-mingw32/bin"
"/usr/lib/gcc/x86_64-w64-mingw32/"
)
foreach(DLL ${DLLS})
string(REGEX REPLACE "DLL Name: " "" DLL_NAME ${DLL})
foreach(ROOT ${MINGW_ROOTS})
file(GLOB CAND "${ROOT}/${DLL_NAME}")
if (CAND)
message(STATUS "📦 Copying ${CAND}")
file(COPY ${CAND} DESTINATION ${OUT_DIR})
break()
endif()
endforeach()
endforeach()