Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
GNOME
libwnck
Commits
883f7ccd
Commit
883f7ccd
authored
Sep 20, 2018
by
Marco Trevisan
🎺
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
meson: use gnome.mkenums_simple for generated types
parent
ee69fc66
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
34 deletions
+2
-34
libwnck/meson.build
libwnck/meson.build
+2
-34
No files found.
libwnck/meson.build
View file @
883f7ccd
...
...
@@ -55,44 +55,12 @@ a11y_sources = [
'workspace-accessible-factory.h',
]
enum_types = []
enum_types += gnome.mkenums(
'wnck-enum-types.h',
sources: headers,
fhead: '''#if !defined (__LIBWNCK_H_INSIDE__) && !defined (WNCK_COMPILATION)
#error "Only <libwnck/libwnck.h> can be included directly."
#endif
#ifndef __WNCK_ENUM_TYPES_H__
#define __WNCK_ENUM_TYPES_H__
G_BEGIN_DECLS''',
ftail: '''G_END_DECLS
#endif /* __WNCK_ENUM_TYPES_H__ */''',
eprod: '''#define WNCK_TYPE_@ENUMSHORT@ @enum_name@_get_type()
GType @enum_name@_get_type (void);''',
enum_types = gnome.mkenums_simple('wnck-enum-types',
sources : headers,
install_header: true,
install_dir: libwnck_includedir
)
enum_types += gnome.mkenums(
'wnck-enum-types.c',
sources: headers,
fhead: '#include <libwnck/libwnck.h>',
fprod: '/* enumerations from "@filename@" */',
vhead: 'static const G@Type@Value _@enum_name@_values[] = {',
vprod: '{ @VALUENAME@, "@VALUENAME@", "@valuenick@" },',
vtail: '''{ 0, NULL, NULL }
};
GType
@enum_name@_get_type (void)
{
static GType type = 0;
if (!type)
type = g_@type@_register_static ("@EnumName@", _@enum_name@_values);
return type;
}'''
)
resources = gnome.compile_resources(
'@0@-resources'.format(meson.project_name()),
'wnck.gresource.xml',
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment