mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-14 05:16:18 +01:00
b646b1cab7
This reverts commit 756b424cce
.
The freedesktop SDK, which is used by gnome-build-meta, only has Meson
0.63. Bumping GLib’s Meson dependency to 0.64 means that, at the moment,
GLib is not buildable in gnome-build-meta and hence can’t be tested in
nightly pipelines against other projects, etc.
That’s bad for testing GLib.
It’s arguably bad that we’re restricted to using an older version of
Meson than shipped by Debian Testing, but that’s a separate discussion
to be had.
Revert the Meson 0.64 dependency until the freedesktop SDK ships Meson ≥
0.64. This also means reverting the simplifications to use of
`gnome.mkenum_simple()`.
See https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3077#note_1601064
48 lines
1023 B
Plaintext
48 lines
1023 B
Plaintext
/*** BEGIN file-header ***/
|
|
#include "config.h"
|
|
#include "glib-enumtypes.h"
|
|
#include <glib-object.h>
|
|
|
|
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
|
|
|
/*** END file-header ***/
|
|
|
|
/*** BEGIN file-tail ***/
|
|
|
|
G_GNUC_END_IGNORE_DEPRECATIONS
|
|
|
|
/*** END file-tail ***/
|
|
|
|
/*** BEGIN file-production ***/
|
|
/* enumerations from "@filename@" */
|
|
|
|
/*** END file-production ***/
|
|
|
|
/*** BEGIN value-header ***/
|
|
GType
|
|
@enum_name@_get_type (void)
|
|
{
|
|
static gsize static_g_define_type_id = 0;
|
|
|
|
if (g_once_init_enter (&static_g_define_type_id))
|
|
{
|
|
static const G@Type@Value values[] = {
|
|
/*** END value-header ***/
|
|
|
|
/*** BEGIN value-production ***/
|
|
{ @VALUENAME@, "@VALUENAME@", "@valuenick@" },
|
|
/*** END value-production ***/
|
|
|
|
/*** BEGIN value-tail ***/
|
|
{ 0, NULL, NULL }
|
|
};
|
|
GType g_define_type_id =
|
|
g_@type@_register_static (g_intern_static_string ("@EnumName@"), values);
|
|
g_once_init_leave (&static_g_define_type_id, g_define_type_id);
|
|
}
|
|
|
|
return static_g_define_type_id;
|
|
}
|
|
|
|
/*** END value-tail ***/
|