1
Fork 0

meson.build: fix compile with -Dexamples=disabled

This commit is contained in:
Pauli Virtanen 2023-11-26 18:31:43 +02:00 committed by Wim Taymans
parent 9daca346a7
commit 422c270a74
4 changed files with 10 additions and 6 deletions

View File

@ -6,6 +6,10 @@ spa_examples = [
'local-v4l2',
]
if not get_option('examples').allowed()
subdir_done()
endif
spa_examples_extra_deps = {
'local-v4l2': [sdl_dep],
'local-libcamera': [sdl_dep, libcamera_dep],

View File

@ -113,6 +113,4 @@ endif
subdir('tools')
subdir('tests')
if get_option('examples').allowed()
subdir('examples')
endif
subdir('examples')

View File

@ -22,6 +22,10 @@ examples = [
'local-v4l2',
]
if not get_option('examples').allowed()
subdir_done()
endif
examples_extra_deps = {
'video-src-fixate': [drm_dep],
'video-play': [sdl_dep],

View File

@ -3,9 +3,7 @@ subdir('pipewire')
subdir('daemon')
subdir('tools')
subdir('modules')
if get_option('examples').allowed()
subdir('examples')
endif
subdir('examples')
if get_option('tests').allowed()
subdir('tests')
endif