2018-08-08 13:15:13 +02:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2023-09-21 01:29:21 +08:00
|
|
|
REPO xiaozhuai/readline-win32
|
2024-10-26 17:21:25 +08:00
|
|
|
REF 0fa4001557c27157a51a9ca7f32a8c50bc97927a
|
|
|
|
SHA512 5e6bb2fb077445d4e1fad49f2260538b0cf7e49857cda81640b8afd034324ad9b927c9ea00c9288d08c887478523db891bfc799e49ae009d32479141766857ec
|
2018-08-08 13:15:13 +02: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 13:15:13 +02:00
|
|
|
)
|
|
|
|
|
2022-07-09 03:35:19 +08:00
|
|
|
vcpkg_cmake_install()
|
2018-08-08 13:15:13 +02: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 13:15:13 +02:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2023-09-21 01:29:21 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|