spa: tests: meson.build: specify configuration inline

Do not construct a `cfg_data` object, instead, simply pass
a dictionary to `configure_file()`.
This commit is contained in:
Barnabás Pőcze 2022-01-17 08:10:05 +01:00 committed by Wim Taymans
parent 33fb98fddf
commit 02e76bad8e

View file

@ -13,11 +13,11 @@ if find.found()
foreach spa_header : spa_headers.stdout().split('\n')
if spa_header.endswith('.h') # skip empty lines
ext = have_cpp ? 'cpp' : 'c'
c = configuration_data()
c.set('INCLUDE', spa_header)
src = configure_file(input: 'spa-include-test-template.c',
output: 'spa-include-test-@0@.@1@'.format(spa_header.underscorify(), ext),
configuration: c)
output: 'spa-include-test-@0@.@1@'.format(spa_header.underscorify(), ext),
configuration: {
'INCLUDE': spa_header,
})
executable('spa-include-test-@0@'.format(spa_header.underscorify()),
src,
dependencies: [ spa_dep ],