diff --git a/data/meson.build b/data/meson.build index fcb24a4..8268f86 100644 --- a/data/meson.build +++ b/data/meson.build @@ -37,3 +37,4 @@ if compile_schemas.found() endif subdir('icons') +subdir('res') diff --git a/data/res/meson.build b/data/res/meson.build new file mode 100644 index 0000000..1e0ff66 --- /dev/null +++ b/data/res/meson.build @@ -0,0 +1,18 @@ +pkgdatadir = join_paths(get_option('prefix'), get_option('datadir'), meson.project_name()) +gnome = import('gnome') + +blueprints = custom_target('blueprints', + input: files( + 'window.blp' + ), + output: '.', + command: [find_program('blueprint-compiler'), 'batch-compile', '@OUTPUT@', '@CURRENT_SOURCE_DIR@', '@INPUT@'], +) + +gnome.compile_resources('musicus', + 'musicus.gresource.xml', + dependencies: blueprints, + gresource_bundle: true, + install: true, + install_dir: pkgdatadir, +) \ No newline at end of file diff --git a/src/musicus.gresource.xml b/data/res/musicus.gresource.xml similarity index 100% rename from src/musicus.gresource.xml rename to data/res/musicus.gresource.xml diff --git a/src/window.blp b/data/res/window.blp similarity index 100% rename from src/window.blp rename to data/res/window.blp diff --git a/src/meson.build b/src/meson.build index 6bdb827..d5e8771 100644 --- a/src/meson.build +++ b/src/meson.build @@ -1,21 +1,4 @@ pkgdatadir = join_paths(get_option('prefix'), get_option('datadir'), meson.project_name()) -gnome = import('gnome') - -blueprints = custom_target('blueprints', - input: files( - 'window.blp' - ), - output: '.', - command: [find_program('blueprint-compiler'), 'batch-compile', '@OUTPUT@', '@CURRENT_SOURCE_DIR@', '@INPUT@'], -) - -gnome.compile_resources('musicus', - 'musicus.gresource.xml', - dependencies: blueprints, - gresource_bundle: true, - install: true, - install_dir: pkgdatadir, -) conf = configuration_data() conf.set_quoted('VERSION', meson.project_version())