Merge branch 'YaLTeR-main-patch-76590' into 'main'

setup.rst: Fix meson dependencies

See merge request jwestman/blueprint-compiler!2
This commit is contained in:
Ivan Molodetskikh 2025-04-21 07:25:12 +00:00
commit 78618cb75a

View file

@ -48,12 +48,19 @@ blueprint-compiler works as a meson subproject.
.. code-block:: meson.build
blueprints = custom_target('blueprints',
input: files(
blps = [
# LIST YOUR BLUEPRINT FILES HERE
),
output: '.',
command: [find_program('blueprint-compiler'), 'batch-compile', '@OUTPUT@', '@CURRENT_SOURCE_DIR@', '@INPUT@'],
]
uis = []
foreach blp : blps
uis += blp.replace('.blp', '.ui')
endforeach
blueprints = custom_target('blueprints',
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: