visualization: meson: use enabled flag

This commit is contained in:
Alexandre Janniaux 2024-03-08 15:31:22 +01:00 committed by Felix Paul Kühne
parent ee8329a5af
commit 626864109b

View File

@ -1,12 +1,11 @@
# goom visualization plugin
goom2_dep = dependency('libgoom2', required: get_option('goom2'))
if goom2_dep.found()
vlc_modules += {
'name' : 'goom',
'sources' : files('goom.c'),
'dependencies' : [goom2_dep, m_lib]
}
endif
vlc_modules += {
'name' : 'goom',
'sources' : files('goom.c'),
'dependencies' : [goom2_dep, m_lib],
'enabled' : goom2_dep.found(),
}
# projectM visualization plugin
projectm_dep = dependency('libprojectM', version: '>= 2.0.0', required: false)
@ -19,13 +18,10 @@ else
required: false)
endif
if projectm_dep.found()
if host_system != 'windows'
vlc_modules += {
'name' : 'projectm',
'sources' : files('projectm.cpp'),
'dependencies' : [projectm_dep],
'cpp_args' : [projectm_args]
}
endif
endif
vlc_modules += {
'name' : 'projectm',
'sources' : files('projectm.cpp'),
'dependencies' : [projectm_dep],
'cpp_args' : [projectm_args],
'enabled' : projectm_dep.found() and host_system != 'windows'
}