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

Fixes a build failure.
This commit is contained in:
Max Kellermann 2020-01-02 13:01:38 +01:00
parent 803a48e96d
commit 5990e46de2
1 changed files with 10 additions and 3 deletions

View File

@ -45,12 +45,19 @@ if not libogg_dep.found() and not libflac_dep.found()
subdir_done()
endif
xiph = static_library(
'xiph',
xiph_sources = [
'ScanVorbisComment.cxx',
'VorbisComments.cxx',
'VorbisPicture.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,
dependencies: [
libvorbis_dep,