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()