Compare commits

...

2 commits

Author SHA1 Message Date
Ivan Molodetskikh
06d007a30a Merge branch 'YaLTeR-main-patch-76590' into 'main'
setup.rst: Fix meson dependencies

See merge request jwestman/blueprint-compiler!2
2025-03-28 19:01:48 +00:00
Ivan Molodetskikh
9f9a2d94e0 setup.rst: Fix meson dependencies
The previous way did not establish dependencies between .ui files and the gresource properly.
2021-12-03 16:58:24 +00:00

View file

@ -48,12 +48,19 @@ blueprint-compiler works as a meson subproject.
.. code-block:: meson.build
blps = [
# LIST YOUR BLUEPRINT FILES HERE
]
uis = []
foreach blp : blps
uis += blp.replace('.blp', '.ui')
endforeach
blueprints = custom_target('blueprints',
input: files(
# LIST YOUR BLUEPRINT FILES HERE
),
output: '.',
command: [find_program('blueprint-compiler'), 'batch-compile', '@OUTPUT@', '@CURRENT_SOURCE_DIR@', '@INPUT@'],
input: blps,
output: uis,
command: [find_program('blueprint-compiler'), 'batch-compile', '@OUTDIR@', '@CURRENT_SOURCE_DIR@', '@INPUT@'],
)
#. In the same ``meson.build`` file, add this argument to your ``gnome.compile_resources`` command: