2017-06-20 08:08:48 +08:00
|
|
|
vcpkg_download_distfile(ARCHIVE
|
2023-03-20 14:57:36 +08:00
|
|
|
URLS "https://www.riverbankcomputing.com/static/Downloads/QScintilla/2.13.4/QScintilla_src-2.13.4.tar.gz"
|
|
|
|
FILENAME "QScintilla-2.13.4.tar.gz"
|
|
|
|
SHA512 591379f4d48a6de1bc61db93f6c0d1c48b6830a852679b51e27debb866524c320e2db27d919baf32576c2bf40bba62e38378673a86f22db9839746e26b0f77cd
|
2017-06-20 08:08:48 +08:00
|
|
|
)
|
2019-10-08 01:35:13 +08:00
|
|
|
|
2023-03-20 14:57:36 +08:00
|
|
|
vcpkg_extract_source_archive(
|
|
|
|
SOURCE_PATH
|
2019-10-08 01:35:13 +08:00
|
|
|
ARCHIVE ${ARCHIVE}
|
2020-04-18 06:11:12 +08:00
|
|
|
PATCHES
|
|
|
|
fix-static.patch
|
2019-10-08 01:35:13 +08:00
|
|
|
)
|
2017-06-20 08:08:48 +08: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 20:22:18 +08:00
|
|
|
|
2023-03-29 02:52:15 +08:00
|
|
|
vcpkg_qmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}/src"
|
|
|
|
QMAKE_OPTIONS
|
|
|
|
"CONFIG-=hide_symbols"
|
|
|
|
"DEFINES+=SCI_NAMESPACE"
|
2018-01-18 20:22:18 +08:00
|
|
|
)
|
2023-03-29 02:52:15 +08:00
|
|
|
vcpkg_qmake_install()
|
2018-01-18 20:22:18 +08:00
|
|
|
|
2023-03-29 02:52:15 +08:00
|
|
|
file(GLOB DLLS "${CURRENT_PACKAGES_DIR}/lib/*.dll")
|
|
|
|
if(DLLS)
|
|
|
|
file(COPY ${DLLS} DESTINATION "${CURRENT_PACKAGES_DIR}/bin")
|
|
|
|
file(REMOVE ${DLLS})
|
|
|
|
endif()
|
|
|
|
|
|
|
|
file(GLOB DEBUG_DLLS "${CURRENT_PACKAGES_DIR}/debug/lib/*.dll")
|
|
|
|
if(DEBUG_DLLS)
|
|
|
|
file(COPY ${DEBUG_DLLS} DESTINATION "${CURRENT_PACKAGES_DIR}/debug/bin")
|
|
|
|
file(REMOVE ${DEBUG_DLLS})
|
2019-03-27 01:46:40 +08:00
|
|
|
endif()
|
2017-06-20 08:08:48 +08:00
|
|
|
|
2021-03-02 04:09:04 +08:00
|
|
|
file(GLOB HEADER_FILES ${SOURCE_PATH}/src/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
|
|
|
|
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 08:43:57 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2017-06-20 08:08:48 +08:00
|
|
|
# Handle copyright
|
2020-04-18 06:11:12 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|