From 0b8086ce3fe7f9eea67c476129e78c04ae2b1679 Mon Sep 17 00:00:00 2001 From: Thomas Monjalon Date: Sun, 24 May 2020 19:43:41 +0200 Subject: [PATCH] devtools: remove useless files from ABI reference When building an ABI reference with meson, some static libraries are built and linked in apps. They are useless and take a lot of space. Those binaries, and other useless files (examples and doc files) in the share/ directory, are removed after being installed. In order to save time when building the ABI reference, the examples (which are not installed anyway) are not compiled. Signed-off-by: Thomas Monjalon Acked-by: David Marchand --- devtools/test-meson-builds.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/devtools/test-meson-builds.sh b/devtools/test-meson-builds.sh index d96d1af5f9..a87de635a2 100755 --- a/devtools/test-meson-builds.sh +++ b/devtools/test-meson-builds.sh @@ -154,10 +154,16 @@ build () # fi rm -rf $abirefdir/build - config $abirefdir/src $abirefdir/build $cross $* + config $abirefdir/src $abirefdir/build $cross \ + -Dexamples= $* compile $abirefdir/build install_target $abirefdir/build $abirefdir/$targetdir $srcdir/devtools/gen-abi.sh $abirefdir/$targetdir + + # save disk space by removing static libs and apps + find $abirefdir/$targetdir/usr/local -name '*.a' -delete + rm -rf $abirefdir/$targetdir/usr/local/bin + rm -rf $abirefdir/$targetdir/usr/local/share fi install_target $builds_dir/$targetdir \ -- 2.20.1