mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 11:39:01 +08:00
[libtins] no absolute paths (#21697)
This commit is contained in:
parent
e873f77971
commit
c5a60d4026
@ -13,26 +13,31 @@ if(NOT VCPKG_CMAKE_SYSTEM_NAME OR VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore
|
||||
set(ENABLE_PCAP TRUE)
|
||||
endif()
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DLIBTINS_BUILD_SHARED=${LIBTINS_BUILD_SHARED}
|
||||
-DLIBTINS_ENABLE_PCAP=${ENABLE_PCAP}
|
||||
-DLIBTINS_ENABLE_CXX11=1
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
vcpkg_cmake_install()
|
||||
|
||||
if (NOT VCPKG_CMAKE_SYSTEM_NAME OR VCPKG_CMAKE_SYSTEM_NAME STREQUAL "windows" OR VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore") #Windows
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH CMake)
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH CMake)
|
||||
else() #Linux/Unix/Darwin
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/libtins)
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/libtins)
|
||||
endif()
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/libtins/libtinsConfig.cmake" "set(LIBTINS_INCLUDE_DIRS \"${SOURCE_PATH}/include\")" [[
|
||||
get_filename_component(LIBTINS_CMAKE_DIR "${LIBTINS_CMAKE_DIR}" PATH)
|
||||
get_filename_component(LIBTINS_CMAKE_DIR "${LIBTINS_CMAKE_DIR}" PATH)
|
||||
set(LIBTINS_INCLUDE_DIRS "${LIBTINS_CMAKE_DIR}/include")
|
||||
]])
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
|
||||
# Handle copyright
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/libtins RENAME copyright)
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/libtins" RENAME copyright)
|
||||
|
||||
vcpkg_fixup_pkgconfig()
|
||||
|
@ -1,11 +1,19 @@
|
||||
{
|
||||
"name": "libtins",
|
||||
"version-string": "4.3",
|
||||
"port-version": 2,
|
||||
"port-version": 3,
|
||||
"description": "High-level, multiplatform C++ network packet sniffing and crafting library",
|
||||
"dependencies": [
|
||||
"boost-any",
|
||||
"boost-icl",
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "winpcap",
|
||||
"platform": "windows"
|
||||
|
@ -3958,7 +3958,7 @@
|
||||
},
|
||||
"libtins": {
|
||||
"baseline": "4.3",
|
||||
"port-version": 2
|
||||
"port-version": 3
|
||||
},
|
||||
"libtomcrypt": {
|
||||
"baseline": "1.18.2",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "909dcc117f47579bc754369cd0a7a9d5a66b23bc",
|
||||
"version-string": "4.3",
|
||||
"port-version": 3
|
||||
},
|
||||
{
|
||||
"git-tree": "b853d9ee6a83bba8f0d0b6e568b664b9729aadea",
|
||||
"version-string": "4.3",
|
||||
|
Loading…
Reference in New Issue
Block a user