mirror of
https://github.com/videolan/vlc.git
synced 2024-11-24 10:23:27 +08:00
visualization: meson: use enabled flag
This commit is contained in:
parent
ee8329a5af
commit
626864109b
@ -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'
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user