aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/qt5-mqtt
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/qt5-mqtt')
-rw-r--r--vcpkg/ports/qt5-mqtt/portfile.cmake31
-rw-r--r--vcpkg/ports/qt5-mqtt/vcpkg.json12
2 files changed, 43 insertions, 0 deletions
diff --git a/vcpkg/ports/qt5-mqtt/portfile.cmake b/vcpkg/ports/qt5-mqtt/portfile.cmake
new file mode 100644
index 0000000..f091867
--- /dev/null
+++ b/vcpkg/ports/qt5-mqtt/portfile.cmake
@@ -0,0 +1,31 @@
+include("${CURRENT_INSTALLED_DIR}/share/qt5/qt_port_functions.cmake")
+
+# No binary package for this port.
+# qt_submodule_installation()
+
+if(QT_UPDATE_VERSION)
+ set(VCPKG_USE_HEAD_VERSION ON)
+endif()
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO qt/qtmqtt
+ REF 0b4955ce8b692409c3deded57892eb61e75be428
+ HEAD_REF "v${QT_MAJOR_MINOR_VER}.${QT_PATCH_VER}"
+ SHA512 4a16c277f338874c9606254f34c74c434a2f4df1767bd465822d1388f325de8c788d8ed184e1c340e092a358add6655e8d20d59a027f111d1882fcae6433320e
+)
+
+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}")
diff --git a/vcpkg/ports/qt5-mqtt/vcpkg.json b/vcpkg/ports/qt5-mqtt/vcpkg.json
new file mode 100644
index 0000000..e97c49e
--- /dev/null
+++ b/vcpkg/ports/qt5-mqtt/vcpkg.json
@@ -0,0 +1,12 @@
+{
+ "name": "qt5-mqtt",
+ "version": "5.15.17",
+ "description": "Qt MQTT enables you to create applications and devices that can communicate over the MQ telemetry transport (MQTT) protocol.",
+ "license": null,
+ "dependencies": [
+ {
+ "name": "qt5-base",
+ "default-features": false
+ }
+ ]
+}