annotate src/portaudio_20140130/cmake_support/options_cmake.h.in @ 81:7029a4916348

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