Build system: Don't compile schemas when packing
This commit is contained in:
+19
-12
@@ -9,17 +9,24 @@ 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',
|
||||||
'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'
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user