blob: ca6e25d0d4d746da6914ddb211e189e7d16c7ea0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
include(${CURRENT_INSTALLED_DIR}/share/qt5/qt_port_functions.cmake)
#qt_submodule_installation() No binary package for this port.
if(QT_UPDATE_VERSION)
set(VCPKG_USE_HEAD_VERSION ON)
endif()
vcpkg_from_git(
OUT_SOURCE_PATH SOURCE_PATH
URL git://code.qt.io/qt/qtmqtt.git
REF ${QT_HASH_${PORT}}
HEAD_REF "v${QT_MAJOR_MINOR_VER}.${QT_PATCH_VER}"
PATCHES ${_qis_PATCHES}
)
if(QT_UPDATE_VERSION)
message(STATUS "New qtmqtt ref: ${VCPKG_HEAD_VERSION}")
endif()
# qt module builds from a git repository require a .git entry to invoke syncqt
file(WRITE "${SOURCE_PATH}/.git" "repocontent")
# syncqt is a perl script
vcpkg_find_acquire_program(PERL)
get_filename_component(perl_exe_path ${PERL} DIRECTORY)
vcpkg_add_to_path("${perl_exe_path}")
qt_build_submodule(${SOURCE_PATH})
qt_install_copyright(${SOURCE_PATH})
|