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
+10 -3
View File
@@ -9,8 +9,14 @@ gnome.compile_resources(
install_dir: INSTALL_DIR / 'resources', install_dir: INSTALL_DIR / 'resources',
) )
glib_compile_schemas_exe = find_program('glib-compile-schemas') install_data(
custom_target( 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', 'gschemas',
build_by_default: true, build_by_default: true,
build_always_stale: true, build_always_stale: true,
@@ -22,4 +28,5 @@ custom_target(
], ],
install: true, install: true,
install_dir: INSTALL_DIR / 'schemas' install_dir: INSTALL_DIR / 'schemas'
) )
endif