Commit graph portaudio/examples/CMakeLists.txt
Author SHA1 Message Date
Be
242a0241f6 CMake rewrite using modern CMake best practices
Rewrite CMakeLists.txt using CMake targets and modules instead
of building up source files in variables.

Change pkgconfig file generated by CMake to use
Requires.private and Libs.private fields as recommended by the
pkgconfig maintainer:
https://people.freedesktop.org/~dbn/pkg-config-guide.html#faq

Refactor to use standard CMake variables, notably
BUILD_SHARED_LIBS instead of always building both dynamic and
static libraries. Also use CMAKE_FRAMEWORK for building as a
macOS framework.

Remove superfluous PA_ prefixes from option names.

When building with ASIO, automatically download ASIO SDK from
Steinberg if it is not found. The path to the SDK can be
manually specified with ASIO_SDK_ZIP_PATH to facilitate caching
on CI.

Add support for building JACK host API with MSVC and MinGW.

Add support for OSS (off by default).
2021-08-11 17:23:40 -07:00
Be
3e782f2494 CMake: clean up including headers for examples 2021-04-28 17:13:32 -07:00
Nick Appleton
0c10cb6c0c address all problems picked up by cmakelint except for line-length related comments. don't use min() in paex_record_file as it is a macro specific to windows. 2016-09-15 22:52:44 +10:00
Nicholas Appleton
1389dee5f6 get examples compiling with CMake on Windows again 2016-09-15 22:18:12 +10:00
robiwan
4aa340a57e CMake: Added PA_WDMKS_NO_KSGUID_LIB to WDMKS and solution folders
WDMKS: Support for default device (see caveat for input devices though in ScanDeviceInfos)
       Added possibility to set channel mask
2014-04-09 14:27:21 +00:00
robiwan
94b08c88bf Added a simple example that records to/plays from a file (using callback + ring buffer). Windows only at the moment. 2012-07-09 09:53:23 +00:00
robiwan
9f48ec4609 Added C++ variant of paex_sine 2012-06-19 20:03:33 +00:00
robiwan
6803965617 General:
- Change of CMake options to utilize built in header configuration support (PA_USE_*)
- Added CMakeLists.txt for examples
- Added paex_ocean_shore.c as an example how to use PA ring buffer for lock-free communication with the audio callback
WDM-KS:
- Added better default sample rate support
- Made sure that all pins now have a name, even if only "Input" or "Output"
- IsUSBDevice fixed acc. to Alex Lessard's suggestion
- IsNameUSBAudioDevice fixed similarly
2012-02-22 12:20:26 +00:00