1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2025-01-05 19:15:32 +00:00

sip: build: Use simple variant of gnome.mkenums

We were using standard template files anyway.
This commit is contained in:
Evangelos Ribeiro Tzaras 2022-03-01 08:59:16 +01:00
parent e185cac3cb
commit ce00698e71
3 changed files with 2 additions and 65 deletions

View file

@ -1,40 +0,0 @@
/*** BEGIN file-header ***/
#include "config.h"
#include "calls-sip-util.h"
#include "calls-sip-enums.h"
/*** END file-header ***/
/*** BEGIN file-production ***/
/* enumerations from "@filename@" */
/*** END file-production ***/
/*** BEGIN value-header ***/
GType
@enum_name@_get_type (void)
{
static GType etype = 0;
if (G_UNLIKELY(etype == 0)) {
static const G@Type@Value values[] = {
/*** END value-header ***/
/*** BEGIN value-production ***/
{ @VALUENAME@, "@VALUENAME@", "@valuenick@" },
/*** END value-production ***/
/*** BEGIN value-tail ***/
{ 0, NULL, NULL }
};
etype = g_@type@_register_static (g_intern_static_string ("@EnumName@"), values);
}
return etype;
}
/*** END value-tail ***/
/*** BEGIN file-tail ***/
/*** END file-tail ***/

View file

@ -1,21 +0,0 @@
/*** BEGIN file-header ***/
#pragma once
#include <glib-object.h>
G_BEGIN_DECLS
/*** END file-header ***/
/*** BEGIN file-production ***/
/* enumerations from "@basename@" */
/*** END file-production ***/
/*** BEGIN value-header ***/
GType @enum_name@_get_type (void);
#define @ENUMPREFIX@_TYPE_@ENUMSHORT@ (@enum_name@_get_type ())
/*** END value-header ***/
/*** BEGIN file-tail ***/
G_END_DECLS
/*** END file-tail ***/

View file

@ -59,10 +59,8 @@ sip_enum_headers = [
'calls-sip-util.h',
]
sip_enums = gnome.mkenums('calls-sip-enums',
h_template: 'calls-sip-enums.h.in',
c_template: 'calls-sip-enums.c.in',
sources: sip_enum_headers,
sip_enums = gnome.mkenums_simple('calls-sip-enums',
sources: sip_enum_headers,
)
sip_sources += sip_enums