Chris@4: /* $Id: $ Chris@4: Chris@4: !!! @GENERATED_MESSAGE@ !!! Chris@4: Chris@4: Header file configured by CMake to convert CMake options/vars to macros. It is done this way because if set via Chris@4: preprocessor options, MSVC f.i. has no way of knowing when an option (or var) changes as there is no dependency chain. Chris@4: Chris@4: The generated "options_cmake.h" should be included like so: Chris@4: Chris@4: #ifdef PORTAUDIO_CMAKE_GENERATED Chris@4: #include "options_cmake.h" Chris@4: #endif Chris@4: Chris@4: so that non-CMake build environments are left intact. Chris@4: Chris@4: Source template: cmake_support/options_cmake.h.in Chris@4: */ Chris@4: Chris@4: #ifdef _WIN32 Chris@4: #if defined(PA_USE_ASIO) || defined(PA_USE_DS) || defined(PA_USE_WMME) || defined(PA_USE_WASAPI) || defined(PA_USE_WDMKS) Chris@4: #error "This header needs to be included before pa_hostapi.h!!" Chris@4: #endif Chris@4: Chris@4: #define PA_USE_ASIO @PA_ENABLE_ASIO@ Chris@4: #define PA_USE_DS @PA_ENABLE_DSOUND@ Chris@4: #define PA_USE_WMME @PA_ENABLE_WMME@ Chris@4: #define PA_USE_WASAPI @PA_ENABLE_WASAPI@ Chris@4: #define PA_USE_WDMKS @PA_ENABLE_WDMKS@ Chris@4: #else Chris@4: #error "Platform currently not supported by CMake script" Chris@4: #endif