]> git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/http-parser/portfile.cmake
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / tools / vcpkg / ports / http-parser / portfile.cmake
1 vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
2
3 vcpkg_from_github(
4 OUT_SOURCE_PATH SOURCE_PATH
5 REPO nodejs/http-parser
6 REF 2343fd6b5214b2ded2cdcf76de2bf60903bb90cd # v2.9.4
7 SHA512 9fb95794d2c278c933e9bff0284befd1a8c8cf8ddda8e9929669f3134246d7fe81b54293359164d947f9278e2dd28b87d29a8ad8f523ed659d62713d782c7e46
8 HEAD_REF master
9 )
10
11 file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
12
13 vcpkg_configure_cmake(
14 SOURCE_PATH ${SOURCE_PATH}
15 PREFER_NINJA
16 )
17
18 vcpkg_install_cmake()
19 vcpkg_copy_pdbs()
20
21 file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
22 vcpkg_fixup_cmake_targets(CONFIG_PATH share/unofficial-http-parser TARGET_PATH share/unofficial-http-parser)
23
24 # Handle copyright
25 file(COPY ${SOURCE_PATH}/LICENSE-MIT DESTINATION ${CURRENT_PACKAGES_DIR}/share/http-parser)
26 file(RENAME ${CURRENT_PACKAGES_DIR}/share/http-parser/LICENSE-MIT ${CURRENT_PACKAGES_DIR}/share/http-parser/copyright)