Commit ed563a1b authored by Iñigo Martínez's avatar Iñigo Martínez

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
parent 4a4d1f8c
......@@ -515,8 +515,8 @@ configure_file(
meson.add_install_script(
'meson_post_install.py',
gvfs_datadir,
gvfs_libdir
gvfs_schema_dir,
gio_module_dir
)
output = gvfs_name + ' ' + gvfs_version + ' configuration summary:\n'
......
......@@ -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]])
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment