meson: Debug build cleanups and additions
This MR does the following:
- Add debug flags based on meson's
debug
option instead ofbuildtype
. This allows custom build configurations to behave like a debug or release build. Thedebug
option is automatically set for thedebug
anddebugoptimized
buildtypes by meson. - Add
-fno-omit-frame-pointer
to Mutter/Cogl. Not to Clutter though, as that would require more changes to how Clutter's gir is created - Remove
-DG_DISABLE_CAST_CHECKS
from Clutter in debug builds - Add
-DG_DISABLE_CHECKS
,-DG_DISABLE_ASSERT
and-DG_DISABLE_CAST_CHECKS
to all non-debug builds butplain
, which explicitly should not have any compile flags - Use
cc.get_supported_arguments
, so it becomes more obvious to the user which flags are set during compilation - Do not set any compiler flags if the
plain
buildtype is selected