Build system: Don't compile schemas when packing

This commit is contained in:
Romain Vigier
2023-02-27 22:07:21 +01:00
parent 844ee95b57
commit 1fd686ecff
+19 -12
View File
@@ -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