Initial CMake support (MSVC only at the moment)
This commit is contained in:
parent
5716669053
commit
e535a7b800
6 changed files with 519 additions and 0 deletions
31
cmake_support/options_cmake.h.in
Normal file
31
cmake_support/options_cmake.h.in
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
/* $Id: $
|
||||
|
||||
!!! @GENERATED_MESSAGE@ !!!
|
||||
|
||||
Header file configured by CMake to convert CMake options/vars to macros. It is done this way because if set via
|
||||
preprocessor options, MSVC f.i. has no way of knowing when an option (or var) changes as there is no dependency chain.
|
||||
|
||||
The generated "options_cmake.h" should be included like so:
|
||||
|
||||
#ifdef PORTAUDIO_CMAKE_GENERATED
|
||||
#include "options_cmake.h"
|
||||
#endif
|
||||
|
||||
so that non-CMake build environments are left intact.
|
||||
|
||||
Source template: cmake_support/options_cmake.h.in
|
||||
*/
|
||||
|
||||
#ifdef _WIN32
|
||||
#if defined(PA_USE_ASIO) || defined(PA_USE_DS) || defined(PA_USE_WMME) || defined(PA_USE_WASAPI) || defined(PA_USE_WDMKS)
|
||||
#error "This header needs to be included before pa_hostapi.h!!"
|
||||
#endif
|
||||
|
||||
#define PA_USE_ASIO @PA_ENABLE_ASIO@
|
||||
#define PA_USE_DS @PA_ENABLE_DSOUND@
|
||||
#define PA_USE_WMME @PA_ENABLE_WMME@
|
||||
#define PA_USE_WASAPI @PA_ENABLE_WASAPI@
|
||||
#define PA_USE_WDMKS @PA_ENABLE_WDMKS@
|
||||
#else
|
||||
#error "Platform currently not supported by CMake script"
|
||||
#endif
|
||||
Loading…
Reference in a new issue