forked from osmocom/wireshark
macOS: Minimize our dsyms.
Pass --minimize to dsymutil, which reduces the size of our dsyms. Print the name of each file as we dsymify it. Change-Id: Ic8b14daa2ceaa07c2c9ca3162020e5861d165f6d Ping-bug: 15361 Reviewed-on: https://code.wireshark.org/review/31150 Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
parent
036c3d6bc7
commit
cea1686495
|
@ -399,36 +399,41 @@ else
|
|||
|
||||
fi
|
||||
|
||||
echo "Dsymifying executables"
|
||||
dsymify_file () {
|
||||
echo " $1"
|
||||
dsymutil --minimize "$1"
|
||||
}
|
||||
|
||||
echo "Dsymifying executables:"
|
||||
if [ -z "$bundle_binary_list" ] ; then
|
||||
echo "No executables specified for dsymifying."
|
||||
exit 1
|
||||
fi
|
||||
for binary in $bundle_binary_list ; do
|
||||
if [ -e "$binary" ];then
|
||||
dsymutil "$binary"
|
||||
dsymify_file "$binary"
|
||||
fi
|
||||
done
|
||||
|
||||
echo "Dsymifying frameworks"
|
||||
echo "Dsymifying frameworks:"
|
||||
for framework in "$pkglib"/*.framework/Versions/*/* ; do
|
||||
if [ -f "$framework" ];then
|
||||
dsymutil "$framework"
|
||||
dsymify_file "$framework"
|
||||
fi
|
||||
done
|
||||
|
||||
echo "Dsymifying libraries"
|
||||
echo "Dsymifying libraries:"
|
||||
for library in "$pkglib"/*.dylib ; do
|
||||
#
|
||||
# Squelch warnings, in case the .o files from building
|
||||
# support libraries aren't around any more.
|
||||
#
|
||||
dsymutil "$library" | grep -E -v 'unable to open object file'
|
||||
dsymify_file "$library" | grep -E -v 'unable to open object file'
|
||||
done
|
||||
|
||||
echo "Dsymifying plugins"
|
||||
echo "Dsymifying plugins:"
|
||||
for plugin in "$pkgplugin"/*/*.so ; do
|
||||
dsymutil "$plugin"
|
||||
dsymify_file "$plugin"
|
||||
done
|
||||
|
||||
codesign_file () {
|
||||
|
|
Loading…
Reference in New Issue