annotate src/portaudio_20161030/cmake_support/options_cmake.h.in @ 153:84bc3a5ec321

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