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




commit 6d61029febe5d25e94a5ada846a3ee9f5303f629
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 e27df61b..31d7d31b 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]