Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[llhttp] add new port #28042

Merged
merged 8 commits into from
Nov 30, 2022
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions ports/llhttp/portfile.cmake
Original file line number Diff line number Diff line change
@@ -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)


Adela0814 marked this conversation as resolved.
Show resolved Hide resolved
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
zynfly marked this conversation as resolved.
Show resolved Hide resolved
-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}"
zynfly marked this conversation as resolved.
Show resolved Hide resolved
)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE-MIT")
17 changes: 17 additions & 0 deletions ports/llhttp/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "llhttp",
"version-string": "v8.1.0",
zynfly marked this conversation as resolved.
Show resolved Hide resolved
"description": "Port of http_parser to llparse.",
"homepage": "https://github.com/nodejs/llhttp",
zynfly marked this conversation as resolved.
Show resolved Hide resolved
"license": "MIT",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -4572,6 +4572,10 @@
"baseline": "2019-08-15",
"port-version": 2
},
"llhttp": {
"baseline": "v8.1.0",
"port-version": 0
},
"llvm": {
"baseline": "14.0.4",
"port-version": 0
Expand Down
9 changes: 9 additions & 0 deletions versions/l-/llhttp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "36b6d15f4ddc356f94251715a6e0b2312261debc",
"version-string": "v8.1.0",
"port-version": 0
}
]
}