Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EIPScanner] add new port #43569

Merged
merged 14 commits into from
Feb 11, 2025
25 changes: 25 additions & 0 deletions ports/eipscanner/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
message(FATAL_ERROR "This port version is not supported on Windows.")
endif()

EfesX marked this conversation as resolved.
Show resolved Hide resolved
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO nimbuscontrols/EIPScanner
REF ${VERSION}
SHA512 24612e6eec97aa67dfd83ec90d3f1a961c69a63a17cb09679b9eb453750049628def8d488b9debbf1f322a800f9f54933dedca9b37fb1c5703e95460b89f2f43
HEAD_REF master
)

vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
EfesX marked this conversation as resolved.
Show resolved Hide resolved
)


vcpkg_cmake_install()
vcpkg_copy_pdbs()

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")

vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")

file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
4 changes: 4 additions & 0 deletions ports/eipscanner/usage
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
eipscanner provides CMake targets:

target_link_directories(main PRIVATE ${VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/lib)
target_link_libraries(main PRIVATE EIPScanner)
EfesX marked this conversation as resolved.
Show resolved Hide resolved
18 changes: 18 additions & 0 deletions ports/eipscanner/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "eipscanner",
"version": "1.3.0",
"description": "Free implementation of EtherNet/IP in C++ ",
"homepage": "https://eipscanner.readthedocs.io",
"license": "MIT",
"supports": "!windows",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -2540,6 +2540,10 @@
"baseline": "3.4.0",
"port-version": 5
},
"eipscanner": {
"baseline": "1.3.0",
"port-version": 0
},
"elements": {
"baseline": "2024-09-12",
"port-version": 0
Expand Down
9 changes: 9 additions & 0 deletions versions/e-/eipscanner.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "3164d8f929a998cf811458bbd6448fa0c08fbf20",
"version": "1.3.0",
"port-version": 0
}
]
}