mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-18 12:53:02 +08:00
[hiredis] Add new port (#8843)
This commit is contained in:
parent
b6f6619408
commit
08e74979df
11
ports/hiredis/CONTROL
Normal file
11
ports/hiredis/CONTROL
Normal file
@ -0,0 +1,11 @@
|
||||
Source: hiredis
|
||||
Version: 2019-11-1
|
||||
Homepage: https://github.com/redis/hiredis
|
||||
Description: Hiredis is a minimalistic C client library for the Redis database.
|
||||
|
||||
Feature: ssl
|
||||
Description: Build hiredis_ssl for SSL support
|
||||
Build-Depends: openssl
|
||||
|
||||
Feature: example
|
||||
Description: Build example
|
29
ports/hiredis/portfile.cmake
Normal file
29
ports/hiredis/portfile.cmake
Normal file
@ -0,0 +1,29 @@
|
||||
vcpkg_fail_port_install(ON_TARGET "Windows")
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO redis/hiredis
|
||||
REF e777b0295eeeda89ee2ecef6ec5cb54889033d94
|
||||
SHA512 9486ce3e40580ca6a1da8a31c3e139eb8b5e17ac1b94bd0987f2435aeb2465ad271784d5e8e83dc6cbaf362f95c9e175efa5fbe80a63c56070ceb212d3d68470
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||||
ssl ENABLE_SSL
|
||||
example ENABLE_EXAMPLES
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJIA
|
||||
OPTIONS ${FEATURE_OPTIONS}
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
|
||||
# Handle copyright
|
||||
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
Loading…
Reference in New Issue
Block a user