Initial import of libdpf.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Ryan Henry 2026-09-24 14:08:32 -06:00
commit e4e666f459
4563 changed files with 1690372 additions and 0 deletions

65
thirdparty/simde/docker/bin/arch2gcc.sh vendored Executable file
View file

@ -0,0 +1,65 @@
#!/bin/sh
case "${1}" in
"alpha")
echo "alpha-linux-gnu"
;;
"amd64")
echo "x86_64-linux-gnu"
;;
"arm64")
echo "aarch64-linux-gnu"
;;
"armhf")
echo "arm-linux-gnueabihf"
;;
"armel")
echo "arm-linux-gnueabi"
;;
"hppa")
echo "hppa-linux-gnu"
;;
"hppa64")
echo "hppa64-linux-gnu"
;;
"i386")
echo "i686-linux-gnu"
;;
"m68k")
echo "m68k-linux-gnu"
;;
"mips64el")
echo "mips64el-linux-gnuabi64"
;;
"mipsel")
echo "mips64-linux-gnuabi64"
;;
"ppc")
echo "powerpc-linux-gnu"
;;
"ppc64")
echo "powerpc64-linux-gnu"
;;
"ppc64el")
echo "powerpc64le-linux-gnu"
;;
"riscv64")
echo "riscv64-linux-gnu"
;;
"s390x")
echo "s390x-linux-gnu"
;;
"sh4")
echo "sh4-linux-gnu"
;;
"sparc64")
echo "sparc64-linux-gnu"
;;
"x32")
echo "x86_64-linux-gnux32"
;;
*)
echo "Unknown architecture: ${1}" >&2
exit 1
;;
esac

View file

@ -0,0 +1,12 @@
#!/bin/bash
if [ $# = 0 ]; then
for crossfile in /usr/local/share/meson/cross/simde/*.cross; do
basename "$crossfile" .cross
done | xargs "$0"
else
while [ $# -gt 0 ]; do
ninja -C /opt/simde-build/"$1" test || exit 1
shift
done
fi

View file

@ -0,0 +1,30 @@
#!/bin/bash
function configure {
if [ -e "/opt/simde/${1}" ]; then
rm -rf "/opt/simde/${1}";
fi
if [ -e "/usr/local/share/meson/cross/simde/${1}.cross" ]; then
meson --cross-file="/usr/local/share/meson/cross/simde/${1}.cross" "/opt/simde/${1}" "/usr/local/src/simde"
fi
}
if [ $# -gt 0 ]; then
while [ $# -ge 1 ]; do
configure "$1"
shift
done
else
for cross in /usr/local/share/meson/cross/simde/*.cross; do
target="$(basename "$cross" .cross)"
if [ ! -e "/opt/simde/${target}" ]; then
configure "$(basename "${target}" .cross)"
fi
done
for target in "aarch64-clang-10" "emscripten"; do
if [ ! -e "/opt/simde/${target}" ]; then
configure "$(basename "${target}" .cross)"
fi
done
fi