Mercurial > hg > sv-dependency-builds
annotate src/portaudio/cmake_support/options_cmake.h.in @ 44:9894b839b0cb
Updated MSVC
author | Chris Cannam |
---|---|
date | Tue, 18 Oct 2016 15:58:42 +0100 |
parents | e13257ea84a4 |
children |
rev | line source |
---|---|
Chris@4 | 1 /* $Id: $ |
Chris@4 | 2 |
Chris@4 | 3 !!! @GENERATED_MESSAGE@ !!! |
Chris@4 | 4 |
Chris@4 | 5 Header file configured by CMake to convert CMake options/vars to macros. It is done this way because if set via |
Chris@4 | 6 preprocessor options, MSVC f.i. has no way of knowing when an option (or var) changes as there is no dependency chain. |
Chris@4 | 7 |
Chris@4 | 8 The generated "options_cmake.h" should be included like so: |
Chris@4 | 9 |
Chris@4 | 10 #ifdef PORTAUDIO_CMAKE_GENERATED |
Chris@4 | 11 #include "options_cmake.h" |
Chris@4 | 12 #endif |
Chris@4 | 13 |
Chris@4 | 14 so that non-CMake build environments are left intact. |
Chris@4 | 15 |
Chris@4 | 16 Source template: cmake_support/options_cmake.h.in |
Chris@4 | 17 */ |
Chris@4 | 18 |
Chris@4 | 19 #ifdef _WIN32 |
Chris@4 | 20 #if defined(PA_USE_ASIO) || defined(PA_USE_DS) || defined(PA_USE_WMME) || defined(PA_USE_WASAPI) || defined(PA_USE_WDMKS) |
Chris@4 | 21 #error "This header needs to be included before pa_hostapi.h!!" |
Chris@4 | 22 #endif |
Chris@4 | 23 |
Chris@4 | 24 #define PA_USE_ASIO @PA_ENABLE_ASIO@ |
Chris@4 | 25 #define PA_USE_DS @PA_ENABLE_DSOUND@ |
Chris@4 | 26 #define PA_USE_WMME @PA_ENABLE_WMME@ |
Chris@4 | 27 #define PA_USE_WASAPI @PA_ENABLE_WASAPI@ |
Chris@4 | 28 #define PA_USE_WDMKS @PA_ENABLE_WDMKS@ |
Chris@4 | 29 #else |
Chris@4 | 30 #error "Platform currently not supported by CMake script" |
Chris@4 | 31 #endif |