diff options
author | Aleksander Morgado <aleksandermj@chromium.org> | 2023-04-27 12:19:18 +0000 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2023-04-27 12:23:04 +0000 |
commit | bf2843ad77732f5fbe1ee04e7ad5415a60bf5eeb (patch) | |
tree | d9be783f8a8e239652ea7837700d98dc6359765f /libmm-glib/generated/meson.build | |
parent | fdf03f9b2ccbc4a6a0a8102d44a991f78673e5a1 (diff) |
libmm-glib: separate files for flags and enums types
This allows us to skip needing to include the non-existent
build_string_from_mask() or get_string() counterparts in the
documentation index.
Diffstat (limited to 'libmm-glib/generated/meson.build')
-rw-r--r-- | libmm-glib/generated/meson.build | 36 |
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' |