aboutsummaryrefslogtreecommitdiff
path: root/ports/qt5-mqtt
diff options
context:
space:
mode:
authorMaurice Kalinowski <mauricek@users.noreply.github.com>2019-03-22 09:08:50 +0100
committerPhil Christensen <philc@microsoft.com>2019-03-22 01:08:50 -0700
commit3d2db597ce17afc9308c515ef0ce3de7ddf2ffe1 (patch)
treede0f9344431d31b37df1ef11dfddac5a7cdca361 /ports/qt5-mqtt
parent8b4a607c328d100ac9892e2cbcfb9a4b0cf44c10 (diff)
downloadvcpkg-3d2db597ce17afc9308c515ef0ce3de7ddf2ffe1.tar.gz
vcpkg-3d2db597ce17afc9308c515ef0ce3de7ddf2ffe1.zip
[qt5-mqtt] new port Qtmqtt (#5736) (#5737)
* [qt5-modularscripts] Split build steps When building modules not available from the vendor download side, the build process stays the same. Create two functions, one for accessing the sources, the other for compilation. * [qtmqtt] Add new port (#5736)
Diffstat (limited to 'ports/qt5-mqtt')
-rw-r--r--ports/qt5-mqtt/CONTROL5
-rw-r--r--ports/qt5-mqtt/portfile.cmake21
2 files changed, 26 insertions, 0 deletions
diff --git a/ports/qt5-mqtt/CONTROL b/ports/qt5-mqtt/CONTROL
new file mode 100644
index 000000000..0b99078fb
--- /dev/null
+++ b/ports/qt5-mqtt/CONTROL
@@ -0,0 +1,5 @@
+Source: qt5-mqtt
+Version: 5.12.1
+Description: Qt5 MQTT module.
+Build-Depends: qt5-modularscripts, qt5-base
+
diff --git a/ports/qt5-mqtt/portfile.cmake b/ports/qt5-mqtt/portfile.cmake
new file mode 100644
index 000000000..8c797abb0
--- /dev/null
+++ b/ports/qt5-mqtt/portfile.cmake
@@ -0,0 +1,21 @@
+include(vcpkg_common_functions)
+
+include(${CURRENT_INSTALLED_DIR}/share/qt5modularscripts/qt_modular_library.cmake)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO qt/qtmqtt
+ REF v5.12.1
+ SHA512 c6f4000a032caaf5224ca6fe2442f22eddc26e3e53cc101885c717b706156cada716e45ff92d267928b87e1e5ceae5e81694f4b7c289d9836e75f27fd012de42
+ HEAD_REF dev
+)
+
+# 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)
+set(ENV{PATH} "${PERL_EXE_PATH};$ENV{PATH}")
+
+qt_modular_build_library(${SOURCE_PATH})