aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/qtwebchannel
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/qtwebchannel')
-rw-r--r--vcpkg/ports/qtwebchannel/portfile.cmake19
-rw-r--r--vcpkg/ports/qtwebchannel/vcpkg.json24
2 files changed, 43 insertions, 0 deletions
diff --git a/vcpkg/ports/qtwebchannel/portfile.cmake b/vcpkg/ports/qtwebchannel/portfile.cmake
new file mode 100644
index 0000000..18f9512
--- /dev/null
+++ b/vcpkg/ports/qtwebchannel/portfile.cmake
@@ -0,0 +1,19 @@
+set(SCRIPT_PATH "${CURRENT_INSTALLED_DIR}/share/qtbase")
+include("${SCRIPT_PATH}/qt_install_submodule.cmake")
+
+set(${PORT}_PATCHES)
+
+
+vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
+FEATURES
+ "qml" CMAKE_REQUIRE_FIND_PACKAGE_Qt6Quick
+INVERTED_FEATURES
+ "qml" CMAKE_DISABLE_FIND_PACKAGE_Qt6Quick
+ "qml" CMAKE_DISABLE_FIND_PACKAGE_Qt6Qml
+)
+
+qt_install_submodule(PATCHES ${${PORT}_PATCHES}
+ CONFIGURE_OPTIONS ${FEATURE_OPTIONS}
+ CONFIGURE_OPTIONS_RELEASE
+ CONFIGURE_OPTIONS_DEBUG
+ )
diff --git a/vcpkg/ports/qtwebchannel/vcpkg.json b/vcpkg/ports/qtwebchannel/vcpkg.json
new file mode 100644
index 0000000..89fc682
--- /dev/null
+++ b/vcpkg/ports/qtwebchannel/vcpkg.json
@@ -0,0 +1,24 @@
+{
+ "name": "qtwebchannel",
+ "version": "6.9.1",
+ "description": "Qt WebChannel enables peer-to-peer communication between a server (QML/C++ application) and a client (HTML/JavaScript or QML application).",
+ "homepage": "https://www.qt.io/",
+ "license": null,
+ "dependencies": [
+ {
+ "name": "qtbase",
+ "default-features": false
+ }
+ ],
+ "features": {
+ "qml": {
+ "description": "Build QML imports",
+ "dependencies": [
+ {
+ "name": "qtdeclarative",
+ "default-features": false
+ }
+ ]
+ }
+ }
+}