2017-06-21 05:35:49 +08:00
|
|
|
vcpkg_from_github(
|
2019-04-10 00:56:02 +08:00
|
|
|
OUT_SOURCE_PATH
|
|
|
|
SOURCE_PATH
|
|
|
|
REPO
|
|
|
|
xiph/opus
|
|
|
|
REF
|
2020-05-12 06:57:17 +08:00
|
|
|
5c94ec3205c30171ffd01056f5b4622b7c0ab54c
|
2019-04-10 00:56:02 +08:00
|
|
|
SHA512
|
2020-05-12 06:57:17 +08:00
|
|
|
2423b1fc86d5b46c32d8e3bde5fc2b410a5c25c001995ce234a94a3a6c7a8b1446fdf19eafe9d6a8a7356fe0857697053db5eb8380d18f8111818aa770b4c4ea
|
2019-04-10 00:56:02 +08:00
|
|
|
HEAD_REF
|
|
|
|
master)
|
|
|
|
|
2020-04-04 01:17:41 +08:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
avx AVX_SUPPORTED
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
OPTIONS ${FEATURE_OPTIONS}
|
|
|
|
PREFER_NINJA)
|
2019-04-10 00:56:02 +08:00
|
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/Opus)
|
2017-06-21 05:35:49 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2019-04-10 00:56:02 +08:00
|
|
|
file(INSTALL
|
|
|
|
${SOURCE_PATH}/COPYING
|
|
|
|
DESTINATION
|
|
|
|
${CURRENT_PACKAGES_DIR}/share/opus
|
|
|
|
RENAME copyright)
|
2017-06-21 05:35:49 +08:00
|
|
|
|
2019-04-10 00:56:02 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/lib/cmake
|
|
|
|
${CURRENT_PACKAGES_DIR}/lib/cmake
|
|
|
|
${CURRENT_PACKAGES_DIR}/debug/include)
|