summaryrefslogtreecommitdiff
path: root/meson_post_install.py
diff options
context:
space:
mode:
authorIñigo Martínez <inigomartinez@gmail.com>2018-03-19 20:45:16 +0100
committerIñigo Martínez <inigomartinez@gmail.com>2018-03-21 19:22:33 +0100
commited563a1b5192a769e0bb0824a8903a720df42264 (patch)
tree8f3a5cc65055961bb9146ef5c86fb89ee79d9593 /meson_post_install.py
parent4a4d1f8cc93e9b1a03c773b3e8b32411e2efb6e0 (diff)
downloadgvfs-ed563a1b5192a769e0bb0824a8903a720df42264.tar.gz
build: Reuse schemas and GIO modules paths variables
meson's post install script, compiles glib schemas and creates a cache from the GIO modules. To do this, an assumption is made regarding the directories where the files are installed under prefix. However, the final directories are available as meson variables and these can be passed to the post install script, so there is no need to make any assumption. https://bugzilla.gnome.org/show_bug.cgi?id=794365
Diffstat (limited to 'meson_post_install.py')
-rw-r--r--meson_post_install.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/meson_post_install.py b/meson_post_install.py
index 4232625d..d9cc6f4a 100644
--- a/meson_post_install.py
+++ b/meson_post_install.py
@@ -5,10 +5,8 @@ import subprocess
import sys
if not os.environ.get('DESTDIR'):
- schemadir = os.path.join(sys.argv[1], 'glib-2.0', 'schemas')
print('Compiling gsettings schemas...')
- subprocess.call(['glib-compile-schemas', schemadir])
+ subprocess.call(['glib-compile-schemas', sys.argv[1]])
- giomoduledir = os.path.join(sys.argv[2], 'gio', 'modules')
print('GIO module cache creation...')
- subprocess.call(['gio-querymodules', giomoduledir])
+ subprocess.call(['gio-querymodules', sys.argv[2]])