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
|
2023-10-17 03:28:31 +08:00
|
|
|
REF 2b94fbb51f5da90b7bbd9b236da80be6f798e014
|
|
|
|
SHA512 1285625ca6c608b98d13a783dd34461782bd88026bc09e6c9e70fd343e28561d1d7e5392b8068e52e93308029544276bdbc8ca12703c8976836561777a03dc17
|
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")
|