-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
xapp-sn-watcher: rewrite in C due to leaky dbus python bindings.
- Loading branch information
Showing
20 changed files
with
1,563 additions
and
848 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
usr/lib/*/libxapp.so.1* | ||
usr/libexec/xapps/sn-watcher/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/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. | ||
originally from: | ||
https://gitlab.gnome.org/GNOME/gnome-settings-daemon/commit/5924d72931a030b24554116a48140a661a99652b | ||
Please see: | ||
https://bugzilla.gnome.org/show_bug.cgi?id=791015 | ||
https://github.com/mesonbuild/meson/pull/2930 | ||
''' | ||
|
||
import subprocess | ||
import sys | ||
import os | ||
|
||
subprocess.call([ | ||
'gdbus-codegen', | ||
'--interface-prefix=' + sys.argv[1], | ||
'--generate-c-code=' + os.path.join(sys.argv[4], sys.argv[2]), | ||
'--c-namespace=XApp', | ||
'--annotate', sys.argv[1], 'org.gtk.GDBus.C.Name', sys.argv[3], | ||
sys.argv[5] | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/python3 | ||
|
||
import os | ||
import sys | ||
import subprocess | ||
|
||
install_dir = os.path.join(os.environ['MESON_INSTALL_DESTDIR_PREFIX'], 'include', 'xapp', 'libxapp') | ||
header_path = os.path.join(os.environ['MESON_BUILD_ROOT'], 'libxapp', sys.argv[1]) | ||
|
||
print("\nInstalling generated header '%s' to %s\n" % (sys.argv[1], install_dir)) | ||
|
||
subprocess.call(['cp', header_path, install_dir]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.