[llhttp] add new port (#28042)

* add new ports llhttp

* update llhttp baseline

* Update ports/llhttp/vcpkg.json

Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>

* Update ports/llhttp/portfile.cmake

Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>

* update llhttp version

* Update ports/llhttp/vcpkg.json

Co-authored-by: Mengna Li <95600143+Adela0814@users.noreply.github.com>

* remove extra blank line

* update llhttp version

Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
Co-authored-by: Mengna Li <95600143+Adela0814@users.noreply.github.com>
This commit is contained in:
逐雁南飛 2022-12-01 03:03:11 +08:00 committed by GitHub
parent 5b0a83d386
commit c353ab2812
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 55 additions and 0 deletions

View File

@ -0,0 +1,25 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO nodejs/llhttp
REF refs/tags/release/v8.1.0
SHA512 3b79555f734a6a200a790f04f10be6d3ce5bd999c027a43c0900bb408e7d64be38fe4bbe9f15e57e389f07ba26b8089fc6ba5eef3b497742484f0719e92e9722
)
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" LLHTTP_BUILD_STATIC)
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" LLHTTP_BUILD_SHARED)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
DISABLE_PARALLEL_CONFIGURE
OPTIONS
-DBUILD_SHARED_LIBS=${LLHTTP_BUILD_SHARED}
-DBUILD_STATIC_LIBS=${LLHTTP_BUILD_STATIC}
)
vcpkg_cmake_install()
vcpkg_copy_pdbs()
vcpkg_cmake_config_fixup(
CONFIG_PATH "/lib/cmake/${PORT}"
)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE-MIT")

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

@ -0,0 +1,17 @@
{
"name": "llhttp",
"version": "8.1.0",
"description": "Port of http_parser to llparse.",
"homepage": "https://github.com/nodejs/llhttp",
"license": "MIT",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@ -4580,6 +4580,10 @@
"baseline": "2019-08-15", "baseline": "2019-08-15",
"port-version": 2 "port-version": 2
}, },
"llhttp": {
"baseline": "8.1.0",
"port-version": 0
},
"llvm": { "llvm": {
"baseline": "14.0.4", "baseline": "14.0.4",
"port-version": 0 "port-version": 0

9
versions/l-/llhttp.json Normal file
View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "39acd6919332902cf5fc9a9eb83e57f8eb548139",
"version": "8.1.0",
"port-version": 0
}
]
}