mirror of
https://github.com/microsoft/vcpkg.git
synced 2026-01-18 01:11:23 +01:00
[spimpl] Add spimpl port (#45026)
Co-authored-by: flightless-coder <milica.bijelovic@gmail.com> Co-authored-by: Kai Pastor <dg0yt@darc.de>
This commit is contained in:
16
ports/spimpl/portfile.cmake
Normal file
16
ports/spimpl/portfile.cmake
Normal file
@@ -0,0 +1,16 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO oliora/samples
|
||||
REF 58dead450bdac418fc55dfc512b8411556f51c0e
|
||||
SHA512 a244364c3a58cb75709861cc8637dadeada0fbb4bc5fc52886a61d52623b3dab75ed5ccd73bed1a4384f66753fc3fd16e8cafde925fce760add084b4fffeca97
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
file(INSTALL "${SOURCE_PATH}/spimpl.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include/${PORT}")
|
||||
file(COPY "${CMAKE_CURRENT_LIST_DIR}/unofficial-spimpl-config.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/unofficial-${PORT}")
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
||||
|
||||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/spimpl.h")
|
||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" "[*]/.*" "*/" REGEX)
|
||||
|
||||
8
ports/spimpl/unofficial-spimpl-config.cmake
Normal file
8
ports/spimpl/unofficial-spimpl-config.cmake
Normal file
@@ -0,0 +1,8 @@
|
||||
if(NOT TARGET unofficial::spimpl::spimpl)
|
||||
add_library(unofficial::spimpl::spimpl INTERFACE IMPORTED)
|
||||
set_target_properties(
|
||||
unofficial::spimpl::spimpl
|
||||
PROPERTIES
|
||||
INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_CURRENT_LIST_DIR}/../../include"
|
||||
)
|
||||
endif()
|
||||
17
ports/spimpl/vcpkg.json
Normal file
17
ports/spimpl/vcpkg.json
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"name": "spimpl",
|
||||
"version-date": "2025-01-23",
|
||||
"description": "A single-header C++ library for PIMPLs without having to implement any special member functions.",
|
||||
"homepage": "https://github.com/oliora/samples",
|
||||
"license": "BSL-1.0",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -8908,6 +8908,10 @@
|
||||
"baseline": "2.5.0",
|
||||
"port-version": 0
|
||||
},
|
||||
"spimpl": {
|
||||
"baseline": "2025-01-23",
|
||||
"port-version": 0
|
||||
},
|
||||
"spine-runtimes": {
|
||||
"baseline": "4.1.0",
|
||||
"port-version": 0
|
||||
|
||||
9
versions/s-/spimpl.json
Normal file
9
versions/s-/spimpl.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "7289ca47c23ec9ff71ba553afb89c1becec90adc",
|
||||
"version-date": "2025-01-23",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user