mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-05-11 23:38:37 +00:00
[irsdkcpp] Add new port (#44447)
Co-authored-by: Lily Wang <94091114+LilyWangLL@users.noreply.github.com>
This commit is contained in:
parent
18314d9d87
commit
ea2a964f93
5 changed files with 104 additions and 0 deletions
35
ports/irsdkcpp/portfile.cmake
Normal file
35
ports/irsdkcpp/portfile.cmake
Normal file
|
@ -0,0 +1,35 @@
|
|||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO vrkit-platform/irsdk-cpp
|
||||
REF "v${VERSION}"
|
||||
SHA512 c702479259d77b3eeec85f5fbe177b040c598f2c0b3812139f4c95a1d3c292eff96cc84baa2c620bbfb2c507c61b4425f2cbeb4cb143235b8b25098ab816796a
|
||||
HEAD_REF develop
|
||||
)
|
||||
|
||||
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" IRSDKCPP_BUILD_SHARED)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DCMAKE_CXX_STANDARD=23
|
||||
-DIRSDKCPP_BUILD_TESTS=OFF
|
||||
-DIRSDKCPP_BUILD_DOCS=OFF
|
||||
-DIRSDKCPP_BUILD_EXAMPLES=OFF
|
||||
-DIRSDKCPP_BUILD_SHARED=${IRSDKCPP_BUILD_SHARED}
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
||||
vcpkg_fixup_pkgconfig()
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
if (EXISTS "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
endif()
|
||||
|
||||
if (EXISTS "${CURRENT_PACKAGES_DIR}/include/include")
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/include")
|
||||
endif()
|
||||
|
||||
configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" COPYONLY)
|
||||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md")
|
7
ports/irsdkcpp/usage
Normal file
7
ports/irsdkcpp/usage
Normal file
|
@ -0,0 +1,7 @@
|
|||
irsdkcpp provides CMake targets:
|
||||
|
||||
find_package(irsdkcpp CONFIG REQUIRED)
|
||||
target_link_libraries(main PRIVATE $<IF:$<TARGET_EXISTS:irsdkcpp::irsdkcpp_shared>,irsdkcpp::irsdkcpp_shared,irsdkcpp::irsdkcpp_static>)
|
||||
|
||||
irsdkcpp provides pkg-config modules:
|
||||
irsdkcpp
|
49
ports/irsdkcpp/vcpkg.json
Normal file
49
ports/irsdkcpp/vcpkg.json
Normal file
|
@ -0,0 +1,49 @@
|
|||
{
|
||||
"name": "irsdkcpp",
|
||||
"version": "1.0.9",
|
||||
"description": "iRacing Modern C++ SDK",
|
||||
"license": "MIT",
|
||||
"supports": "windows & !uwp & x64",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "cppwinrt",
|
||||
"version>=": "2.0.240111.5"
|
||||
},
|
||||
{
|
||||
"name": "fmt",
|
||||
"version>=": "10.1.1"
|
||||
},
|
||||
{
|
||||
"name": "magic-enum",
|
||||
"version>=": "0.9.7"
|
||||
},
|
||||
{
|
||||
"name": "ms-gsl",
|
||||
"version>=": "4.0.0#1"
|
||||
},
|
||||
{
|
||||
"name": "nlohmann-json",
|
||||
"version>=": "3.11.3"
|
||||
},
|
||||
{
|
||||
"name": "range-v3",
|
||||
"version>=": "0.12.0#1"
|
||||
},
|
||||
{
|
||||
"name": "spdlog",
|
||||
"version>=": "1.13.0#1"
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "yaml-cpp",
|
||||
"version>=": "0.8.0#1"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -3824,6 +3824,10 @@
|
|||
"baseline": "0",
|
||||
"port-version": 1
|
||||
},
|
||||
"irsdkcpp": {
|
||||
"baseline": "1.0.9",
|
||||
"port-version": 0
|
||||
},
|
||||
"isal": {
|
||||
"baseline": "2.30.0",
|
||||
"port-version": 0
|
||||
|
|
9
versions/i-/irsdkcpp.json
Normal file
9
versions/i-/irsdkcpp.json
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "62f0ba705f813060c5927a8bf8f2fcd59148dc66",
|
||||
"version": "1.0.9",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue