mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-07-12 11:04:00 -04:00
doc: compile tutorial programs
The programs in `doc/examples` are not compiled currently, so let's compile them if the `docs` and `examples` options don't disallow it. `tutorial4.c` needs a small modification to avoid `-Wfloat-conversion`. Additionally, install them if `installed_tests` is not disabled.
This commit is contained in:
parent
b5d294eab0
commit
8caea521d7
3 changed files with 31 additions and 12 deletions
|
|
@ -169,18 +169,14 @@ cssfiles = [
|
|||
]
|
||||
|
||||
# Example files (in order from simple to esoteric)
|
||||
example_files = [
|
||||
'tutorial1.c',
|
||||
'tutorial2.c',
|
||||
'tutorial3.c',
|
||||
'tutorial4.c',
|
||||
'tutorial5.c',
|
||||
'tutorial6.c',
|
||||
'tutorial7.c',
|
||||
]
|
||||
example_files = []
|
||||
example_dep_files = []
|
||||
foreach h : example_files
|
||||
example_dep_files += ['examples/' + h]
|
||||
|
||||
subdir('examples')
|
||||
|
||||
foreach h : tutorials
|
||||
example_files += [h + '.c']
|
||||
example_dep_files += ['examples/' + h + '.c']
|
||||
endforeach
|
||||
foreach h : examples
|
||||
example_files += [h + '.c']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue