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-01-21 04:55:41 +08:00
|
|
|
set(UPDATE_PORT_GIT_OPTIONS X_OUT_REF NEW_REF) # TO get an SHA512 error if the variable is set.
|
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
|
|
|
|
TAG v${QT_MAJOR_MINOR_VER}.${QT_PATCH_VER}
|
|
|
|
REF ${QT_HASH_${PORT}}
|
|
|
|
${UPDATE_PORT_GIT_OPTIONS}
|
|
|
|
PATCHES ${_qis_PATCHES}
|
2019-03-22 16:08:50 +08:00
|
|
|
)
|
|
|
|
|
2021-01-21 04:55:41 +08:00
|
|
|
if(NEW_REF)
|
|
|
|
message(STATUS "New qtmqtt ref: ${NEW_REF}")
|
|
|
|
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})
|