2020-12-02 04:34:21 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO thestk/rtaudio
|
2021-12-29 07:05:29 +08:00
|
|
|
REF 46b01b5b134f33d8ddc3dab76829d4b1350e0522
|
|
|
|
SHA512 f26f64fe77aa18c9adf401a720fc3d929af8655827f2c149539a1b73736efb3757ac2eaf5a6535a3c801df13e5f49728a49b6ffe5c01c2f91ab23e145bad5355
|
2020-12-02 04:34:21 +08:00
|
|
|
HEAD_REF master
|
2021-11-23 12:33:13 +08:00
|
|
|
PATCHES fix-alsa.patch
|
2020-12-02 04:34:21 +08:00
|
|
|
)
|
|
|
|
|
2021-11-23 12:33:13 +08:00
|
|
|
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" RTAUDIO_STATIC_MSVCRT)
|
2021-02-17 03:26:52 +08:00
|
|
|
|
2021-05-19 06:44:32 +08: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-06 03:51:59 +08:00
|
|
|
pulse RTAUDIO_API_PULSE
|
2021-05-19 06:44:32 +08:00
|
|
|
)
|
|
|
|
|
2021-08-19 08:09:24 +08:00
|
|
|
vcpkg_cmake_configure(
|
2021-11-23 12:33:13 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2021-08-13 10:26:09 +08:00
|
|
|
OPTIONS
|
|
|
|
-DRTAUDIO_STATIC_MSVCRT=${RTAUDIO_STATIC_MSVCRT}
|
|
|
|
-DRTAUDIO_API_JACK=OFF
|
|
|
|
${FEATURE_OPTIONS}
|
2020-12-02 04:34:21 +08:00
|
|
|
)
|
|
|
|
|
2021-08-19 08:09:24 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup()
|
2021-11-23 12:33:13 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2020-12-02 04:34:21 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2021-11-23 12:33:13 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2020-12-02 04:34:21 +08:00
|
|
|
|
2023-04-06 03:51:59 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|