[gtk/bump-meson-req] gtk: Use gnome.mkenums_simple
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/bump-meson-req] gtk: Use gnome.mkenums_simple
- Date: Sun, 25 Sep 2022 01:23:19 +0000 (UTC)
commit 11829fe7d01b7ceff26d1b31cc03908585107e34
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Sep 24 21:22:26 2022 -0400
gtk: Use gnome.mkenums_simple
This lets us avoid template files, and works just as well.
gtk/gtktypebuiltins.c.template | 42 ------------------------------------------
gtk/gtktypebuiltins.h.template | 29 -----------------------------
gtk/meson.build | 7 ++++---
3 files changed, 4 insertions(+), 74 deletions(-)
---
diff --git a/gtk/meson.build b/gtk/meson.build
index 9982cc1678..bfb03d7575 100644
--- a/gtk/meson.build
+++ b/gtk/meson.build
@@ -1031,10 +1031,11 @@ gtkmarshalers = gnome.genmarshal('gtkmarshalers',
gtkmarshal_h = gtkmarshalers[1]
-gtktypebuiltins = gnome.mkenums('gtktypebuiltins',
+gtktypebuiltins = gnome.mkenums_simple('gtktypebuiltins',
sources: gtk_public_headers + gtk_deprecated_headers,
- c_template: 'gtktypebuiltins.c.template',
- h_template: 'gtktypebuiltins.h.template',
+ decorator: 'GDK_AVAILABLE_IN_ALL',
+ body_prefix: '#include "config.h"',
+ header_prefix: '#include <gdk/gdk.h>',
install_dir: gtk_includedir / 'gtk-4.0/gtk',
install_header: true,
)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]