]> Repos - portaudio/commit
CMake rewrite using modern CMake best practices
authorBe <be@mixxx.org>
Tue, 9 Feb 2021 17:01:57 +0000 (11:01 -0600)
committerPhil Burk <philburk@mobileer.com>
Thu, 12 Aug 2021 00:23:40 +0000 (17:23 -0700)
commit242a0241f69bd359b692004f3974ce39ec5137fd
tree62125a714fbe35c9172dfb459a5eedb67aa52d55
parente54cdbbb43f1251f2fbca8f3827e1191abeabb62
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).
16 files changed:
.github/asiosdk-version.txt [new file with mode: 0644]
CMakeLists.txt
cmake/FindASIOSDK.cmake [deleted file]
cmake/FindJack.cmake [deleted file]
cmake/PortAudioConfig.cmake.in [new file with mode: 0644]
cmake/modules/FindASIO.cmake [new file with mode: 0644]
cmake/modules/FindJACK.cmake [new file with mode: 0644]
cmake/modules/FindRegex.cmake [new file with mode: 0644]
cmake/options_cmake.h.in [deleted file]
cmake/portaudio-2.0.pc.in
cmake/portaudio.def.in [moved from cmake/template_portaudio.def with 98% similarity]
cmake/portaudioConfig.cmake.in [deleted file]
examples/CMakeLists.txt
qa/CMakeLists.txt
qa/loopback/CMakeLists.txt
test/CMakeLists.txt