reduce size of sparsely-used libgio under static linking
@sdroege
Submitted by Sebastian Dröge Link to original bug (#727798)
Description
Hi,
attached patch adds a configure parameter to allow disabling GApplication, GMenu and related API. These are all useless on Android and iOS, and only marginally useful on OS X and Windows, and even on Unixes that don't run GNOME.
If this patch is accepted I'm also going to prepare more patches that allow disabling GSettings, GDBus, xdgmime, GResource and GRegex.
Reasoning for this is that all of these are not useful and use quite a bit of space. By removing all this I was able to get the size of an Android app down by about 1MB compressed size per architecture.
If you worry about maintainability of many little parameters to disable subsystems I would also be fine with grouping them into a --disable-gnome (for all but GRegex, I'm also open for better suggestions for the name) or making them be removed automatically for non-Linux targets.
If you worry that nobody is ever going to test these things, we run buildbots for GStreamer on all supported platforms (Linux, Windows, OS X, Android and iOS).