mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 04:02:15 +08:00
bbe9763f62
* [liburing] create a new port * [liburing] patch datadir * [liburing] add port usage * with CMake module: FindPkgConfig * Update ports/liburing/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * [liburing] comments for BUILD_SHARED * update git-tree SHA * [liburing] fix portfile * [liburing] configure with ENABLE_SHARED * update git-tree SHA * Update ports/liburing/usage * [liburing] fix mistype in usage * update git-tree SHA Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> Co-authored-by: nicole mazzuca <83086508+strega-nil-ms@users.noreply.github.com> Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
36 lines
1.3 KiB
CMake
36 lines
1.3 KiB
CMake
vcpkg_fail_port_install(ON_TARGET "windows" "uwp" "osx" "ios" "android")
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO axboe/liburing
|
|
REF liburing-2.0
|
|
SHA512 8a7b37600246d44a94d3fed1ca4bb60e76f9ddc60bd3c237e600b60e77961a1125c8a1f230cb7569f959acf10b68b91aafb4935c1c2fd13d5df7373b374e47f5
|
|
HEAD_REF master
|
|
PATCHES
|
|
fix-spec-version.patch # update version value for pkgconfig(.pc) files
|
|
fix-configure.patch # ignore unsupported options, handle ENABLE_SHARED
|
|
)
|
|
|
|
# note: check ${SOURCE_PATH}/liburing.spec before updating configure options
|
|
vcpkg_configure_make(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
COPY_SOURCE
|
|
NO_DEBUG
|
|
)
|
|
vcpkg_install_make()
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE
|
|
DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
|
file(INSTALL ${CURRENT_PORT_DIR}/usage
|
|
DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
|
|
|
|
# note: {SOURCE_PATH}/src/Makefile makes liburing.so from liburing.a.
|
|
# For dynamic, remove intermediate file liburing.a when install is finished.
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
|
file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/lib/liburing.a
|
|
${CURRENT_PACKAGES_DIR}/lib/liburing.a
|
|
)
|
|
endif()
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/man)
|