mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-06-07 01:43:28 +08:00
[staticjson] add new port. (#28578)
This commit is contained in:
parent
43fd425d12
commit
8d9c52191e
18
ports/staticjson/portfile.cmake
Normal file
18
ports/staticjson/portfile.cmake
Normal file
@ -0,0 +1,18 @@
|
||||
vcpkg_minimum_required(VERSION 2022-10-12)
|
||||
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO netheril96/StaticJSON
|
||||
REF "v${VERSION}"
|
||||
SHA512 7d346b69c736aac11eec4fce6650c394dd388f551a359e77f26d80d1b7aa67670be993abe16f2d834263a87a1c116502a96ab6253cb18cab3aaa7d88a6d4d809
|
||||
HEAD_REF master
|
||||
)
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DSTATICJSON_ENABLE_TEST=OFF
|
||||
)
|
||||
vcpkg_cmake_install()
|
||||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
19
ports/staticjson/vcpkg.json
Normal file
19
ports/staticjson/vcpkg.json
Normal file
@ -0,0 +1,19 @@
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json",
|
||||
"name": "staticjson",
|
||||
"version": "1.0.0",
|
||||
"description": "Fast, direct and static typed parsing of JSON with C++",
|
||||
"homepage": "https://github.com/netheril96/StaticJSON",
|
||||
"license": "MIT",
|
||||
"dependencies": [
|
||||
"rapidjson",
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
@ -7280,6 +7280,10 @@
|
||||
"baseline": "9.2.7",
|
||||
"port-version": 1
|
||||
},
|
||||
"staticjson": {
|
||||
"baseline": "1.0.0",
|
||||
"port-version": 0
|
||||
},
|
||||
"status-code": {
|
||||
"baseline": "2022-09-08",
|
||||
"port-version": 0
|
||||
|
9
versions/s-/staticjson.json
Normal file
9
versions/s-/staticjson.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "3d2740736f7d0b3014ef9a5c9b2c77bcf570923c",
|
||||
"version": "1.0.0",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user