mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
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:
parent
33fb98fddf
commit
02e76bad8e
1 changed files with 4 additions and 4 deletions
|
|
@ -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 ],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue