[libsersi] Add new library (#39349)

This commit is contained in:
Cameron 2024-07-18 11:40:00 -05:00 committed by GitHub
parent d8e76e3b01
commit ee4728e45a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 56 additions and 0 deletions

View File

@ -0,0 +1,22 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO crhowell3/libsersi
REF "v${VERSION}"
SHA512 f8cd84e12a14d6c9dc424c176b3e0536293cfa96f4cb03f7e4c9008ce6272b70284179f16dca5f5fb82c4cad9003a16ed2639bcd52f18f39b9587cd63075e188
HEAD_REF main
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DINSTALL_INCLUDE_DIR=include
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/libsersi)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")

4
ports/libsersi/usage Normal file
View File

@ -0,0 +1,4 @@
libsersi provides CMake targets:
find_package(libsersi CONFIG REQUIRED)
target_link_libraries(main PRIVATE libsersi::sersi)

17
ports/libsersi/vcpkg.json Normal file
View File

@ -0,0 +1,17 @@
{
"name": "libsersi",
"version": "0.1.0",
"description": "C++ implementation of the IEEE 1278.1a-1998 Distributed Interactive Simulation (DIS) application protocol.",
"homepage": "https://github.com/crhowell3/libsersi",
"license": "BSD-2-Clause",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@ -4972,6 +4972,10 @@
"baseline": "1.3.2",
"port-version": 1
},
"libsersi": {
"baseline": "0.1.0",
"port-version": 0
},
"libsigcpp": {
"baseline": "3.6.0",
"port-version": 1

View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "bfdfe9c36a1ab63c2f390eec51c01e665ebd23dd",
"version": "0.1.0",
"port-version": 0
}
]
}