diff --git a/src/data/meson.build b/src/data/meson.build index 027702f..6ae5465 100644 --- a/src/data/meson.build +++ b/src/data/meson.build @@ -9,17 +9,24 @@ gnome.compile_resources( install_dir: INSTALL_DIR / 'resources', ) -glib_compile_schemas_exe = find_program('glib-compile-schemas') -custom_target( - 'gschemas', - build_by_default: true, - build_always_stale: true, - output: 'gschemas.compiled', - command: [ - glib_compile_schemas_exe, - '--targetdir=@OUTDIR@', - '@CURRENT_SOURCE_DIR@' - ], - install: true, +install_data( + DNS + '.gschema.xml', install_dir: INSTALL_DIR / 'schemas' ) + +if not get_option('pack') + glib_compile_schemas_exe = find_program('glib-compile-schemas') + custom_target( + 'gschemas', + build_by_default: true, + build_always_stale: true, + output: 'gschemas.compiled', + command: [ + glib_compile_schemas_exe, + '--targetdir=@OUTDIR@', + '@CURRENT_SOURCE_DIR@' + ], + install: true, + install_dir: INSTALL_DIR / 'schemas' + ) +endif