aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/qttranslations
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/qttranslations')
-rw-r--r--vcpkg/ports/qttranslations/portfile.cmake15
-rw-r--r--vcpkg/ports/qttranslations/vcpkg.json20
2 files changed, 35 insertions, 0 deletions
diff --git a/vcpkg/ports/qttranslations/portfile.cmake b/vcpkg/ports/qttranslations/portfile.cmake
new file mode 100644
index 0000000..f151f0a
--- /dev/null
+++ b/vcpkg/ports/qttranslations/portfile.cmake
@@ -0,0 +1,15 @@
+set(SCRIPT_PATH "${CURRENT_INSTALLED_DIR}/share/qtbase")
+include("${SCRIPT_PATH}/qt_install_submodule.cmake")
+
+set(${PORT}_PATCHES)
+set(TOOL_NAMES)
+
+qt_install_submodule(PATCHES ${${PORT}_PATCHES}
+ TOOL_NAMES ${TOOL_NAMES}
+ CONFIGURE_OPTIONS_MAYBE_UNUSED
+ QT_BUILD_EXAMPLES
+ QT_USE_DEFAULT_CMAKE_OPTIMIZATION_FLAGS
+ )
+
+set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled) # only translation files.
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
diff --git a/vcpkg/ports/qttranslations/vcpkg.json b/vcpkg/ports/qttranslations/vcpkg.json
new file mode 100644
index 0000000..2521eea
--- /dev/null
+++ b/vcpkg/ports/qttranslations/vcpkg.json
@@ -0,0 +1,20 @@
+{
+ "name": "qttranslations",
+ "version": "6.9.1",
+ "description": "Qt translations.",
+ "homepage": "https://www.qt.io/",
+ "license": null,
+ "dependencies": [
+ {
+ "name": "qtbase",
+ "default-features": false
+ },
+ {
+ "name": "qttools",
+ "default-features": false,
+ "features": [
+ "linguist"
+ ]
+ }
+ ]
+}