2020-01-18 08:51:00 +08:00
|
|
|
vcpkg_fail_port_install(ON_TARGET "Linux" "OSX" "UWP")
|
2017-12-03 17:31:57 +08:00
|
|
|
|
2018-10-24 10:59:24 +08:00
|
|
|
vcpkg_download_distfile(ARCHIVE
|
2020-01-18 08:51:00 +08:00
|
|
|
URLS "http://www.scintilla.org/scintilla423.zip"
|
|
|
|
FILENAME "scintilla423.zip"
|
|
|
|
SHA512 82a595782119ce5bb48c39f4cb9b29605c4cdc276f605ebd3e3b3ecae003ef2132102e21be8943c8b36ec40957e2e50f4ebc0086a5096901fa0e8e5e178db750
|
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()
|
|
|
|
|
2018-10-24 10:59:24 +08:00
|
|
|
vcpkg_extract_source_archive_ex(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
ARCHIVE ${ARCHIVE}
|
2020-01-18 08:51:00 +08:00
|
|
|
REF 4.2.3
|
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(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PROJECT_SUBPATH Win32/SciLexer.vcxproj
|
|
|
|
INCLUDES_SUBPATH include
|
|
|
|
LICENSE_SUBPATH License.txt
|
|
|
|
ALLOW_ROOT_INCLUDES
|
|
|
|
)
|