aboutsummaryrefslogtreecommitdiffstats
path: root/build_scripts/platforms/unix.py
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2022-01-20 11:26:42 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2022-02-04 19:36:45 +0100
commit606f2280e3e8531619c9c2d79539b6e50a5a37dd (patch)
treebebe73ab572a66bc7db17c860caf21641d31ace6 /build_scripts/platforms/unix.py
parent42f020d7c9fc9f481132b5efb162b34d2f4f8cf6 (diff)
Bundle the metatype json files of Qt
They are required for qmllint. Task-number: PYSIDE-1709 Change-Id: Iedf115c810b305a05cf2b1e3bfd2ed84c2b17af8 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'build_scripts/platforms/unix.py')
-rw-r--r--build_scripts/platforms/unix.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/build_scripts/platforms/unix.py b/build_scripts/platforms/unix.py
index da418503b..8a2cdf43b 100644
--- a/build_scripts/platforms/unix.py
+++ b/build_scripts/platforms/unix.py
@@ -174,6 +174,12 @@ def prepare_packages_posix(self, vars):
executables.extend(_copy_gui_executable('designer', vars=vars))
executables.extend(_copy_gui_executable('linguist', vars=vars))
+ # <qt>/lib/metatypes/* -> <setup>/{st_package_name}/Qt/lib/metatypes
+ destination_lib_dir = "{st_build_dir}/{st_package_name}/Qt/lib"
+ copydir("{qt_lib_dir}/metatypes", f"{destination_lib_dir}/metatypes",
+ filter=["*.json"],
+ recursive=False, vars=vars, force_copy_symlinks=True)
+
# Copy libexec
built_modules = self.get_built_pyside_config(vars)['built_modules']
if self.is_webengine_built(built_modules):