Make GSettings find schema XMLs in devenv

This commit is contained in:
Přemysl Eric Janouch 2023-06-24 15:26:17 +02:00
parent bbfa2344d6
commit 3449ac5a12
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 6 additions and 2 deletions

View File

@ -202,10 +202,14 @@ if get_option('tools').enabled()
endif
endif
# Copying the files to the build directory makes GSettings find them in devenv.
gsettings_schemas = ['fiv.gschema.xml']
foreach schema : gsettings_schemas
install_data(schema,
rename : [application_ns + schema],
configure_file(
input : schema,
output : application_ns + schema,
copy : true,
install: true,
install_dir : get_option('datadir') / 'glib-2.0' / 'schemas')
endforeach