2017-06-20 02:08:48 +02:00
|
|
|
vcpkg_download_distfile(ARCHIVE
|
2021-03-01 21:09:04 +01:00
|
|
|
URLS "https://www.riverbankcomputing.com/static/Downloads/QScintilla/2.12.0/QScintilla_src-2.12.0.tar.gz"
|
|
|
|
FILENAME "QScintilla-2.12.0.tar.gz"
|
|
|
|
SHA512 9bdaba5c33c1b11ccad83eb1fda72142758afc50c955a62d5a8ff102b41d4b67d897bf96ce0540e16bc5a7fae2ce1acbf06931d5f0ae6768759c9ff072c03daa
|
2017-06-20 02:08:48 +02:00
|
|
|
)
|
2019-10-07 19:35:13 +02:00
|
|
|
|
|
|
|
vcpkg_extract_source_archive_ex(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
ARCHIVE ${ARCHIVE}
|
2020-04-18 06:11:12 +08:00
|
|
|
PATCHES
|
|
|
|
fix-static.patch
|
2019-10-07 19:35:13 +02:00
|
|
|
)
|
2017-06-20 02:08:48 +02:00
|
|
|
|
|
|
|
vcpkg_find_acquire_program(PYTHON3)
|
|
|
|
|
|
|
|
# Add python3 to path
|
2020-04-18 06:11:12 +08:00
|
|
|
get_filename_component(PYTHON3_PATH ${PYTHON3} DIRECTORY)
|
|
|
|
vcpkg_add_to_path(${PYTHON3_PATH})
|
2018-01-18 04:22:18 -08:00
|
|
|
|
2018-01-18 07:36:07 -08:00
|
|
|
vcpkg_configure_qmake(
|
2021-03-01 21:09:04 +01:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}/src
|
2018-01-18 07:36:07 -08:00
|
|
|
OPTIONS
|
|
|
|
CONFIG+=build_all
|
|
|
|
CONFIG-=hide_symbols
|
2018-10-25 15:01:44 -04:00
|
|
|
DEFINES+=SCI_NAMESPACE
|
2018-01-18 04:22:18 -08:00
|
|
|
)
|
|
|
|
|
2019-09-05 07:18:18 +08:00
|
|
|
if(VCPKG_TARGET_IS_WINDOWS)
|
2019-12-23 06:10:12 -08:00
|
|
|
vcpkg_install_qmake(
|
2019-03-27 04:46:40 +11:00
|
|
|
RELEASE_TARGETS release
|
|
|
|
DEBUG_TARGETS debug
|
|
|
|
)
|
|
|
|
else()
|
2019-12-23 06:10:12 -08:00
|
|
|
vcpkg_install_qmake()
|
2019-03-27 04:46:40 +11:00
|
|
|
endif()
|
2017-06-20 02:08:48 +02:00
|
|
|
|
2021-03-01 21:09:04 +01:00
|
|
|
file(GLOB HEADER_FILES ${SOURCE_PATH}/src/Qsci/*)
|
2018-10-25 15:01:44 -04:00
|
|
|
file(COPY ${HEADER_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/include/Qsci)
|
2017-06-20 02:08:48 +02:00
|
|
|
|
2021-05-19 06:40:50 +08:00
|
|
|
if (VCPKG_TARGET_IS_WINDOWS AND (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic))
|
|
|
|
vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/include/Qsci/qsciglobal.h
|
|
|
|
"#if defined(QSCINTILLA_DLL)"
|
|
|
|
"#if 1"
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2017-07-07 02:43:57 +02:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2017-06-20 02:08:48 +02:00
|
|
|
# Handle copyright
|
2020-04-18 06:11:12 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|