new/external/libmali/scripts/fixup_nowrap.sh

18 lines
314 B
Bash
Raw Permalink Normal View History

2025-05-10 21:58:58 +08:00
#!/bin/sh -e
[ $# -lt 1 ] && {
echo "usage: $0 <dest dir>"
exit 1
}
BUILD_DIR="${MESON_BUILD_ROOT:-build}"
DEST_DIR="${MESON_INSTALL_DESTDIR_PREFIX:-/usr}/$1"
# Cleanup wrappers
cd "$DEST_DIR"
for f in $(cd $BUILD_DIR && find . -maxdepth 1 -type f -name "lib*.so.[0-9]"); do
cp -a libmali.so $f
done
exit 0