mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-11-10 06:51:54 +00:00
cmake: enable/disable OSS support (#350)
Add a cmake option for OSS support and sort options alphabetically.
This commit is contained in:
parent
182e593665
commit
98e976a9cc
1 changed files with 19 additions and 15 deletions
|
@ -50,26 +50,27 @@ set ( LIB_VERSION_INFO
|
|||
"${LIB_VERSION_CURRENT}.${LIB_VERSION_AGE}.${LIB_VERSION_REVISION}" )
|
||||
|
||||
# Options disabled by default
|
||||
option ( enable-floats "enable type float instead of double for DSP samples" off )
|
||||
option ( enable-profiling "profile the dsp code" off )
|
||||
option ( enable-portaudio "compile PortAudio support" off )
|
||||
option ( enable-trap-on-fpe "enable SIGFPE trap on Floating Point Exceptions" off )
|
||||
option ( enable-fpe-check "enable Floating Point Exception checks and debug messages" off )
|
||||
option ( enable-debug "enable debugging (default=no)" off )
|
||||
option ( enable-floats "enable type float instead of double for DSP samples" off )
|
||||
option ( enable-fpe-check "enable Floating Point Exception checks and debug messages" off )
|
||||
option ( enable-portaudio "compile PortAudio support" off )
|
||||
option ( enable-profiling "profile the dsp code" off )
|
||||
option ( enable-trap-on-fpe "enable SIGFPE trap on Floating Point Exceptions" off )
|
||||
|
||||
# Options enabled by default
|
||||
option ( enable-pkgconfig "use pkg-config to locate fluidsynth's (mostly optional) dependencies" on )
|
||||
option ( enable-libsndfile "compile libsndfile support (if it is available)" on )
|
||||
option ( enable-aufile "compile support for sound file output" on )
|
||||
option ( enable-pulseaudio "compile PulseAudio support (if it is available)" on )
|
||||
option ( enable-jack "compile JACK support (if it is available)" on )
|
||||
option ( enable-midishare "compile MidiShare support (if it is available)" on )
|
||||
option ( enable-readline "compile readline lib line editing (if it is available)" on )
|
||||
option ( enable-dbus "compile DBUS support (if it is available)" on )
|
||||
option ( BUILD_SHARED_LIBS "Build a shared object or DLL" on )
|
||||
option ( enable-ladspa "enable LADSPA effect units" on )
|
||||
option ( enable-dbus "compile DBUS support (if it is available)" on )
|
||||
option ( enable-ipv6 "enable ipv6 support " on )
|
||||
option ( enable-jack "compile JACK support (if it is available)" on )
|
||||
option ( enable-ladspa "enable LADSPA effect units" on )
|
||||
option ( enable-libsndfile "compile libsndfile support (if it is available)" on )
|
||||
option ( enable-midishare "compile MidiShare support (if it is available)" on )
|
||||
option ( enable-network "enable network support (requires BSD sockets) " on )
|
||||
option ( enable-oss "compile OSS support (if it is available)" on )
|
||||
option ( enable-pkgconfig "use pkg-config to locate fluidsynth's (mostly optional) dependencies" on )
|
||||
option ( enable-pulseaudio "compile PulseAudio support (if it is available)" on )
|
||||
option ( enable-readline "compile readline lib line editing (if it is available)" on )
|
||||
|
||||
# Platform specific options
|
||||
if ( CMAKE_SYSTEM MATCHES "Linux" )
|
||||
|
@ -423,8 +424,11 @@ if ( enable-aufile )
|
|||
set ( AUFILE_SUPPORT 1 )
|
||||
endif ( enable-aufile )
|
||||
|
||||
find_package ( OSS QUIET )
|
||||
set ( OSS_SUPPORT ${OSS_FOUND} )
|
||||
unset ( OSS_SUPPORT CACHE )
|
||||
if ( enable-oss )
|
||||
find_package ( OSS QUIET )
|
||||
set ( OSS_SUPPORT ${OSS_FOUND} )
|
||||
endif ( enable-oss )
|
||||
|
||||
unset ( MIDISHARE_SUPPORT CACHE )
|
||||
if ( enable_midishare )
|
||||
|
|
Loading…
Reference in a new issue