2020-10-20 10:53:20 +08:00
|
|
|
vcpkg_from_github(
|
2019-10-08 01:35:13 +08:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2020-10-20 10:53:20 +08:00
|
|
|
REPO libsndfile/libsamplerate
|
|
|
|
REF f6730d03c3e7660bb6ecad8816f1b09c5825142a # v0.1.9
|
|
|
|
SHA512 6a349c9144d024212fc78dc0d9e39bdc1a43abaf590fcfbf84396af22834545962d5ef10176b48b21fcae2ce62d12277b682059383805d059f4dd2b9f6708478
|
|
|
|
HEAD_REF master
|
2019-10-08 01:35:13 +08:00
|
|
|
)
|
2018-01-04 15:04:54 +08:00
|
|
|
|
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH}/src)
|
|
|
|
file(COPY ${SOURCE_PATH}/Win32/config.h DESTINATION ${SOURCE_PATH}/src)
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}/src
|
2019-08-01 04:01:02 +08:00
|
|
|
PREFER_NINJA
|
2018-01-04 15:04:54 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
|
|
|
|
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/libsamplerate RENAME copyright)
|
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|