Port .def files check in meson
Meson builds don't have the .def
files validation which we have in autotools. So the only way we'd discover the inconsistencies is because the Windows build would fail. Also it would not give a full list easy to process so even a fix could be incomplete.
Compare a failed .def
check in autotools distcheck:
make[3]: Entering directory '/builds/GNOME/gimp/_build'
Problem found in ../libgimp/gimpui.def
the following symbols are in the library,
but are not listed in the .def-file:
+ gimp_procedure_dialog_get_int_radio
Problem found in ../libgimpwidgets/gimpwidgets.def
the following symbols are in the library,
but are not listed in the .def-file:
+ gimp_int_radio_frame_append
+ gimp_int_radio_frame_get_active
+ gimp_int_radio_frame_get_active_user_data
+ gimp_int_radio_frame_get_type
+ gimp_int_radio_frame_new
+ gimp_int_radio_frame_new_array
+ gimp_int_radio_frame_new_from_store
+ gimp_int_radio_frame_new_valist
+ gimp_int_radio_frame_prepend
+ gimp_int_radio_frame_set_active
+ gimp_int_radio_frame_set_active_by_user_data
+ gimp_int_radio_frame_set_sensitivity
*** .def files inconsistent ***
to a build failure in meson:
/usr/bin/x86_64-w64-mingw32-ld: plug-ins/common/file-raw-data.exe.p/file-raw-data.c.obj: in function `save_dialog':
/builds/GNOME/gimp/_build/../plug-ins/common/file-raw-data.c:2060: undefined reference to `gimp_procedure_dialog_get_int_radio'
/usr/bin/x86_64-w64-mingw32-ld: /builds/GNOME/gimp/_build/../plug-ins/common/file-raw-data.c:2075: undefined reference to `gimp_procedure_dialog_get_int_radio'
collect2: error: ld returned 1 exit status
So we need the equivalent check which will give us exhaustive information.