fluidsynth/cmake_admin/report.cmake

240 lines
8.5 KiB
CMake
Raw Normal View History

2019-06-28 14:28:41 +00:00
set ( AUDIO_MIDI_REPORT "\n" )
2019-06-28 14:28:41 +00:00
if ( ALSA_SUPPORT )
set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} ALSA: yes\n" )
else ( ALSA_SUPPORT )
set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} ALSA: no\n" )
endif ( ALSA_SUPPORT )
2019-06-28 14:28:41 +00:00
if ( COREAUDIO_SUPPORT )
set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} CoreAudio: yes\n" )
else ( COREAUDIO_SUPPORT )
set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} CoreAudio: no\n" )
endif ( COREAUDIO_SUPPORT )
2019-06-28 14:28:41 +00:00
if ( COREMIDI_SUPPORT )
set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} CoreMIDI: yes\n" )
else ( COREMIDI_SUPPORT )
set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} CoreMIDI: no\n" )
endif ( COREMIDI_SUPPORT )
if ( DSOUND_SUPPORT )
set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} DSound: yes\n" )
else ( DSOUND_SUPPORT )
set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} DSound: no\n" )
endif ( DSOUND_SUPPORT )
if ( JACK_SUPPORT )
2019-06-28 14:28:41 +00:00
set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} JACK: yes\n" )
else ( JACK_SUPPORT )
2019-06-28 14:28:41 +00:00
set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} JACK: no\n" )
endif ( JACK_SUPPORT )
2019-06-28 14:28:41 +00:00
if ( MIDISHARE_SUPPORT )
set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} MidiShare: yes\n" )
else ( MIDISHARE_SUPPORT )
set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} MidiShare: no\n" )
endif ( MIDISHARE_SUPPORT )
2019-06-28 14:28:41 +00:00
if ( OBOE_SUPPORT )
set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} Oboe: yes\n" )
else ( OBOE_SUPPORT )
set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} Oboe: no\n" )
endif ( OBOE_SUPPORT )
if ( OPENSLES_SUPPORT )
2019-06-28 14:28:41 +00:00
set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} OpenSLES: yes\n" )
else ( OPENSLES_SUPPORT )
set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} OpenSLES: no\n" )
endif ( OPENSLES_SUPPORT )
2019-06-28 14:28:41 +00:00
if ( DART_SUPPORT )
set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} OS/2 DART: yes\n" )
else ( DART_SUPPORT )
set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} OS/2 DART: no\n" )
endif ( DART_SUPPORT )
2019-06-28 14:28:41 +00:00
if ( OSS_SUPPORT )
set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} OSS: yes\n" )
else ( OSS_SUPPORT )
set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} OSS: no\n" )
endif ( OSS_SUPPORT )
2019-06-28 14:28:41 +00:00
if ( PORTAUDIO_SUPPORT )
set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} PortAudio: yes\n" )
else ( PORTAUDIO_SUPPORT )
set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} PortAudio: no\n" )
endif ( PORTAUDIO_SUPPORT )
2019-06-28 14:28:41 +00:00
if ( PULSE_SUPPORT )
set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} PulseAudio: yes\n" )
else ( PULSE_SUPPORT )
set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} PulseAudio: no\n" )
endif ( PULSE_SUPPORT )
2019-06-28 14:28:41 +00:00
if ( SDL2_SUPPORT )
set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} SDL2: yes\n" )
else ( SDL2_SUPPORT )
set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} SDL2: no\n" )
endif ( SDL2_SUPPORT )
2018-10-26 17:35:50 +00:00
2018-12-01 14:04:26 +00:00
if ( WAVEOUT_SUPPORT )
2019-06-28 14:28:41 +00:00
set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} WaveOut: yes\n" )
2018-12-01 14:04:26 +00:00
else ( WAVEOUT_SUPPORT )
2019-06-28 14:28:41 +00:00
set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} WaveOut: no\n" )
2018-12-01 14:04:26 +00:00
endif ( WAVEOUT_SUPPORT )
2018-10-26 17:35:50 +00:00
if ( WINMIDI_SUPPORT )
2019-06-28 14:28:41 +00:00
set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} WinMidi: yes\n" )
2018-10-26 17:35:50 +00:00
else ( WINMIDI_SUPPORT )
2019-06-28 14:28:41 +00:00
set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} WinMidi: no\n" )
2018-10-26 17:35:50 +00:00
endif ( WINMIDI_SUPPORT )
2018-12-14 15:43:35 +00:00
2019-06-28 14:28:41 +00:00
set ( INPUTS_REPORT "\n" )
2019-06-28 14:28:41 +00:00
set ( INPUTS_REPORT "${INPUTS_REPORT}Support for SF3 files: " )
if ( LIBSNDFILE_HASVORBIS )
set ( INPUTS_REPORT "${INPUTS_REPORT}yes\n" )
elseif ( NOT LIBSNDFILE_SUPPORT )
set ( INPUTS_REPORT "${INPUTS_REPORT}no (libsndfile not found)\n" )
elseif ( NOT LIBSNDFILE_HASVORBIS )
set ( INPUTS_REPORT "${INPUTS_REPORT}no (libsndfile has no ogg vorbis support)\n" )
endif ( LIBSNDFILE_HASVORBIS )
2019-06-28 14:28:41 +00:00
set ( INPUTS_REPORT "${INPUTS_REPORT}Support for DLS files: " )
if ( LIBINSTPATCH_SUPPORT )
set ( INPUTS_REPORT "${INPUTS_REPORT}yes\n" )
else ( LIBINSTPATCH_SUPPORT )
set ( INPUTS_REPORT "${INPUTS_REPORT}no (libinstpatch not found)\n" )
endif ( LIBINSTPATCH_SUPPORT )
set ( RENDERING_REPORT "\n" )
if ( AUFILE_SUPPORT )
2019-06-28 14:28:41 +00:00
set ( RENDERING_REPORT "${RENDERING_REPORT}Audio to file rendering: yes\n" )
else ( AUFILE_SUPPORT )
2019-06-28 14:28:41 +00:00
set ( RENDERING_REPORT "${RENDERING_REPORT}Audio to file rendering: no\n" )
endif ( AUFILE_SUPPORT )
2019-06-28 14:28:41 +00:00
if ( LIBSNDFILE_SUPPORT )
set ( RENDERING_REPORT "${RENDERING_REPORT} libsndfile: yes\n" )
else ( LIBSNDFILE_SUPPORT )
set ( RENDERING_REPORT "${RENDERING_REPORT} libsndfile: no (RAW PCM rendering only)\n" )
endif ( LIBSNDFILE_SUPPORT )
set ( MISC_REPORT "\nMiscellaneous support:\n" )
if ( DBUS_SUPPORT )
set ( MISC_REPORT "${MISC_REPORT} D-Bus: yes\n" )
else ( DBUS_SUPPORT )
set ( MISC_REPORT "${MISC_REPORT} D-Bus: no\n" )
endif ( DBUS_SUPPORT )
if ( LADSPA_SUPPORT )
set ( MISC_REPORT "${MISC_REPORT} LADSPA support: yes\n" )
else ( LADSPA_SUPPORT )
set ( MISC_REPORT "${MISC_REPORT} LADSPA support: no\n" )
endif ( LADSPA_SUPPORT )
if ( LASH_SUPPORT )
set ( MISC_REPORT "${MISC_REPORT} LASH support: yes (NOTE: GPL library)\n" )
else ( LASH_SUPPORT )
set ( MISC_REPORT "${MISC_REPORT} LASH support: no\n" )
endif ( LASH_SUPPORT )
if ( NETWORK_SUPPORT )
2019-06-28 14:28:41 +00:00
set ( MISC_REPORT "${MISC_REPORT} NETWORK Support: yes\n" )
else ( NETWORK_SUPPORT )
2019-06-28 14:28:41 +00:00
set ( MISC_REPORT "${MISC_REPORT} NETWORK Support: no\n" )
endif ( NETWORK_SUPPORT )
2014-07-02 06:10:07 +00:00
if ( IPV6_SUPPORT )
2019-06-28 14:28:41 +00:00
set ( MISC_REPORT "${MISC_REPORT} IPV6 Support: yes\n" )
2014-07-02 06:10:07 +00:00
else ( IPV6_SUPPORT )
2019-06-28 14:28:41 +00:00
set ( MISC_REPORT "${MISC_REPORT} IPV6 Support: no\n" )
2014-07-02 06:10:07 +00:00
endif ( IPV6_SUPPORT )
if ( WITH_READLINE )
2019-06-28 14:28:41 +00:00
set ( MISC_REPORT "${MISC_REPORT} Readline: yes (NOTE: GPL library)\n" )
else ( WITH_READLINE )
2019-06-28 14:28:41 +00:00
set ( MISC_REPORT "${MISC_REPORT} Readline: no\n" )
endif ( WITH_READLINE )
2019-06-28 14:28:41 +00:00
if ( SYSTEMD_SUPPORT )
set ( MISC_REPORT "${MISC_REPORT} systemd: yes\n" )
else ( SYSTEMD_SUPPORT )
set ( MISC_REPORT "${MISC_REPORT} systemd: no\n" )
endif ( SYSTEMD_SUPPORT )
set ( DEVEL_REPORT "\nDeveloper nerds info:\n" )
if ( WITH_FLOAT )
2019-06-28 14:28:41 +00:00
set ( DEVEL_REPORT "${DEVEL_REPORT} Samples type: float\n" )
else ( WITH_FLOAT )
2019-06-28 14:28:41 +00:00
set ( DEVEL_REPORT "${DEVEL_REPORT} Samples type: double\n" )
endif ( WITH_FLOAT )
2019-06-28 14:28:41 +00:00
if ( ENABLE_MIXER_THREADS )
set ( DEVEL_REPORT "${DEVEL_REPORT} Multithread rendering: yes\n" )
else ( ENABLE_MIXER_THREADS )
set ( DEVEL_REPORT "${DEVEL_REPORT} Multithread rendering: no\n" )
endif ( ENABLE_MIXER_THREADS )
2018-04-25 12:38:28 +00:00
if ( HAVE_OPENMP )
2019-06-28 14:28:41 +00:00
set ( DEVEL_REPORT "${DEVEL_REPORT} OpenMP 4.0: yes\n" )
2018-04-25 12:38:28 +00:00
else ( HAVE_OPENMP )
2019-06-28 14:28:41 +00:00
set ( DEVEL_REPORT "${DEVEL_REPORT} OpenMP 4.0: no\n" )
2018-04-25 12:38:28 +00:00
endif ( HAVE_OPENMP )
2019-06-28 14:28:41 +00:00
if ( WITH_PROFILING )
set ( DEVEL_REPORT "${DEVEL_REPORT} Profiling: yes\n" )
else ( WITH_PROFILING )
set ( DEVEL_REPORT "${DEVEL_REPORT} Profiling: no\n" )
endif ( WITH_PROFILING )
if ( ENABLE_DEBUG )
2019-06-28 14:28:41 +00:00
set ( DEVEL_REPORT "${DEVEL_REPORT} Debug Build: yes\n" )
else ( ENABLE_DEBUG )
2019-06-28 14:28:41 +00:00
set ( DEVEL_REPORT "${DEVEL_REPORT} Debug Build: no\n" )
endif ( ENABLE_DEBUG )
if ( ENABLE_TRAPONFPE )
2019-06-28 14:28:41 +00:00
set ( DEVEL_REPORT "${DEVEL_REPORT} Trap on FPE (debug): yes\n" )
else ( ENABLE_TRAPONFPE )
2019-06-28 14:28:41 +00:00
set ( DEVEL_REPORT "${DEVEL_REPORT} Trap on FPE (debug): no\n" )
endif ( ENABLE_TRAPONFPE )
if ( ENABLE_FPECHECK )
2019-06-28 14:28:41 +00:00
set ( DEVEL_REPORT "${DEVEL_REPORT} Check FPE (debug): yes\n" )
else ( ENABLE_FPECHECK )
2019-06-28 14:28:41 +00:00
set ( DEVEL_REPORT "${DEVEL_REPORT} Check FPE (debug): no\n" )
endif ( ENABLE_FPECHECK )
if ( ENABLE_UBSAN )
2019-06-28 14:28:41 +00:00
set ( DEVEL_REPORT "${DEVEL_REPORT} UBSan (debug): yes\n" )
else ( ENABLE_UBSAN )
2019-06-28 14:28:41 +00:00
set ( DEVEL_REPORT "${DEVEL_REPORT} UBSan (debug): no\n" )
endif ( ENABLE_UBSAN )
2019-06-28 14:28:41 +00:00
message( STATUS
"\n**************************************************************\n"
"Build Summary:\n"
"Build type: " ${CMAKE_BUILD_TYPE} "\n"
"Install Prefix: " ${CMAKE_INSTALL_PREFIX} "\n"
"\n"
"Audio / MIDI driver support:"
${AUDIO_MIDI_REPORT}
${INPUTS_REPORT}
${RENDERING_REPORT}
${MISC_REPORT}
${DEVEL_REPORT}
)
message ( "**************************************************************\n\n" )