LLVM: debugging as seems to be not included
Some checks failed
Build cooker / Building_RetroDECK (push) Has been cancelled

This commit is contained in:
XargonWan 2024-11-06 11:47:57 +09:00
parent c14ddc0730
commit 2e57250594

View file

@ -4,8 +4,6 @@ runtime-version: "6.7"
sdk: org.kde.Sdk sdk: org.kde.Sdk
base: org.electronjs.Electron2.BaseApp # Needed for Steam ROM Manager base: org.electronjs.Electron2.BaseApp # Needed for Steam ROM Manager
base-version: "22.08" base-version: "22.08"
sdk-extensions:
- org.freedesktop.Sdk.Extension.llvm18 # Needed for RPCS3
command: retrodeck.sh command: retrodeck.sh
finish-args: finish-args:
@ -689,16 +687,17 @@ modules:
# Search for missing libraries in our libtmp folder # Search for missing libraries in our libtmp folder
missing_libs=$(find "${FLATPAK_DEST}/bin" -type f -exec ldd {} + 2>/dev/null | grep "not found" | awk '{print $1}' | sort | uniq) missing_libs=$(find "${FLATPAK_DEST}/bin" -type f -exec ldd {} + 2>/dev/null | grep "not found" | awk '{print $1}' | sort | uniq)
# for some reason these libraries are not recognized as missing so we mantain this list # Manually specified libraries that are not automatically detected
manually_imported="libpostproc.so.56 libswscale.so.6 libshaderc_shared.so.1 libbz2.so.1.0 libaio.so.1 ld-linux.so.2 libvpx.so.9 libzmusic.so.1 libicuuc.so.73" manually_imported="libpostproc.so.56 libswscale.so.6 libshaderc_shared.so.1 libbz2.so.1.0 libaio.so.1 ld-linux.so.2 libvpx.so.9 libzmusic.so.1 libicuuc.so.73 libLLVM.so.18.1"
# Combine detected missing libraries and manually specified ones
missing_libs="$missing_libs $manually_imported" missing_libs="$missing_libs $manually_imported"
# Origin paths # Source paths
src_dir="${FLATPAK_DEST}/retrodeck/tmplib" src_dir="${FLATPAK_DEST}/retrodeck/tmplib"
src_debug_dir="${FLATPAK_DEST}/retrodeck/tmplib/debug" src_debug_dir="${FLATPAK_DEST}/retrodeck/tmplib/debug"
# Destionation paths # Destination paths
dest_dir="${FLATPAK_DEST}/lib" dest_dir="${FLATPAK_DEST}/lib"
dest_debug_dir="${FLATPAK_DEST}/retrodeck/lib/debug" dest_debug_dir="${FLATPAK_DEST}/retrodeck/lib/debug"
@ -710,18 +709,20 @@ modules:
local dest=$3 local dest=$3
for lib in $missing_libs; do for lib in $missing_libs; do
if [[ -f "$src/$lib" ]]; then if [[ -f "$src/$lib" ]]; then
cp "$src/$lib" "$dest" cp "$src/$lib" "$dest" && echo "Copied \"$lib\" to \"$dest\"" || echo "Error copying \"$lib\""
echo "Copied \"$lib\" to \"$dest\""
elif [[ -f "$src_debug/$lib.debug" ]]; then elif [[ -f "$src_debug/$lib.debug" ]]; then
cp "$src_debug/$lib.debug" "$dest" cp "$src_debug/$lib.debug" "$dest" && echo "Copied debug version of \"$lib\" to \"$dest\"" || echo "Error copying debug version of \"$lib\""
echo "Copied debug version of \"$lib\" to \"$dest\"" else
echo "Library \"$lib\" not found in \"$src\" or \"$src_debug\""
fi fi
done done
} }
# Copy libraries from source to destination
copy_missing_libs "$src_dir" "$src_debug_dir" "$dest_dir" copy_missing_libs "$src_dir" "$src_debug_dir" "$dest_dir"
copy_missing_libs "$src_debug_dir" "$dest_debug_dir" copy_missing_libs "$src_debug_dir" "$dest_debug_dir"
# Remove temporary source directory to free up space
rm -rf "$src_dir" rm -rf "$src_dir"
- name: retrodeck - name: retrodeck