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

+15
View File
@@ -0,0 +1,15 @@
# Copy non-system dependencies using ldd
execute_process(
COMMAND ldd ${INPUT_LIB}
OUTPUT_VARIABLE LDD_OUT
)
string(REGEX MATCHALL "\t[^ ]+ => (/[^ ]+)" MATCHES "${LDD_OUT}")
foreach(M ${MATCHES})
string(REGEX REPLACE ".*=> " "" M_PATH ${M})
if (NOT "${M_PATH}" MATCHES "^/usr/lib" AND NOT "${M_PATH}" MATCHES "^/lib")
message(STATUS "📦 Copying ${M_PATH}")
file(COPY ${M_PATH} DESTINATION ${OUT_DIR})
endif()
endforeach()
+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()