Commit 5990e46d authored by Max Kellermann's avatar Max Kellermann

lib/xiph/meson.build: exclude VorbisComments.cxx if the Vorbis decoder is disabled

Fixes a build failure.
parent 803a48e9
...@@ -45,12 +45,19 @@ if not libogg_dep.found() and not libflac_dep.found() ...@@ -45,12 +45,19 @@ if not libogg_dep.found() and not libflac_dep.found()
subdir_done() subdir_done()
endif endif
xiph = static_library( xiph_sources = [
'xiph',
'ScanVorbisComment.cxx', 'ScanVorbisComment.cxx',
'VorbisComments.cxx',
'VorbisPicture.cxx', 'VorbisPicture.cxx',
'XiphTags.cxx', 'XiphTags.cxx',
]
if libvorbis_dep.found() or libvorbisidec_dep.found()
xiph_sources += 'VorbisComments.cxx'
endif
xiph = static_library(
'xiph',
xiph_sources,
include_directories: inc, include_directories: inc,
dependencies: [ dependencies: [
libvorbis_dep, libvorbis_dep,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment