Skip to content

Commit

Permalink
[fins] add libfins (#32795)
Browse files Browse the repository at this point in the history
* add libfins

* fix version sha value

* add keyword `supports`

* fix version error

* fix version data

* add namespae for target

* modify version date

* modify platform. remove arm and add android

* modify version data.

* remove and delete patch "add_cmake_support"

* modify version data

* 1. modify lib version
2. do not need and remove "add_cmake_support.patch"

* modify fins port version infomation
  • Loading branch information
endingly committed Aug 4, 2023
1 parent 64d69a7 commit 2969ad3
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 0 deletions.
25 changes: 25 additions & 0 deletions ports/fins/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO lammertb/libfins
REF 5525ef513137507ec3ecab68c698a21b30497bc3
SHA512 6d5c039cefa55183460b14c226a77e24a93200a288486fca6fd5a3639d78e028a89a7eb25775c802cd78fdb371b0cae05236926612395896f56b23f61f5e5e87
HEAD_REF master
)

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
)

vcpkg_cmake_install()
vcpkg_copy_pdbs()
vcpkg_cmake_config_fixup()

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

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



20 changes: 20 additions & 0 deletions ports/fins/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json",
"name": "fins",
"version-date": "2023-07-31",
"maintainers": "Lammert Bies",
"description": "LibFINS is an MIT licensed library written in C implementing the FINS/TCP protocol used for communication between Omron PLCs. The library contains all the documented client FINS functions. This open source library is a spin-off of a larger project which also implements FINS/UDP client communication and a FINS server engine.",
"homepage": "https://www.libfins.org",
"documentation": "https://www.libfins.org/api-reference/",
"license": "MIT",
"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 @@ -2532,6 +2532,10 @@
"baseline": "1.3.4",
"port-version": 0
},
"fins": {
"baseline": "2023-07-31",
"port-version": 0
},
"fixed-string": {
"baseline": "0.1.1",
"port-version": 0
Expand Down
9 changes: 9 additions & 0 deletions versions/f-/fins.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "116698010e51dae8ec84b81e8224e5f84a1a4d97",
"version-date": "2023-07-31",
"port-version": 0
}
]
}

0 comments on commit 2969ad3

Please sign in to comment.