aboutsummaryrefslogtreecommitdiff
path: root/ports/qtwebview
diff options
context:
space:
mode:
Diffstat (limited to 'ports/qtwebview')
-rw-r--r--ports/qtwebview/portfile.cmake19
-rw-r--r--ports/qtwebview/vcpkg.json35
2 files changed, 54 insertions, 0 deletions
diff --git a/ports/qtwebview/portfile.cmake b/ports/qtwebview/portfile.cmake
new file mode 100644
index 000000000..7385e5bf2
--- /dev/null
+++ b/ports/qtwebview/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
+INVERTED_FEATURES
+ "qml" CMAKE_DISABLE_FIND_PACKAGE_Qt6Quick
+ "qml" CMAKE_DISABLE_FIND_PACKAGE_Qt6WebEngineQuick
+ "webengine" CMAKE_DISABLE_FIND_PACKAGE_WebEngineCore
+)
+
+qt_install_submodule(PATCHES ${${PORT}_PATCHES}
+ CONFIGURE_OPTIONS
+ CONFIGURE_OPTIONS_RELEASE
+ CONFIGURE_OPTIONS_DEBUG
+ )
diff --git a/ports/qtwebview/vcpkg.json b/ports/qtwebview/vcpkg.json
new file mode 100644
index 000000000..14c9dbdca
--- /dev/null
+++ b/ports/qtwebview/vcpkg.json
@@ -0,0 +1,35 @@
+{
+ "name": "qtwebview",
+ "version-semver": "6.2.0",
+ "description": "Qt Web View",
+ "homepage": "https://www.qt.io/",
+ "dependencies": [
+ {
+ "name": "qtbase",
+ "default-features": false,
+ "features": [
+ "gui"
+ ]
+ }
+ ],
+ "features": {
+ "qml": {
+ "description": "Build QML imports",
+ "dependencies": [
+ {
+ "name": "qtdeclarative",
+ "default-features": false
+ }
+ ]
+ },
+ "webengine": {
+ "description": "Build with Webengine",
+ "dependencies": [
+ {
+ "name": "qtwebengine",
+ "default-features": false
+ }
+ ]
+ }
+ }
+}