2017-06-20 08:08:48 +08:00
|
|
|
include(vcpkg_common_functions)
|
2019-10-08 01:35:13 +08:00
|
|
|
|
2017-06-20 08:08:48 +08:00
|
|
|
vcpkg_download_distfile(ARCHIVE
|
|
|
|
URLS "https://sourceforge.net/projects/pyqt/files/QScintilla2/QScintilla-2.10/QScintilla_gpl-2.10.zip"
|
|
|
|
FILENAME "QScintilla_gpl-2.10.zip"
|
|
|
|
SHA512 7c580cfee03af1056f530af756a0ff9cc2396a5419fa23aecc66a6bc8809a4fb154788956220bb0b068a5c214d571c053271c3906d6d541196fbbf7c6dbec917
|
|
|
|
)
|
2019-10-08 01:35:13 +08:00
|
|
|
|
|
|
|
vcpkg_extract_source_archive_ex(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
ARCHIVE ${ARCHIVE}
|
|
|
|
)
|
2017-06-20 08:08:48 +08:00
|
|
|
|
|
|
|
vcpkg_find_acquire_program(PYTHON3)
|
|
|
|
|
|
|
|
# Add python3 to path
|
2017-06-30 15:44:34 +08:00
|
|
|
get_filename_component(PYTHON_PATH ${PYTHON3} DIRECTORY)
|
2018-10-26 03:01:44 +08:00
|
|
|
vcpkg_add_to_path(PREPEND ${PYTHON_PATH})
|
|
|
|
vcpkg_add_to_path(${CURRENT_INSTALLED_DIR}/bin)
|
|
|
|
vcpkg_add_to_path(${CURRENT_INSTALLED_DIR}/debug/bin)
|
2018-01-18 20:22:18 +08:00
|
|
|
|
2018-01-18 23:36:07 +08:00
|
|
|
vcpkg_configure_qmake(
|
2018-01-18 20:22:18 +08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}/Qt4Qt5
|
2018-01-18 23:36:07 +08:00
|
|
|
OPTIONS
|
|
|
|
CONFIG+=build_all
|
|
|
|
CONFIG-=hide_symbols
|
2018-10-26 03:01:44 +08:00
|
|
|
DEFINES+=SCI_NAMESPACE
|
2018-01-18 20:22:18 +08:00
|
|
|
)
|
|
|
|
|
2019-09-05 07:18:18 +08:00
|
|
|
if(VCPKG_TARGET_IS_WINDOWS)
|
2019-12-23 22:10:12 +08:00
|
|
|
vcpkg_install_qmake(
|
2019-03-27 01:46:40 +08:00
|
|
|
RELEASE_TARGETS release
|
|
|
|
DEBUG_TARGETS debug
|
|
|
|
)
|
|
|
|
else()
|
2019-12-23 22:10:12 +08:00
|
|
|
vcpkg_install_qmake()
|
2019-03-27 01:46:40 +08:00
|
|
|
endif()
|
2017-06-20 08:08:48 +08:00
|
|
|
|
2017-07-03 08:04:19 +08:00
|
|
|
file(GLOB HEADER_FILES ${SOURCE_PATH}/Qt4Qt5/Qsci/*)
|
2018-10-26 03:01:44 +08:00
|
|
|
file(COPY ${HEADER_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/include/Qsci)
|
2017-06-20 08:08:48 +08:00
|
|
|
|
2017-07-07 08:43:57 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2017-06-20 08:08:48 +08:00
|
|
|
# Handle copyright
|
|
|
|
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/qscintilla)
|
|
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/qscintilla/LICENSE ${CURRENT_PACKAGES_DIR}/share/qscintilla/copyright)
|