mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 21:29:02 +08:00
e86ed50718
* [vcpkg_configure_make] Report warning when unresolved arguments are passed in * Add missing option NO_DEBUG * Add _VCPKG_MAKE_NO_DEBUG for vcpkg_configure_make * Add more condition * [apr] Remove NO_DEBUG * [liburing] Remove NO_DEBUG * [apr-util] Remove NO_DEBUG * version * Mssing port-version ++ * version
33 lines
1.2 KiB
CMake
33 lines
1.2 KiB
CMake
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
|
|
)
|
|
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)
|