Mercurial > hg > sv-dependency-builds
comparison src/portaudio_20140130/cmake_support/options_cmake.h.in @ 124:e3d5853d5918
Current stable PortAudio source
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Tue, 18 Oct 2016 13:11:05 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
123:0cef3a1bd1ae | 124:e3d5853d5918 |
---|---|
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 |