mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 01:27:55 +08:00
5108b07fd1
- [X] Changes comply with the [maintainer guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md) - [X] SHA512s are updated for each updated download - [ ] ~The "supports" clause reflects platforms that may be fixed by this new version~ - [ ] ~Any fixed [CI baseline](https://github.com/microsoft/vcpkg/blob/master/scripts/ci.baseline.txt) entries are removed from that file.~ - [ ] ~Any patches that are no longer applied are deleted from the port's directory.~ - [X] The version database is fixed by rerunning `./vcpkg x-add-version --all` and committing the result. - [X] Only one version is added to each modified port's versions file.
32 lines
980 B
CMake
32 lines
980 B
CMake
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO nodejs/llhttp
|
|
REF refs/tags/release/v${VERSION}
|
|
SHA512 563a97301cc07ef8d64ee52572faaa705de0daf1bb428651ada0f22ea0bf7cc617c31883734d8786599c0eff223edfe637739169ee31da5b10f49db8c3ca6ed7
|
|
PATCHES
|
|
fix-usage.patch
|
|
)
|
|
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")
|
|
|
|
vcpkg_fixup_pkgconfig()
|