mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-16 08:56:45 -05: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')
|
foreach spa_header : spa_headers.stdout().split('\n')
|
||||||
if spa_header.endswith('.h') # skip empty lines
|
if spa_header.endswith('.h') # skip empty lines
|
||||||
ext = have_cpp ? 'cpp' : 'c'
|
ext = have_cpp ? 'cpp' : 'c'
|
||||||
c = configuration_data()
|
|
||||||
c.set('INCLUDE', spa_header)
|
|
||||||
src = configure_file(input: 'spa-include-test-template.c',
|
src = configure_file(input: 'spa-include-test-template.c',
|
||||||
output: 'spa-include-test-@0@.@1@'.format(spa_header.underscorify(), ext),
|
output: 'spa-include-test-@0@.@1@'.format(spa_header.underscorify(), ext),
|
||||||
configuration: c)
|
configuration: {
|
||||||
|
'INCLUDE': spa_header,
|
||||||
|
})
|
||||||
executable('spa-include-test-@0@'.format(spa_header.underscorify()),
|
executable('spa-include-test-@0@'.format(spa_header.underscorify()),
|
||||||
src,
|
src,
|
||||||
dependencies: [ spa_dep ],
|
dependencies: [ spa_dep ],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue