initial commit
Signed-off-by: Peter Siegmund <mars3142@noreply.mars3142.dev>
This commit is contained in:
84
libs/wxWidgets-3.3.1/lib/abicheck.sh
Executable file
84
libs/wxWidgets-3.3.1/lib/abicheck.sh
Executable file
@@ -0,0 +1,84 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Script originally based on GTK+'s own abicheck.sh; it should be run anytime
|
||||
# there is a change in the stable branch of wxWidgets which could lead to an
|
||||
# ABI breakage and thus result in a binary-incompatible change (see tech docs).
|
||||
#
|
||||
|
||||
|
||||
expected_abi_file="expected_abi"
|
||||
actual_abi_file="actual_abi"
|
||||
|
||||
if [[ "$(uname)" == "Darwin" ]]; then
|
||||
file_mask=*.dylib
|
||||
nm_options="-g -U"
|
||||
else
|
||||
file_mask=*.so
|
||||
nm_options="-D -g --defined-only"
|
||||
fi
|
||||
|
||||
if [[ "$1" == "--generate" ]]; then
|
||||
|
||||
# IMPORTANT: we need a shared build of wxWidgets to proceed
|
||||
if [[ $(echo $file_mask) == "$file_mask" ]]; then
|
||||
echo "No shared objects ($file_mask) were found... aborting"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# generated the "expected ABI" for later comparison
|
||||
rm -f $expected_abi_file
|
||||
for library in $file_mask; do
|
||||
# NOTE: don't use -C option as otherwise cut won't work correctly
|
||||
nm $nm_options $library | cut -d ' ' -f 2,3 | sort >>$expected_abi_file
|
||||
done
|
||||
|
||||
echo "Expected wxWidgets ABI generated in \"$expected_abi_file\"..."
|
||||
|
||||
elif [[ -z "$1" ]]; then
|
||||
|
||||
if [[ ! -f "$expected_abi_file" ]]; then
|
||||
echo "The file containing the expected wxWidgets ABI '$expected_abi_file' does not exist!"
|
||||
echo "Please generate it first using the '--generate' option"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Comparing actual ABI with the expected ABI (loading it from \"$expected_abi_file\")..."
|
||||
|
||||
# IMPORTANT: we need a shared build of wxWidgets to do the check
|
||||
if [[ $(echo $file_mask) == "*$file_mask" ]]; then
|
||||
echo "No shared objects ($file_mask) were found... aborting"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
rm -f $actual_abi_file
|
||||
for library in $file_mask; do
|
||||
# NOTE: don't use -C option as otherwise cut won't work correctly
|
||||
nm $nm_options $library | cut -d ' ' -f 2,3 | sort >>$actual_abi_file
|
||||
done
|
||||
|
||||
result=`diff -u $expected_abi_file $actual_abi_file`
|
||||
|
||||
if [[ -z "$result" ]]; then
|
||||
echo "No binary (in)compatible changes were found."
|
||||
else
|
||||
echo "========================================================="
|
||||
echo "WARNING: Possible binary-incompatible changes were found:"
|
||||
echo "========================================================="
|
||||
echo
|
||||
echo "$result"
|
||||
|
||||
# this doesn't necessarly indicate that binary compatibility was surely
|
||||
# broken; e.g. adding non-virtual methods will generate a new line in the
|
||||
# $actual_abi_file but that's a compatible change.
|
||||
fi
|
||||
|
||||
else
|
||||
|
||||
echo "Usage: $0 [--generate]"
|
||||
echo "When running without options, compares the wxWidgets ABI saved in '$expected_abi_file'"
|
||||
echo "with the current ABI of the .so files of the working directory."
|
||||
echo "When --generate is given, saves in '$expected_abi_file' the ABI of the .so files"
|
||||
echo "(for later comparisons)."
|
||||
|
||||
fi
|
||||
|
||||
12
libs/wxWidgets-3.3.1/lib/vms.opt
Normal file
12
libs/wxWidgets-3.3.1/lib/vms.opt
Normal file
@@ -0,0 +1,12 @@
|
||||
wx_root:[wxwidgets.lib]libwx_motif.olb/lib
|
||||
sys$library:libpcre2/lib
|
||||
sys$library:libjpeg.olb/lib
|
||||
sys$library:libpng.olb/lib
|
||||
sys$library:libz.olb/lib
|
||||
sys$share:tiff$shr/share
|
||||
X11:libxpm.olb/lib
|
||||
sys$library:decw$xextlibshr.exe/share
|
||||
sys$library:decw$xlibshr.exe/share
|
||||
sys$library:decw$xtlibshrr5.exe/share
|
||||
sys$library:decw$xmlibshr12.exe/share
|
||||
sys$library:decw$xmulibshrr5.exe/share
|
||||
15
libs/wxWidgets-3.3.1/lib/vms_gtk.opt
Normal file
15
libs/wxWidgets-3.3.1/lib/vms_gtk.opt
Normal file
@@ -0,0 +1,15 @@
|
||||
wx_root:[wxwidgets.lib]libwx_gtk.olb/lib
|
||||
sys$library:gthread.obj
|
||||
sys$library:libpcre2/lib
|
||||
sys$library:libjpeg.olb/lib
|
||||
sys$library:libpng.olb/lib
|
||||
sys$library:libz.olb/lib
|
||||
sys$share:tiff$shr/share
|
||||
sys$library:expat.olb/lib
|
||||
X11:libxpm.olb/lib
|
||||
sys$share:libgtk.exe/share
|
||||
sys$share:libgdk.exe/share
|
||||
sys$share:libglib.exe/share
|
||||
sys$share:pthread$rtl.exe/share
|
||||
sys$library:decw$xextlibshr.exe/share
|
||||
sys$library:decw$xlibshr.exe/share
|
||||
21
libs/wxWidgets-3.3.1/lib/vms_gtk2.opt
Normal file
21
libs/wxWidgets-3.3.1/lib/vms_gtk2.opt
Normal file
@@ -0,0 +1,21 @@
|
||||
wx_root:[wxwidgets.lib]libwx_gtk2.olb/lib
|
||||
sys$library:libpcre2/lib
|
||||
sys$library:libcairo.olb/lib
|
||||
sys$library:libpixman.olb/lib
|
||||
sys$library:libjpeg.olb/lib
|
||||
sys$library:libpng.olb/lib
|
||||
sys$library:libz.olb/lib
|
||||
sys$share:tiff$shr/share
|
||||
X11:libxpm.olb/lib
|
||||
sys$library:expat.olb/lib
|
||||
sys$share:libgtk2.exe/share
|
||||
sys$share:libgdk-pixbuf.exe/share
|
||||
sys$share:libgdk2.exe/share
|
||||
sys$share:libpango.exe/share
|
||||
sys$share:libglib2.exe/share
|
||||
sys$share:freetype2shr/share
|
||||
sys$share:libfontconfig/share
|
||||
sys$share:pthread$rtl.exe/share
|
||||
sys$share:libXrender.exe/share
|
||||
sys$library:decw$xextlibshr.exe/share
|
||||
sys$library:decw$xlibshr.exe/share
|
||||
16
libs/wxWidgets-3.3.1/lib/vms_x11_univ.opt
Normal file
16
libs/wxWidgets-3.3.1/lib/vms_x11_univ.opt
Normal file
@@ -0,0 +1,16 @@
|
||||
wx_root:[wxwidgets.lib]libwx_x11_univ.olb/lib
|
||||
sys$library:libpcre2/lib
|
||||
sys$library:libcairo.olb/lib
|
||||
sys$library:libpixman.olb/lib
|
||||
sys$library:libjpeg.olb/lib
|
||||
sys$library:libpng.olb/lib
|
||||
sys$library:libz.olb/lib
|
||||
sys$share:tiff$shr/share
|
||||
sys$library:expat.olb/lib
|
||||
X11:libxpm.olb/lib
|
||||
sys$share:freetype2shr/share
|
||||
sys$share:libfontconfig/share
|
||||
sys$share:pthread$rtl.exe/share
|
||||
sys$share:libXrender.exe/share
|
||||
sys$library:decw$xextlibshr.exe/share
|
||||
sys$library:decw$xlibshr.exe/share
|
||||
Reference in New Issue
Block a user