cmake: make flac, speex and vorbis support in xiph optional

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
pull/14/head
Alexander Golubev 11 months ago
parent 0ce4b8104d
commit 0a1929653f

@ -58,10 +58,13 @@ OPTION( WITH_PULSE_SINK "Build with pulseaudio sink" ${WITH_ALL_OPTIONS} )
OPTION( WITH_OSS_SINK "Build with oss sink" ${WITH_ALL_OPTIONS} ) OPTION( WITH_OSS_SINK "Build with oss sink" ${WITH_ALL_OPTIONS} )
OPTION( WITH_SUN_SINK "Build with sun sink" OFF ) OPTION( WITH_SUN_SINK "Build with sun sink" OFF )
OPTION( WITH_FFMPEG_DECODER "Build with ffmpeg decoder" OFF ) OPTION( WITH_FFMPEG_DECODER "Build with ffmpeg decoder" OFF )
option( WITH_MPC_DECODER "Build with mpc decoder" ${WITH_ALL_OPTIONS} ) option( WITH_MPC_DECODER "Build with musepack decoder" ${WITH_ALL_OPTIONS} )
option( WITH_MPEG_DECODER "Build with mpeg decoder" ${WITH_ALL_OPTIONS} ) option( WITH_MPEG_DECODER "Build with mpeg decoder" ${WITH_ALL_OPTIONS} )
OPTION( WITH_SRC_RESAMPLER "Build with src resampler" ${WITH_ALL_OPTIONS} ) OPTION( WITH_SRC_RESAMPLER "Build with src resampler" ${WITH_ALL_OPTIONS} )
option( WITH_XIPH_DECODER "Build with xiph decoder" ${WITH_ALL_OPTIONS} ) option( WITH_XIPH_DECODER "Build with xiph decoder" ${WITH_ALL_OPTIONS} )
option( WITH_XIPH_FLAC "Build xiph decoder with flac support" ON )
option( WITH_XIPH_SPEEX "Build xiph decoder with speex support" ON )
option( WITH_XIPH_VORBIS "Build xiph decoder with vorbis support" ON )
##### configure checks ##### configure checks

@ -210,7 +210,7 @@ endif( WITH_MPEG_DECODER )
##### check FLAC support ######################## ##### check FLAC support ########################
if( WITH_XIPH_DECODER ) if( WITH_XIPH_DECODER AND WITH_XIPH_FLAC )
# check for FLAC module # check for FLAC module
pkg_search_module( FLAC flac>=1.1.3 ) pkg_search_module( FLAC flac>=1.1.3 )
@ -254,12 +254,12 @@ if( WITH_XIPH_DECODER )
tde_message_fatal( "FLAC >= 1.1.1 are required, but not found on your system" ) tde_message_fatal( "FLAC >= 1.1.1 are required, but not found on your system" )
endif( NOT FLAC_LIBRARIES ) endif( NOT FLAC_LIBRARIES )
endif( WITH_XIPH_DECODER ) endif( WITH_XIPH_DECODER AND WITH_XIPH_FLAC )
##### check speex support ####################### ##### check speex support #######################
if( WITH_XIPH_DECODER ) if( WITH_XIPH_DECODER AND WITH_XIPH_SPEEX )
# check for speex module # check for speex module
pkg_search_module( SPEEX speex>=1.2 ) pkg_search_module( SPEEX speex>=1.2 )
@ -291,12 +291,12 @@ if( WITH_XIPH_DECODER )
tde_message_fatal( "speex are required, but not found on your system" ) tde_message_fatal( "speex are required, but not found on your system" )
endif( SPEEX_FOUND ) endif( SPEEX_FOUND )
endif( WITH_XIPH_DECODER ) endif( WITH_XIPH_DECODER AND WITH_XIPH_SPEEX )
##### check ogg/vorbis support ################## ##### check ogg/vorbis support ##################
if( WITH_XIPH_DECODER ) if( WITH_XIPH_DECODER AND WITH_XIPH_VORBIS )
pkg_search_module( OGG ogg ) pkg_search_module( OGG ogg )
if( NOT OGG_FOUND ) if( NOT OGG_FOUND )
@ -315,7 +315,7 @@ if( WITH_XIPH_DECODER )
set( HAVE_OGG_VORBIS 1 ) set( HAVE_OGG_VORBIS 1 )
endif( WITH_XIPH_DECODER ) endif( WITH_XIPH_DECODER AND WITH_XIPH_VORBIS )
##### check samplerate support ################## ##### check samplerate support ##################

Loading…
Cancel
Save