2020-05-12 05:44:26 +08:00
|
|
|
vcpkg_from_github(
|
2019-10-08 01:35:13 +08:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2020-05-12 05:44:26 +08:00
|
|
|
REPO xiph/speexdsp
|
|
|
|
REF 64cbfa9bca7479a758351aa02bb4abdd76baa9e7 #1.2.0
|
|
|
|
SHA512 b92488e1efd4d763cd2d438b88a1b708d2a9d8f804dc2b016bfb29c4f7366624d3cf86a23645067393274e100c1bd6467def0eb98575f04ffcaf49b20f1f1105
|
|
|
|
HEAD_REF master
|
2019-10-08 01:35:13 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
2017-08-26 20:22:53 +08:00
|
|
|
|
2018-03-06 04:19:27 +08:00
|
|
|
set(USE_SSE OFF)
|
|
|
|
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x64" OR VCPKG_TARGET_ARCHITECTURE STREQUAL "x86")
|
|
|
|
set(USE_SSE ON)
|
|
|
|
endif()
|
|
|
|
|
2017-08-26 20:22:53 +08:00
|
|
|
vcpkg_configure_cmake(
|
2019-10-08 01:35:13 +08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2019-08-01 04:01:02 +08:00
|
|
|
PREFER_NINJA
|
2019-10-08 01:35:13 +08:00
|
|
|
OPTIONS
|
|
|
|
-DUSE_SSE=${USE_SSE}
|
2017-08-26 20:22:53 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
2019-10-08 01:35:13 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2017-08-26 20:22:53 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
|
2019-10-08 01:35:13 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME "copyright")
|