diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 17:51:51 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 17:51:51 +0000 |
commit | b0e30ceba2288eab10c6ff7be0ac0cb05a9ed0b7 (patch) | |
tree | 9f1d8a08a8cbd19d28ec2d31027f8a7ccd90de0d /gnome-settings-daemon/codegen.py | |
parent | Initial commit. (diff) | |
download | gnome-settings-daemon-b0e30ceba2288eab10c6ff7be0ac0cb05a9ed0b7.tar.xz gnome-settings-daemon-b0e30ceba2288eab10c6ff7be0ac0cb05a9ed0b7.zip |
Adding upstream version 43.0.upstream/43.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | gnome-settings-daemon/codegen.py | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/gnome-settings-daemon/codegen.py b/gnome-settings-daemon/codegen.py new file mode 100644 index 0000000..eb0b0ce --- /dev/null +++ b/gnome-settings-daemon/codegen.py @@ -0,0 +1,31 @@ +#!/usr/bin/env python3 + +''' +FIXME + +This script is used only to call gdbus-codegen and simulate the +generation of the source code and header as different targets. + +Both are generated implicitly, so meson is not able to know how +many files are generated, so it does generate only one opaque +target that represents the two files. + +Please see: + https://bugzilla.gnome.org/show_bug.cgi?id=791015 + https://github.com/mesonbuild/meson/pull/2930 +''' + +import subprocess +import sys + +name = 'org.gnome.' + sys.argv[1] + +subprocess.call([ + 'gdbus-codegen', + '--interface-prefix=' + name + '.', + '--generate-c-code=' + sys.argv[2], + '--c-namespace=Gsd', + '--annotate', name, 'org.gtk.GDBus.C.Name', sys.argv[1], + '--output-directory=' + sys.argv[3], + sys.argv[4] +]) |