1
0
Fork 0
pipewire/spa/examples/meson.build
Daniel Baumann 6b016a712f
Adding upstream version 1.4.2.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-22 21:40:42 +02:00

38 lines
864 B
Meson

# Examples, in order from simple to complicated
spa_examples = [
'adapter-control',
'example-control',
'local-libcamera',
'local-v4l2',
'local-videotestsrc',
]
if not get_option('examples').allowed() or not get_option('spa-plugins').allowed()
subdir_done()
endif
spa_examples_extra_deps = {
'local-v4l2': [sdl_dep],
'local-videotestsrc': [sdl_dep],
'local-libcamera': [sdl_dep, libcamera_dep],
}
foreach c : spa_examples
deps = spa_examples_extra_deps.get(c, [])
found = true
foreach dep : deps
found = found and dep.found()
endforeach
if found
executable(
c,
c + '.c',
include_directories : [configinc],
dependencies : [spa_dep, dl_lib, pthread_lib, mathlib] + deps,
install : installed_tests_enabled,
install_dir : installed_tests_execdir / 'examples' / 'spa'
)
endif
endforeach