diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:28:17 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:28:17 +0000 |
commit | 7a46c07230b8d8108c0e8e80df4522d0ac116538 (patch) | |
tree | d483300dab478b994fe199a5d19d18d74153718a /src/examples/meson.build | |
parent | Initial commit. (diff) | |
download | pipewire-upstream/0.3.65.tar.xz pipewire-upstream/0.3.65.zip |
Adding upstream version 0.3.65.upstream/0.3.65upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | src/examples/meson.build | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/src/examples/meson.build b/src/examples/meson.build new file mode 100644 index 0000000..e2f2600 --- /dev/null +++ b/src/examples/meson.build @@ -0,0 +1,51 @@ +# Examples, in order from simple to complicated +examples = [ + 'audio-src', + 'audio-dsp-src', + 'audio-dsp-filter', + 'audio-capture', + 'video-play', + 'video-src', + 'video-dsp-play', + 'video-play-pull', + 'video-play-reneg', + 'video-src-alloc', + 'video-src-reneg', + 'video-src-fixate', + 'video-play-fixate', + 'export-sink', + 'export-source', + 'export-spa', + 'export-spa-device', + 'bluez-session', + 'local-v4l2', +] + +examples_extra_deps = { + 'video-src-fixate': [drm_dep], + 'video-play': [sdl_dep], + 'video-play-reneg': [sdl_dep], + 'video-play-fixate': [sdl_dep, drm_dep], + 'video-play-pull': [sdl_dep], + 'video-dsp-play': [sdl_dep], + 'local-v4l2': [sdl_dep], + 'export-sink': [sdl_dep], +} + +foreach c : examples + deps = examples_extra_deps.get(c, []) + + found = true + foreach dep : deps + found = found and dep.found() + endforeach + + if found + executable( + c, c + '.c', + install : installed_tests_enabled, + install_dir : installed_tests_execdir / 'examples', + dependencies : [pipewire_dep, mathlib] + deps, + ) + endif +endforeach |