[libtins] Fix usage (#22820)

* [libtins] Fix usage

* version
This commit is contained in:
Jack·Boos·Yu 2022-02-01 03:58:13 +08:00 committed by GitHub
parent 87854cb16c
commit ec79067966
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 2 deletions

View File

@ -34,6 +34,12 @@ get_filename_component(LIBTINS_CMAKE_DIR "${LIBTINS_CMAKE_DIR}" PATH)
set(LIBTINS_INCLUDE_DIRS "${LIBTINS_CMAKE_DIR}/include")
]])
if (VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/tins/macros.h" "!defined(TINS_STATIC)" "1")
else()
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/tins/macros.h" "!defined(TINS_STATIC)" "0")
endif()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
# Handle copyright

View File

@ -1,8 +1,9 @@
{
"name": "libtins",
"version": "4.3",
"port-version": 4,
"port-version": 5,
"description": "High-level, multiplatform C++ network packet sniffing and crafting library",
"license": "BSD-2-Clause",
"supports": "!uwp",
"dependencies": [
"boost-any",

View File

@ -3998,7 +3998,7 @@
},
"libtins": {
"baseline": "4.3",
"port-version": 4
"port-version": 5
},
"libtomcrypt": {
"baseline": "1.18.2",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "9abc8b1a535ffaf99a680412cfd8f0c743c3fc6d",
"version": "4.3",
"port-version": 5
},
{
"git-tree": "de1a1dc51c90ca57412fe5f8d57eeef42a41ec74",
"version": "4.3",