[gnome-bluetooth/wip/hadess/cleanups: 4/4] lib: Simplify enum types generation




commit 6bcede4fc9c919e8cdf99e72a2babd3739369276
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Dec 2 12:50:13 2021 +0100

    lib: Simplify enum types generation

 lib/gnome-bluetooth-enum-types.c.template | 40 -------------------------------
 lib/gnome-bluetooth-enum-types.h.template | 17 -------------
 lib/meson.build                           | 10 +++-----
 3 files changed, 3 insertions(+), 64 deletions(-)
---
diff --git a/lib/meson.build b/lib/meson.build
index 884fa734..9ed5bfa4 100644
--- a/lib/meson.build
+++ b/lib/meson.build
@@ -42,13 +42,9 @@ built_sources += gnome.compile_resources(
   export: true,
 )
 
-enum_types = 'gnome-bluetooth-enum-types'
-
-built_sources += gnome.mkenums(
-  enum_types,
-  sources: headers,
-  c_template: enum_types + '.c.template',
-  h_template: enum_types + '.h.template',
+built_sources += gnome.mkenums_simple(
+  'gnome-bluetooth-enum-types',
+  sources : headers,
 )
 
 client = 'bluetooth-client'


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]