aboutsummaryrefslogtreecommitdiff
path: root/libmm-glib/generated
diff options
context:
space:
mode:
Diffstat (limited to 'libmm-glib/generated')
-rw-r--r--libmm-glib/generated/meson.build36
1 files changed, 36 insertions, 0 deletions
diff --git a/libmm-glib/generated/meson.build b/libmm-glib/generated/meson.build
index 268c4fb1..2f77e1bd 100644
--- a/libmm-glib/generated/meson.build
+++ b/libmm-glib/generated/meson.build
@@ -24,6 +24,7 @@ gen_sources += custom_target(
command: [
python,
mm_mkenums,
+ '--enums-only',
'--fhead', '#include "mm-enums-types.h"\n',
'--template', files(templates_dir / enums_types + '.c.template'),
'@INPUT@'],
@@ -37,6 +38,7 @@ gen_headers += custom_target(
command: [
python,
mm_mkenums,
+ '--enums-only',
'--fhead', '#include <ModemManager.h>\n#ifndef __MM_ENUMS_TYPES_H__\n#define __MM_ENUMS_TYPES_H__\n',
'--template', files(templates_dir / enums_types + '.h.template'),
'--ftail', '#endif /* __MM_ENUMS_TYPES_H__ */\n',
@@ -46,6 +48,40 @@ gen_headers += custom_target(
install_dir: mm_glib_pkgincludedir,
)
+# Flag types
+enums_types = 'mm-flags-types'
+
+gen_sources += custom_target(
+ enums_types + '.c',
+ input: mm_enums_header,
+ output: enums_types + '.c',
+ command: [
+ python,
+ mm_mkenums,
+ '--flags-only',
+ '--fhead', '#include "mm-flags-types.h"\n',
+ '--template', files(templates_dir / enums_types + '.c.template'),
+ '@INPUT@'],
+ capture: true,
+)
+
+gen_headers += custom_target(
+ enums_types + '.h',
+ input: mm_enums_header,
+ output: enums_types + '.h',
+ command: [
+ python,
+ mm_mkenums,
+ '--flags-only',
+ '--fhead', '#include <ModemManager.h>\n#ifndef __MM_FLAGS_TYPES_H__\n#define __MM_FLAGS_TYPES_H__\n',
+ '--template', files(templates_dir / enums_types + '.h.template'),
+ '--ftail', '#endif /* __MM_FLAGS_TYPES_H__ */\n',
+ '@INPUT@'],
+ capture: true,
+ install: true,
+ install_dir: mm_glib_pkgincludedir,
+)
+
# Error types & quarks
errors_types = 'mm-errors-types'