diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/librtpi | |
Diffstat (limited to 'vcpkg/ports/librtpi')
| -rw-r--r-- | vcpkg/ports/librtpi/portfile.cmake | 18 | ||||
| -rw-r--r-- | vcpkg/ports/librtpi/unofficial-librtpi-config.cmake | 25 | ||||
| -rw-r--r-- | vcpkg/ports/librtpi/vcpkg.json | 8 |
3 files changed, 51 insertions, 0 deletions
diff --git a/vcpkg/ports/librtpi/portfile.cmake b/vcpkg/ports/librtpi/portfile.cmake new file mode 100644 index 0000000..f2baa23 --- /dev/null +++ b/vcpkg/ports/librtpi/portfile.cmake @@ -0,0 +1,18 @@ +vcpkg_from_gitlab( + OUT_SOURCE_PATH SOURCE_PATH + GITLAB_URL https://gitlab.com + REPO linux-rt/librtpi + REF "${VERSION}" + SHA512 2665c32867f498d37daaec68a66f5d226de8c2f29bd57f784fbf33245aa5fc3dc173bb80d948b1b5c2c03798dce3fbd9638a3c0ec3816430ecfc7436cea9566e + HEAD_REF main +) + +vcpkg_configure_make( + SOURCE_PATH "${SOURCE_PATH}" + AUTOCONFIG +) + +vcpkg_install_make() +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") + +file(INSTALL "${CURRENT_PORT_DIR}/unofficial-${PORT}-config.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/unofficial-${PORT}") diff --git a/vcpkg/ports/librtpi/unofficial-librtpi-config.cmake b/vcpkg/ports/librtpi/unofficial-librtpi-config.cmake new file mode 100644 index 0000000..49f4832 --- /dev/null +++ b/vcpkg/ports/librtpi/unofficial-librtpi-config.cmake @@ -0,0 +1,25 @@ +if(NOT TARGET unofficial::librtpi::librtpi) + get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH) + get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH) + get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH) + + add_library(unofficial::librtpi::librtpi UNKNOWN IMPORTED) + + set_target_properties(unofficial::librtpi::librtpi PROPERTIES + INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include" + ) + + find_library(LIBRTPI_LIBRARY_DEBUG NAMES rtpi librtpi PATHS "${_IMPORT_PREFIX}/debug" PATH_SUFFIXES lib NO_DEFAULT_PATH) + if(EXISTS "${LIBRTPI_LIBRARY_DEBUG}") + set_property(TARGET unofficial::librtpi::librtpi APPEND PROPERTY IMPORTED_CONFIGURATIONS "Debug") + set_target_properties(unofficial::librtpi::librtpi PROPERTIES IMPORTED_LOCATION_DEBUG "${LIBRTPI_LIBRARY_DEBUG}") + endif() + + find_library(LIBRTPI_LIBRARY_RELEASE NAMES rtpi librtpi PATHS "${_IMPORT_PREFIX}/" PATH_SUFFIXES lib NO_DEFAULT_PATH) + if(EXISTS "${LIBRTPI_LIBRARY_RELEASE}") + set_property(TARGET unofficial::librtpi::librtpi APPEND PROPERTY IMPORTED_CONFIGURATIONS "Release") + set_target_properties(unofficial::librtpi::librtpi PROPERTIES IMPORTED_LOCATION_RELEASE "${LIBRTPI_LIBRARY_RELEASE}") + endif() + + unset(_IMPORT_PREFIX) +endif() diff --git a/vcpkg/ports/librtpi/vcpkg.json b/vcpkg/ports/librtpi/vcpkg.json new file mode 100644 index 0000000..7ace65a --- /dev/null +++ b/vcpkg/ports/librtpi/vcpkg.json @@ -0,0 +1,8 @@ +{ + "name": "librtpi", + "version": "1.0.1", + "description": "The Real-Time Priority Inheritance Library (librtpi) is intended to bridge the gap between the glibc pthread implementation and a functionally correct priority inheritance for pthread locking primitives, such as pthread_mutex and pthread_condvar.", + "homepage": "https://gitlab.com/linux-rt/librtpi", + "license": "LGPL-2.1-only", + "supports": "linux" +} |