2018-10-24 10:59:24 +08:00
|
|
|
vcpkg_download_distfile(ARCHIVE
|
2024-05-30 14:36:58 +08:00
|
|
|
URLS "https://www.scintilla.org/scintilla550.zip"
|
|
|
|
FILENAME "scintilla550.zip"
|
|
|
|
SHA512 6e6dac00a6be902e64abdb6687887ef3c956cbeaf0ea5e05ce99af6876b5b57898c3633b38b9f975e6b06d3d4e17c6e6b6d4c51b0982b5e3375422af046830d1
|
2018-10-24 10:59:24 +08:00
|
|
|
)
|
2020-09-23 07:28:25 +08:00
|
|
|
|
|
|
|
if (VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
|
|
list(APPEND PATCHES 0001-static-lib.patch)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(VCPKG_CRT_LINKAGE STREQUAL "static")
|
|
|
|
list(APPEND PATCHES 0002-static-crt.patch)
|
|
|
|
endif()
|
|
|
|
|
2023-04-14 00:13:15 +08:00
|
|
|
vcpkg_extract_source_archive(
|
|
|
|
SOURCE_PATH
|
2018-10-24 10:59:24 +08:00
|
|
|
ARCHIVE ${ARCHIVE}
|
2024-05-30 14:36:58 +08:00
|
|
|
SOURCE_BASE 5.5.0
|
2020-09-23 07:28:25 +08:00
|
|
|
PATCHES ${PATCHES}
|
2017-12-03 17:31:57 +08:00
|
|
|
)
|
|
|
|
|
2018-10-24 10:59:24 +08:00
|
|
|
vcpkg_install_msbuild(
|
2023-08-16 07:46:12 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2024-05-30 14:36:58 +08:00
|
|
|
PROJECT_SUBPATH Win32/Scintilla.vcxproj
|
2018-10-24 10:59:24 +08:00
|
|
|
)
|
2021-03-11 03:57:51 +08:00
|
|
|
|
2023-08-16 07:46:12 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/License.txt")
|
|
|
|
file(INSTALL "${SOURCE_PATH}/include/" DESTINATION "${CURRENT_PACKAGES_DIR}/include/${PORT}" FILES_MATCHING PATTERN "*.*")
|