early-access version 2853
This commit is contained in:
27
externals/vcpkg/ports/http-parser/CMakeLists.txt
vendored
Executable file
27
externals/vcpkg/ports/http-parser/CMakeLists.txt
vendored
Executable file
@@ -0,0 +1,27 @@
|
||||
cmake_minimum_required(VERSION 3.4)
|
||||
project(http-parser C)
|
||||
|
||||
if(CMAKE_BUILD_TYPE MATCHES "Release")
|
||||
add_definitions(-DHTTP_PARSER_STRICT=0)
|
||||
endif()
|
||||
|
||||
add_library(http_parser http_parser.c http_parser.h)
|
||||
|
||||
target_include_directories(http_parser PUBLIC $<INSTALL_INTERFACE:include>)
|
||||
|
||||
install(
|
||||
TARGETS http_parser
|
||||
EXPORT NODEJS_HTTP_PARSER_ALL_TARGETS
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib
|
||||
RUNTIME DESTINATION bin
|
||||
)
|
||||
|
||||
install(
|
||||
EXPORT NODEJS_HTTP_PARSER_ALL_TARGETS
|
||||
NAMESPACE unofficial::http_parser::
|
||||
FILE unofficial-http-parser-config.cmake
|
||||
DESTINATION share/unofficial-http-parser
|
||||
)
|
||||
|
||||
install(FILES http_parser.h DESTINATION include)
|
26
externals/vcpkg/ports/http-parser/portfile.cmake
vendored
Executable file
26
externals/vcpkg/ports/http-parser/portfile.cmake
vendored
Executable file
@@ -0,0 +1,26 @@
|
||||
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO nodejs/http-parser
|
||||
REF 2343fd6b5214b2ded2cdcf76de2bf60903bb90cd # v2.9.4
|
||||
SHA512 9fb95794d2c278c933e9bff0284befd1a8c8cf8ddda8e9929669f3134246d7fe81b54293359164d947f9278e2dd28b87d29a8ad8f523ed659d62713d782c7e46
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH share/unofficial-http-parser TARGET_PATH share/unofficial-http-parser)
|
||||
|
||||
# Handle copyright
|
||||
file(COPY ${SOURCE_PATH}/LICENSE-MIT DESTINATION ${CURRENT_PACKAGES_DIR}/share/http-parser)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/http-parser/LICENSE-MIT ${CURRENT_PACKAGES_DIR}/share/http-parser/copyright)
|
7
externals/vcpkg/ports/http-parser/vcpkg.json
vendored
Executable file
7
externals/vcpkg/ports/http-parser/vcpkg.json
vendored
Executable file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "http-parser",
|
||||
"version-string": "2.9.4",
|
||||
"port-version": 1,
|
||||
"description": "HTTP Parser.",
|
||||
"homepage": "https://github.com/nodejs/http-parser"
|
||||
}
|
Reference in New Issue
Block a user