mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 01:07:55 +08:00
5b11232d00
* [libuvc,qt5-virtualkeyboard] remove duplicated dependency entry * [many-ports] don't use deprecated functions (autogenerated) * atkmm: Fix license. gperftools: Reformat vcpkg_check_features call. gsl: Fix license. libpff: Fix license. pangomm: Fix license. qtbase: Revert, only comment changes. type-lite: Reformat vcpkg_check_features and actually use the feature options. --------- Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
50 lines
1.5 KiB
CMake
50 lines
1.5 KiB
CMake
if(VCPKG_USE_HEAD_VERSION)
|
|
vcpkg_from_gitlab(
|
|
GITLAB_URL "https://gitlab.xiph.org"
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO xiph/speexdsp
|
|
HEAD_REF master
|
|
)
|
|
else()
|
|
# Since the github repo is out-dated, use official download URL for release builds to reduce traffic to the Gitlab host
|
|
vcpkg_download_distfile(ARCHIVE
|
|
URLS "http://downloads.xiph.org/releases/speex/speexdsp-1.2.1.tar.gz"
|
|
FILENAME "speexdsp-1.2.1.tar.gz"
|
|
SHA512 41b5f37b48db5cb8c5a0f6437a4a8266d2627a5b7c1088de8549fe0bf0bb3105b7df8024fe207eef194096e0726ea73e2b53e0a4293d8db8e133baa0f8a3bad3
|
|
)
|
|
vcpkg_extract_source_archive(
|
|
SOURCE_PATH
|
|
ARCHIVE "${ARCHIVE}"
|
|
SOURCE_BASE "1.2.1"
|
|
PATCHES
|
|
jitter_ctl.patch
|
|
)
|
|
endif()
|
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
|
|
|
set(USE_SSE OFF)
|
|
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x64" OR VCPKG_TARGET_ARCHITECTURE STREQUAL "x86")
|
|
set(USE_SSE ON)
|
|
endif()
|
|
set(USE_NEON OFF)
|
|
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "arm" OR VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64")
|
|
set(USE_NEON ON)
|
|
endif()
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DUSE_SSE=${USE_SSE}
|
|
-DUSE_NEON=${USE_NEON}
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_copy_pdbs()
|
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME "copyright")
|