build: Use gnome.post_install

Allows us to drop a custom script

Signed-off-by: Guido Günther <agx@sigxcpu.org>
This commit is contained in:
Guido Günther
2025-05-11 21:58:38 +02:00
parent d7d39d18df
commit c05f9c41c0
2 changed files with 2 additions and 16 deletions
-14
View File
@@ -1,14 +0,0 @@
#!/usr/bin/python3
import os
import subprocess
import sys
destdir = os.environ.get('DESTDIR', '')
if not destdir and len(sys.argv) > 1:
datadir = sys.argv[1]
print('Compiling gsettings schemas...')
subprocess.call(['glib-compile-schemas', os.path.join(datadir, 'glib-2.0', 'schemas')])
+2 -2
View File
@@ -105,8 +105,6 @@ libname = 'libfeedback-' + apiversion
json_glib_validate = find_program('json-glib-validate', required: false) json_glib_validate = find_program('json-glib-validate', required: false)
meson.add_install_script(join_paths('build-aux', 'post_install.py'), datadir)
subdir('data') subdir('data')
subdir('libfeedback') subdir('libfeedback')
subdir('src') subdir('src')
@@ -130,3 +128,5 @@ summary = [
'', '',
] ]
message('\n'.join(summary)) message('\n'.join(summary))
gnome.post_install(glib_compile_schemas: true)