vcpkg/ports/opus/portfile.cmake

29 lines
767 B
CMake
Raw Normal View History

2017-01-26 08:27:09 +08:00
include(vcpkg_common_functions)
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
f9d3d432d135253357ba457ecd0e4f68f12a4584
SHA512
9d77d063e0215c4f4e46b044d2f51106b3a599aeab7b1b788efa1fc79d0d2bc7780adafef6ffe6d3276f24223490898aa695cbbe36df174da9ba2317b21cb369
HEAD_REF
master)
vcpkg_configure_cmake(SOURCE_PATH ${SOURCE_PATH} PREFER_NINJA)
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)