mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 19:09:00 +08:00
[libsmb2] Bump to 2023-08-11 (#34323)
This commit is contained in:
parent
c13b09744c
commit
ff323de5ad
@ -3,23 +3,26 @@ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO sahlberg/libsmb2
|
||||
REF d8c85a3119a0bd769590e448216130b368cd1099
|
||||
SHA512 d15a040ed6314ad6f7984cfa7b52d9ede9934b2a7ec9827e833f574c25c9f694b5372b3e0950e258a6244b7aaf32b9e59987a75a88681d8031d9837ba94629d5
|
||||
REF 99125c96750e192e2c50176548bf461e4a28f135
|
||||
SHA512 30cdc9bbcdcd384868e5865706b41f683b977ece4056040a29bb3b81ffdf83788ba8a39426132810b8cbbb778ae7db8e5e1be0b7c0a82d8beed75040de708240
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
# TODO: Add a feature to enable gssapi/krb5 support
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_GSSAPI=ON
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
vcpkg_copy_pdbs()
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
||||
vcpkg_cmake_config_fixup(PACKAGE_NAME smb2 CONFIG_PATH "lib/cmake/${PORT}")
|
||||
vcpkg_fixup_pkgconfig()
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
|
||||
#the debug/share folder is generated empty by the provided cmake system
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
||||
|
||||
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/smb2")
|
||||
|
||||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|
||||
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
||||
|
5
ports/libsmb2/usage
Normal file
5
ports/libsmb2/usage
Normal file
@ -0,0 +1,5 @@
|
||||
libsmb2 can be used from CMake via:
|
||||
|
||||
find_package(SMB2 REQUIRED)
|
||||
target_include_directories(main PRIVATE ${SMB2_INCLUDE_DIRS})
|
||||
target_link_libraries(main PRIVATE ${SMB2_LIBRARIES})
|
6
ports/libsmb2/vcpkg-cmake-wrapper.cmake
Normal file
6
ports/libsmb2/vcpkg-cmake-wrapper.cmake
Normal file
@ -0,0 +1,6 @@
|
||||
set(SMB2_PREV_MODULE_PATH ${CMAKE_MODULE_PATH})
|
||||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}")
|
||||
|
||||
_find_package(${ARGS})
|
||||
|
||||
set(CMAKE_MODULE_PATH ${SMB2_PREV_MODULE_PATH})
|
@ -1,12 +1,10 @@
|
||||
{
|
||||
"name": "libsmb2",
|
||||
"version-date": "2021-04-29",
|
||||
"port-version": 2,
|
||||
"version-date": "2023-08-11",
|
||||
"description": "SMB2/3 Userspace Client",
|
||||
"homepage": "https://github.com/sahlberg/libsmb2",
|
||||
"supports": "!osx",
|
||||
"license": "LGPL-2.1-or-later",
|
||||
"dependencies": [
|
||||
"openssl",
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
|
@ -4673,8 +4673,8 @@
|
||||
"port-version": 0
|
||||
},
|
||||
"libsmb2": {
|
||||
"baseline": "2021-04-29",
|
||||
"port-version": 2
|
||||
"baseline": "2023-08-11",
|
||||
"port-version": 0
|
||||
},
|
||||
"libsndfile": {
|
||||
"baseline": "1.2.0",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "e925ba41cc6441c6f2491462a26bea64d0cdeb16",
|
||||
"version-date": "2023-08-11",
|
||||
"port-version": 0
|
||||
},
|
||||
{
|
||||
"git-tree": "a70cca2c9bcfe6b7848efbf21a9b2779b4e47055",
|
||||
"version-date": "2021-04-29",
|
||||
|
Loading…
Reference in New Issue
Block a user