2019-09-13 01:07:22 +08:00
|
|
|
include(${CURRENT_INSTALLED_DIR}/share/qt5/qt_port_functions.cmake)
|
|
|
|
#qt_submodule_installation() No binary package for this port.
|
2020-07-09 06:34:35 +08:00
|
|
|
if(QT_UPDATE_VERSION)
|
2021-07-15 03:45:18 +08:00
|
|
|
set(VCPKG_USE_HEAD_VERSION ON)
|
2020-07-09 06:34:35 +08:00
|
|
|
endif()
|
2021-01-21 04:55:41 +08:00
|
|
|
|
|
|
|
vcpkg_from_git(
|
2019-03-22 16:08:50 +08:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2021-01-21 04:55:41 +08:00
|
|
|
URL git://code.qt.io/qt/qtmqtt.git
|
|
|
|
REF ${QT_HASH_${PORT}}
|
2021-07-15 03:45:18 +08:00
|
|
|
HEAD_REF "v${QT_MAJOR_MINOR_VER}.${QT_PATCH_VER}"
|
2021-01-21 04:55:41 +08:00
|
|
|
PATCHES ${_qis_PATCHES}
|
2019-03-22 16:08:50 +08:00
|
|
|
)
|
|
|
|
|
2021-07-15 03:45:18 +08:00
|
|
|
if(QT_UPDATE_VERSION)
|
|
|
|
message(STATUS "New qtmqtt ref: ${VCPKG_HEAD_VERSION}")
|
2021-01-21 04:55:41 +08:00
|
|
|
endif()
|
|
|
|
|
2019-09-13 01:07:22 +08:00
|
|
|
# qt module builds from a git repository require a .git entry to invoke syncqt
|
2019-03-22 16:08:50 +08:00
|
|
|
file(WRITE "${SOURCE_PATH}/.git" "repocontent")
|
|
|
|
|
2019-09-13 01:07:22 +08:00
|
|
|
# syncqt is a perl script
|
2019-03-22 16:08:50 +08:00
|
|
|
vcpkg_find_acquire_program(PERL)
|
2019-09-13 01:07:22 +08:00
|
|
|
get_filename_component(perl_exe_path ${PERL} DIRECTORY)
|
|
|
|
vcpkg_add_to_path("${perl_exe_path}")
|
2019-03-22 16:08:50 +08:00
|
|
|
|
2019-09-13 01:07:22 +08:00
|
|
|
qt_build_submodule(${SOURCE_PATH})
|
|
|
|
qt_install_copyright(${SOURCE_PATH})
|