mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 19:57:25 +01:00
Move resources to data
This commit is contained in:
parent
25eb7591f8
commit
3f1a9a5756
5 changed files with 19 additions and 17 deletions
|
|
@ -37,3 +37,4 @@ if compile_schemas.found()
|
||||||
endif
|
endif
|
||||||
|
|
||||||
subdir('icons')
|
subdir('icons')
|
||||||
|
subdir('res')
|
||||||
|
|
|
||||||
18
data/res/meson.build
Normal file
18
data/res/meson.build
Normal file
|
|
@ -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,
|
||||||
|
)
|
||||||
|
|
@ -1,21 +1,4 @@
|
||||||
pkgdatadir = join_paths(get_option('prefix'), get_option('datadir'), meson.project_name())
|
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 = configuration_data()
|
||||||
conf.set_quoted('VERSION', meson.project_version())
|
conf.set_quoted('VERSION', meson.project_version())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue