From 3d51d627d33391959a0c2566e68b96d8cb6572c3 Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Thu, 3 Jun 2021 12:54:46 +0200 Subject: [PATCH] meson: Compile schemas in build directory To make it easier to run from the build directory without having to install. --- data/meson.build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/data/meson.build b/data/meson.build index c18aafe..a706d18 100644 --- a/data/meson.build +++ b/data/meson.build @@ -68,7 +68,11 @@ install_data( ) ) -install_data('sm.puri.Calls.gschema.xml', +schema_src = 'sm.puri.Calls.gschema.xml' +compiled = gnome.compile_schemas(build_by_default: true, + depends_files: files(schema_src)) + +install_data(schema_src, install_dir: join_paths(get_option('datadir'), 'glib-2.0/schemas') )