diff options
author | Khem Raj <raj.khem@gmail.com> | 2023-05-22 19:45:28 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2023-05-22 19:47:18 -0700 |
commit | 4b63250cc446e25b5150dd6040028624ee76f9d1 (patch) | |
tree | 1ac0cc1d594ac4dd9bec501207887cb924a6fa01 | |
parent | f456747e778c6b84b51d80def18b9320074c015c (diff) |
agent/meson: Replace filename with basename
This avoids emitting absolute paths into generated sourcecode, it
improves reproducibility. See [1]
[1] https://developer-old.gnome.org/gobject/stable/glib-mkenums.html
-rw-r--r-- | agent/meson.build | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/agent/meson.build b/agent/meson.build index 2e5b272..44fcd6b 100644 --- a/agent/meson.build +++ b/agent/meson.build @@ -29,14 +29,14 @@ gnome = import('gnome') agent_enum_types_c = gnome.mkenums('agent-enum-types.c', sources : agent_headers, fhead: '#include <config.h>\n#include <glib-object.h>\n#include "agent.h"\n#include "pseudotcp.h"\n#include "agent-enum-types.h"', - fprod: '\n/* enumerations from "@filename@" */', + fprod: '\n/* enumerations from "@basename@" */', vhead: 'GType\n@enum_name@_get_type (void)\n{\n static GType type = 0;\n if (!type) {\n static const G@Type@Value values[] = {', vprod: ' { @VALUENAME@, "@VALUENAME@", "@valuenick@" },', vtail: ' { 0, NULL, NULL }\n };\n type = g_@type@_register_static ("@EnumName@", values);\n }\n return type;\n}\n\n') agent_enum_types_h = gnome.mkenums('agent-enum-types.h', sources : agent_headers, fhead: '#ifndef __AGENT_ENUM_TYPES_H__\n#define __AGENT_ENUM_TYPES_H__ 1\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n', - fprod: '/* enumerations from "@filename@" */\n', + fprod: '/* enumerations from "@basename@" */\n', vhead: 'GType @enum_name@_get_type (void) G_GNUC_CONST;\n#define NICE_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n', ftail: 'G_END_DECLS\n\n#endif /* !AGENT_ENUM_TYPES_H */') |