2021-10-16 10:29:26 +08:00
|
|
|
vcpkg_from_github(
|
2021-09-29 08:10:48 +08:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2021-10-16 10:29:26 +08:00
|
|
|
GITHUB_HOST https://codeberg.org
|
2021-09-29 08:10:48 +08:00
|
|
|
REPO soundtouch/soundtouch
|
2023-10-25 22:10:23 +08:00
|
|
|
REF ${VERSION}
|
2024-02-15 07:40:29 +08:00
|
|
|
SHA512 93f757b2c1abe16be589e0d191e6c0416c5980843bd416cd5cb820b65a705d98081c0fc7ca0d9880af54b5343318262c77ba39a096bb240ceec084e93ceef964
|
2021-09-29 08:10:48 +08:00
|
|
|
HEAD_REF master
|
2024-03-05 17:40:17 +08:00
|
|
|
PATCHES
|
|
|
|
use-o3-emscripten.patch # Upstream PR: https://codeberg.org/soundtouch/soundtouch/pulls/29
|
2018-01-04 00:58:04 +08:00
|
|
|
)
|
2019-10-08 01:35:13 +08:00
|
|
|
|
2021-09-29 08:10:48 +08:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
|
|
|
soundstretch SOUNDSTRETCH
|
|
|
|
soundtouchdll SOUNDTOUCH_DLL
|
2019-10-08 01:35:13 +08:00
|
|
|
)
|
2018-01-04 00:58:04 +08:00
|
|
|
|
2021-09-29 08:10:48 +08:00
|
|
|
if(SOUNDTOUCH_DLL)
|
|
|
|
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
|
|
|
|
endif()
|
2018-01-04 00:58:04 +08:00
|
|
|
|
2021-09-29 08:10:48 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS ${FEATURE_OPTIONS}
|
2018-01-04 00:58:04 +08:00
|
|
|
)
|
2021-09-29 08:10:48 +08:00
|
|
|
vcpkg_cmake_install()
|
2018-01-04 00:58:04 +08:00
|
|
|
|
2021-09-29 08:10:48 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/SoundTouch)
|
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
vcpkg_copy_pdbs()
|
2018-01-04 00:58:04 +08:00
|
|
|
|
2021-09-29 08:10:48 +08:00
|
|
|
if(SOUNDSTRETCH)
|
|
|
|
vcpkg_copy_tools(TOOL_NAMES soundstretch AUTO_CLEAN)
|
|
|
|
endif()
|
2018-01-04 00:58:04 +08:00
|
|
|
|
2023-10-25 22:10:23 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING.TXT")
|
2021-09-29 08:10:48 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2023-10-25 22:10:23 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|