Age | Commit message (Collapse) | Author |
|
This allows us to skip needing to include the non-existent
build_string_from_mask() or get_string() counterparts in the
documentation index.
|
|
|
|
We're going to use certain new features included in the custom tool.
|
|
|
|
By including `@filename@` in the enums/errors types header template, we
generate files containing the full path to source files, which reflects
the particular filesystem layout used for a given build. As such, this
alters build reproducibility as it causes a (admittedly small) diff
between builds executed in different environments.
Using `@basename@` instead ensures only the file name (without its full
path) is mentioned in the generated files, making the builds
reproducible again.
|
|
meson is a build system focused on speed an ease of use, which
helps speeding up the software development. This patch adds meson
support along autotools.
|
|
The template files in the `build-aux` directory used in enums sources
and headers generation use the `{$name}-template.[ch]` pattern.
However, the examples in the official guide[0] and usually GNOME and
Freedesktop packages use the `{$name}.[ch].template` pattern.
Due to this, the name of the template files and build commands have
been changed.
[0] https://developer.gnome.org/gobject/stable/glib-mkenums.html
|
|
This fixes a few (fatal in gcc 11) warnings.
See https://gitlab.gnome.org/GNOME/glib/-/issues/600
|
|
mm-enums-types.c: In function ‘mm_modem_lock_get_string’:
mm-enums-types.c:165:17: warning: comparison of integer expressions of different signedness: ‘MMModemLock’ {aka ‘enum <anonymous>’} and ‘gint’ {aka ‘const int’} [-Wsign-compare]
165 | if (val == mm_modem_lock_values[i].value)
| ^~
|
|
|
|
|
|
|
|
We define custom nicks for each error enum, matching the DBus error entry that
we want to have with each of them.
|
|
|
|
|
|
Equivalent to the fix in d15b1f201 applied to the enums template.
Spotted by Nathan Williams.
|
|
Each enum will have its own #_get_string (),
and each flags will have its own #_build_string_from_mask ().
|
|
So that we get the following fix in glib-mkenums:
https://bugzilla.gnome.org/show_bug.cgi?id=661797
|
|
Don't include anything in the templates specific to the file to be built, like
#ifdef guards in headers or #include in sources.
|
|
But keep it around as a static file, while we do the migration to the new
interface.
|
|
The code to handle the Errors type information is automatically built with
`glib-mkenums' and the new templates kept under `build-aux'.
|
|
The code to handle the Enums and Flags type information is automatically built
with `glib-mkenums' and the new templates kept under `build-aux'.
Note: We currently skip the type information of `MMModemBand'. GFlagsValue
can hold only 32-bit types, and we're working with a 64-bit flag here.
See: https://bugzilla.gnome.org/show_bug.cgi?id=663054
|
|
The `include/ModemManager-names.h' autogenerated header includes the list of
Interface, Method, Signal and Property names defined in the DBus API.
|
|
Also move helper files to the new `build-aux' directory.
|