2018-08-08 19:15:13 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2023-09-21 01:29:21 +08:00
|
|
|
REPO xiaozhuai/readline-win32
|
|
|
|
REF 8f141e9a77f81fae5b67f915621988aef116e9ae
|
|
|
|
SHA512 2eb88a2fa3780df1bb8fa5dfc0be197113d3789cd7b494c0c30509099a6c4818cf14d8301d312747107b2b4f8e52e5a2ed93d3fe5fbbd6b796f780e2f1e0f729
|
2018-08-08 19:15:13 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2022-07-09 03:35:19 +08:00
|
|
|
vcpkg_cmake_configure(
|
2023-09-21 01:29:21 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2018-08-08 19:15:13 +08:00
|
|
|
)
|
|
|
|
|
2022-07-09 03:35:19 +08:00
|
|
|
vcpkg_cmake_install()
|
2018-08-08 19:15:13 +08:00
|
|
|
|
2022-07-09 03:35:19 +08:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-readline-win32)
|
2023-08-26 03:06:08 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2022-07-09 03:35:19 +08:00
|
|
|
|
2023-09-21 01:29:21 +08:00
|
|
|
if (VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/readline/rlstdc.h"
|
|
|
|
"defined(USE_READLINE_STATIC)" "1"
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2022-07-09 03:35:19 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share" "${CURRENT_PACKAGES_DIR}/debug/include")
|
2018-08-08 19:15:13 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2023-09-21 01:29:21 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|