| 1 |
/* $Id: $ |
| 2 |
|
| 3 |
!!! @GENERATED_MESSAGE@ !!! |
| 4 |
|
| 5 |
Header file configured by CMake to convert CMake options/vars to macros. It is done this way because if set via |
| 6 |
preprocessor options, MSVC f.i. has no way of knowing when an option (or var) changes as there is no dependency chain. |
| 7 |
|
| 8 |
The generated "options_cmake.h" should be included like so: |
| 9 |
|
| 10 |
#ifdef PORTAUDIO_CMAKE_GENERATED |
| 11 |
#include "options_cmake.h" |
| 12 |
#endif |
| 13 |
|
| 14 |
so that non-CMake build environments are left intact. |
| 15 |
|
| 16 |
Source template: cmake_support/options_cmake.h.in |
| 17 |
*/ |
| 18 |
|
| 19 |
#ifdef _WIN32 |
| 20 |
#if defined(PA_USE_ASIO) || defined(PA_USE_DS) || defined(PA_USE_WMME) || defined(PA_USE_WASAPI) || defined(PA_USE_WDMKS) |
| 21 |
#error "This header needs to be included before pa_hostapi.h!!" |
| 22 |
#endif |
| 23 |
|
| 24 |
#cmakedefine01 PA_USE_ASIO |
| 25 |
#cmakedefine01 PA_USE_DS |
| 26 |
#cmakedefine01 PA_USE_WMME |
| 27 |
#cmakedefine01 PA_USE_WASAPI |
| 28 |
#cmakedefine01 PA_USE_WDMKS |
| 29 |
#else |
| 30 |
#error "Platform currently not supported by CMake script" |
| 31 |
#endif |