annotate src/portaudio_20161030/cmake_support/options_cmake.h.in @ 79:91c729825bca pa_catalina

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