Add iOS build support
@thiblahute
Submitted by Thibault Saunier Link to original bug (#737119)
Description
We should make sure that upstream GLib builds for iOS. Currently for the GStreamer project, we have a patch to make sure that the cocoa support is disabled when the GLib is built for that platform (in cerbero). It is a long time ago I wrote that patch but if I record correctly the build system detects that cocoa is present and then tried to build against it and fail (I can not double check right now as I do not have access to a mac).
That patch has been proven to work but might not be the cleaner way to do it, ideally the user should not need to explicitly disable I would guess but I did not figure out how that should be done back then.