1 2set ( AUDIO_MIDI_REPORT "\n" ) 3 4if ( ALSA_SUPPORT ) 5 set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} ALSA: yes\n" ) 6else ( ALSA_SUPPORT ) 7 set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} ALSA: no\n" ) 8endif ( ALSA_SUPPORT ) 9 10if ( COREAUDIO_SUPPORT ) 11 set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} CoreAudio: yes\n" ) 12else ( COREAUDIO_SUPPORT ) 13 set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} CoreAudio: no\n" ) 14endif ( COREAUDIO_SUPPORT ) 15 16if ( COREMIDI_SUPPORT ) 17 set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} CoreMIDI: yes\n" ) 18else ( COREMIDI_SUPPORT ) 19 set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} CoreMIDI: no\n" ) 20endif ( COREMIDI_SUPPORT ) 21 22if ( DSOUND_SUPPORT ) 23 set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} DSound: yes\n" ) 24else ( DSOUND_SUPPORT ) 25 set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} DSound: no\n" ) 26endif ( DSOUND_SUPPORT ) 27 28if ( SNDIO_SUPPORT ) 29 message ( "Sndio: yes" ) 30else ( SNDIO_SUPPORT ) 31 message ( "Sndio: no" ) 32endif ( SNDIO_SUPPORT ) 33 34if ( JACK_SUPPORT ) 35 set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} JACK: yes\n" ) 36else ( JACK_SUPPORT ) 37 set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} JACK: no\n" ) 38endif ( JACK_SUPPORT ) 39 40if ( MIDISHARE_SUPPORT ) 41 set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} MidiShare: yes\n" ) 42else ( MIDISHARE_SUPPORT ) 43 set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} MidiShare: no\n" ) 44endif ( MIDISHARE_SUPPORT ) 45 46if ( OBOE_SUPPORT ) 47 set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} Oboe: yes\n" ) 48else ( OBOE_SUPPORT ) 49 set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} Oboe: no\n" ) 50endif ( OBOE_SUPPORT ) 51 52if ( OPENSLES_SUPPORT ) 53 set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} OpenSLES: yes\n" ) 54else ( OPENSLES_SUPPORT ) 55 set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} OpenSLES: no\n" ) 56endif ( OPENSLES_SUPPORT ) 57 58if ( DART_SUPPORT ) 59 set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} OS/2 DART: yes\n" ) 60else ( DART_SUPPORT ) 61 set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} OS/2 DART: no\n" ) 62endif ( DART_SUPPORT ) 63 64if ( OSS_SUPPORT ) 65 set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} OSS: yes\n" ) 66else ( OSS_SUPPORT ) 67 set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} OSS: no\n" ) 68endif ( OSS_SUPPORT ) 69 70if ( PORTAUDIO_SUPPORT ) 71 set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} PortAudio: yes\n" ) 72else ( PORTAUDIO_SUPPORT ) 73 set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} PortAudio: no\n" ) 74endif ( PORTAUDIO_SUPPORT ) 75 76if ( PULSE_SUPPORT ) 77 set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} PulseAudio: yes\n" ) 78else ( PULSE_SUPPORT ) 79 set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} PulseAudio: no\n" ) 80endif ( PULSE_SUPPORT ) 81 82if ( SDL2_SUPPORT ) 83 set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} SDL2: yes\n" ) 84else ( SDL2_SUPPORT ) 85 set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} SDL2: no\n" ) 86endif ( SDL2_SUPPORT ) 87 88if ( WASAPI_SUPPORT ) 89 set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} WASAPI: yes\n" ) 90else ( WASAPI_SUPPORT ) 91 set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} WASAPI: no\n" ) 92endif ( WASAPI_SUPPORT ) 93 94if ( WAVEOUT_SUPPORT ) 95 set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} WaveOut: yes\n" ) 96else ( WAVEOUT_SUPPORT ) 97 set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} WaveOut: no\n" ) 98endif ( WAVEOUT_SUPPORT ) 99 100if ( WINMIDI_SUPPORT ) 101 set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} WinMidi: yes\n" ) 102else ( WINMIDI_SUPPORT ) 103 set ( AUDIO_MIDI_REPORT "${AUDIO_MIDI_REPORT} WinMidi: no\n" ) 104endif ( WINMIDI_SUPPORT ) 105 106 107set ( INPUTS_REPORT "\n" ) 108 109set ( INPUTS_REPORT "${INPUTS_REPORT}Support for SF3 files: " ) 110if ( LIBSNDFILE_HASVORBIS ) 111 set ( INPUTS_REPORT "${INPUTS_REPORT}yes\n" ) 112elseif ( NOT LIBSNDFILE_SUPPORT ) 113 set ( INPUTS_REPORT "${INPUTS_REPORT}no (libsndfile not found)\n" ) 114elseif ( NOT LIBSNDFILE_HASVORBIS ) 115 set ( INPUTS_REPORT "${INPUTS_REPORT}no (libsndfile has no ogg vorbis support)\n" ) 116endif ( LIBSNDFILE_HASVORBIS ) 117 118 119set ( INPUTS_REPORT "${INPUTS_REPORT}Support for DLS files: " ) 120if ( LIBINSTPATCH_SUPPORT ) 121 set ( INPUTS_REPORT "${INPUTS_REPORT}yes\n" ) 122else ( LIBINSTPATCH_SUPPORT ) 123 set ( INPUTS_REPORT "${INPUTS_REPORT}no (libinstpatch not found)\n" ) 124endif ( LIBINSTPATCH_SUPPORT ) 125 126 127set ( RENDERING_REPORT "\n" ) 128 129if ( AUFILE_SUPPORT ) 130 set ( RENDERING_REPORT "${RENDERING_REPORT}Audio to file rendering: yes\n" ) 131else ( AUFILE_SUPPORT ) 132 set ( RENDERING_REPORT "${RENDERING_REPORT}Audio to file rendering: no\n" ) 133endif ( AUFILE_SUPPORT ) 134 135if ( LIBSNDFILE_SUPPORT ) 136 set ( RENDERING_REPORT "${RENDERING_REPORT} libsndfile: yes\n" ) 137else ( LIBSNDFILE_SUPPORT ) 138 set ( RENDERING_REPORT "${RENDERING_REPORT} libsndfile: no (RAW PCM rendering only)\n" ) 139endif ( LIBSNDFILE_SUPPORT ) 140 141 142set ( MISC_REPORT "\nMiscellaneous support:\n" ) 143 144if ( DBUS_SUPPORT ) 145 set ( MISC_REPORT "${MISC_REPORT} D-Bus: yes\n" ) 146else ( DBUS_SUPPORT ) 147 set ( MISC_REPORT "${MISC_REPORT} D-Bus: no\n" ) 148endif ( DBUS_SUPPORT ) 149 150if ( LADSPA_SUPPORT ) 151 set ( MISC_REPORT "${MISC_REPORT} LADSPA support: yes\n" ) 152else ( LADSPA_SUPPORT ) 153 set ( MISC_REPORT "${MISC_REPORT} LADSPA support: no\n" ) 154endif ( LADSPA_SUPPORT ) 155 156if ( LASH_SUPPORT ) 157 set ( MISC_REPORT "${MISC_REPORT} LASH support: yes (NOTE: GPL library)\n" ) 158else ( LASH_SUPPORT ) 159 set ( MISC_REPORT "${MISC_REPORT} LASH support: no\n" ) 160endif ( LASH_SUPPORT ) 161 162if ( NETWORK_SUPPORT ) 163 set ( MISC_REPORT "${MISC_REPORT} NETWORK Support: yes\n" ) 164else ( NETWORK_SUPPORT ) 165 set ( MISC_REPORT "${MISC_REPORT} NETWORK Support: no\n" ) 166endif ( NETWORK_SUPPORT ) 167 168if ( IPV6_SUPPORT ) 169 set ( MISC_REPORT "${MISC_REPORT} IPV6 Support: yes\n" ) 170else ( IPV6_SUPPORT ) 171 set ( MISC_REPORT "${MISC_REPORT} IPV6 Support: no\n" ) 172endif ( IPV6_SUPPORT ) 173 174if ( WITH_READLINE ) 175 set ( MISC_REPORT "${MISC_REPORT} Readline: yes (NOTE: GPL library)\n" ) 176else ( WITH_READLINE ) 177 set ( MISC_REPORT "${MISC_REPORT} Readline: no\n" ) 178endif ( WITH_READLINE ) 179 180if ( SYSTEMD_SUPPORT ) 181 set ( MISC_REPORT "${MISC_REPORT} systemd: yes\n" ) 182else ( SYSTEMD_SUPPORT ) 183 set ( MISC_REPORT "${MISC_REPORT} systemd: no\n" ) 184endif ( SYSTEMD_SUPPORT ) 185 186if ( HAVE_GETOPT_H ) 187 set ( MISC_REPORT "${MISC_REPORT} getopt: yes\n" ) 188else ( HAVE_GETOPT_H ) 189 set ( MISC_REPORT "${MISC_REPORT} getopt: no\n" ) 190endif ( HAVE_GETOPT_H ) 191 192 193set ( DEVEL_REPORT "\nDeveloper nerds info:\n" ) 194 195if ( WITH_FLOAT ) 196 set ( DEVEL_REPORT "${DEVEL_REPORT} Samples type: float\n" ) 197else ( WITH_FLOAT ) 198 set ( DEVEL_REPORT "${DEVEL_REPORT} Samples type: double\n" ) 199endif ( WITH_FLOAT ) 200 201if ( ENABLE_MIXER_THREADS ) 202 set ( DEVEL_REPORT "${DEVEL_REPORT} Multithread rendering: yes\n" ) 203else ( ENABLE_MIXER_THREADS ) 204 set ( DEVEL_REPORT "${DEVEL_REPORT} Multithread rendering: no\n" ) 205endif ( ENABLE_MIXER_THREADS ) 206 207if ( HAVE_OPENMP ) 208 set ( DEVEL_REPORT "${DEVEL_REPORT} OpenMP 4.0: yes\n" ) 209else ( HAVE_OPENMP ) 210 set ( DEVEL_REPORT "${DEVEL_REPORT} OpenMP 4.0: no\n" ) 211endif ( HAVE_OPENMP ) 212 213if ( WITH_PROFILING ) 214 set ( DEVEL_REPORT "${DEVEL_REPORT} Profiling: yes\n" ) 215else ( WITH_PROFILING ) 216 set ( DEVEL_REPORT "${DEVEL_REPORT} Profiling: no\n" ) 217endif ( WITH_PROFILING ) 218 219if ( ENABLE_DEBUG ) 220 set ( DEVEL_REPORT "${DEVEL_REPORT} Debug Build: yes\n" ) 221else ( ENABLE_DEBUG ) 222 set ( DEVEL_REPORT "${DEVEL_REPORT} Debug Build: no\n" ) 223endif ( ENABLE_DEBUG ) 224 225if ( ENABLE_TRAPONFPE ) 226 set ( DEVEL_REPORT "${DEVEL_REPORT} Trap on FPE (debug): yes\n" ) 227else ( ENABLE_TRAPONFPE ) 228 set ( DEVEL_REPORT "${DEVEL_REPORT} Trap on FPE (debug): no\n" ) 229endif ( ENABLE_TRAPONFPE ) 230 231if ( ENABLE_FPECHECK ) 232 set ( DEVEL_REPORT "${DEVEL_REPORT} Check FPE (debug): yes\n" ) 233else ( ENABLE_FPECHECK ) 234 set ( DEVEL_REPORT "${DEVEL_REPORT} Check FPE (debug): no\n" ) 235endif ( ENABLE_FPECHECK ) 236 237if ( ENABLE_UBSAN ) 238 set ( DEVEL_REPORT "${DEVEL_REPORT} UBSan (debug): yes\n" ) 239else ( ENABLE_UBSAN ) 240 set ( DEVEL_REPORT "${DEVEL_REPORT} UBSan (debug): no\n" ) 241endif ( ENABLE_UBSAN ) 242 243if ( ENABLE_COVERAGE ) 244 set ( DEVEL_REPORT "${DEVEL_REPORT} Coverage: yes\n" ) 245else ( ENABLE_COVERAGE ) 246 set ( DEVEL_REPORT "${DEVEL_REPORT} Coverage: no\n" ) 247endif ( ENABLE_COVERAGE ) 248 249message( STATUS 250 "\n**************************************************************\n" 251 "Build Summary:\n" 252 "Build type: " ${CMAKE_BUILD_TYPE} "\n" 253 "Install Prefix: " ${CMAKE_INSTALL_PREFIX} "\n" 254 "\n" 255 "Audio / MIDI driver support:" 256 ${AUDIO_MIDI_REPORT} 257 ${INPUTS_REPORT} 258 ${RENDERING_REPORT} 259 ${MISC_REPORT} 260 ${DEVEL_REPORT} 261 ) 262 263message ( "**************************************************************\n\n" ) 264