setup.rst: Fix meson dependencies

The previous way did not establish dependencies between .ui files and the gresource properly.
This commit is contained in:
Ivan Molodetskikh 2021-12-03 16:58:24 +00:00
parent d0cf13b2c4
commit 9f9a2d94e0

View file

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