Skip to content

Commit

Permalink
[libtins] Fix usage (microsoft#22820)
Browse files Browse the repository at this point in the history
* [libtins] Fix usage

* version
  • Loading branch information
JackBoosY authored Jan 31, 2022
1 parent 87854cb commit ec79067
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
6 changes: 6 additions & 0 deletions ports/libtins/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion ports/libtins/vcpkg.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -3998,7 +3998,7 @@
},
"libtins": {
"baseline": "4.3",
"port-version": 4
"port-version": 5
},
"libtomcrypt": {
"baseline": "1.18.2",
Expand Down
5 changes: 5 additions & 0 deletions versions/l-/libtins.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "9abc8b1a535ffaf99a680412cfd8f0c743c3fc6d",
"version": "4.3",
"port-version": 5
},
{
"git-tree": "de1a1dc51c90ca57412fe5f8d57eeef42a41ec74",
"version": "4.3",
Expand Down

0 comments on commit ec79067

Please sign in to comment.