mirror of
https://github.com/tsukumijima/libmali-rockchip.git
synced 2026-01-24 00:10:50 +01:00
Currently we are using wrapper packages to provide new GBM API and vendor package. But that requires the API clients honor our package config(.pc) files. Adding an option to disable wrappers for the ones that don't follow the rules. Change-Id: Ie55aa712311c1df21ba0c11b924454febecca9f6 Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
15 lines
329 B
Bash
Executable file
15 lines
329 B
Bash
Executable file
#!/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*"); do
|
|
echo $f | grep -q libmali.so || cp -a libmali.so $f
|
|
done
|