2020-12-01 21:34:21 +01:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO thestk/rtaudio
|
2023-12-07 13:26:26 +08:00
|
|
|
REF ${VERSION}
|
|
|
|
SHA512 085feb2673185460717ba45fc87254961e477823759e11281092c1ba13301303de1cd36aa9efeba0710cbf2c70f2e2f7f9e41173cf372ded528c41612b19acd5
|
2020-12-01 21:34:21 +01:00
|
|
|
HEAD_REF master
|
2024-05-09 20:04:12 +00:00
|
|
|
PATCHES
|
|
|
|
fix-pulse.patch
|
2020-12-01 21:34:21 +01:00
|
|
|
)
|
|
|
|
|
2021-11-23 12:33:13 +08:00
|
|
|
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" RTAUDIO_STATIC_MSVCRT)
|
2021-02-16 20:26:52 +01:00
|
|
|
|
2021-05-18 15:44:32 -07:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
|
|
|
asio RTAUDIO_API_ASIO
|
2021-11-23 12:33:13 +08:00
|
|
|
alsa RTAUDIO_API_ALSA
|
2023-04-05 21:51:59 +02:00
|
|
|
pulse RTAUDIO_API_PULSE
|
2021-05-18 15:44:32 -07:00
|
|
|
)
|
2024-05-09 20:04:12 +00:00
|
|
|
set(PKG_OPT "")
|
|
|
|
if("pulse" IN_LIST FEATURES)
|
|
|
|
vcpkg_find_acquire_program(PKGCONFIG)
|
|
|
|
set(PKG_OPT "-DPKG_CONFIG_EXECUTABLE=${PKGCONFIG}")
|
|
|
|
endif()
|
2021-08-19 02:09:24 +02:00
|
|
|
vcpkg_cmake_configure(
|
2021-11-23 12:33:13 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2021-08-12 19:26:09 -07:00
|
|
|
OPTIONS
|
|
|
|
-DRTAUDIO_STATIC_MSVCRT=${RTAUDIO_STATIC_MSVCRT}
|
|
|
|
-DRTAUDIO_API_JACK=OFF
|
|
|
|
${FEATURE_OPTIONS}
|
2024-05-09 20:04:12 +00:00
|
|
|
${PKG_OPT}
|
2020-12-01 21:34:21 +01:00
|
|
|
)
|
|
|
|
|
2021-08-19 02:09:24 +02:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup()
|
2021-11-23 12:33:13 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2020-12-01 21:34:21 +01:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2021-11-23 12:33:13 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2020-12-01 21:34:21 +01:00
|
|
|
|
2023-04-05 21:51:59 +02:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|