aboutsummaryrefslogtreecommitdiffstats
path: root/build_scripts/qtinfo.py
diff options
context:
space:
mode:
Diffstat (limited to 'build_scripts/qtinfo.py')
-rw-r--r--build_scripts/qtinfo.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/build_scripts/qtinfo.py b/build_scripts/qtinfo.py
index c63fc77f2..1eb7c4909 100644
--- a/build_scripts/qtinfo.py
+++ b/build_scripts/qtinfo.py
@@ -58,6 +58,10 @@ class QtInfo(object):
return self.get_property("QT_VERSION")
@property
+ def version_tuple(self):
+ return tuple(map(int, self.version.split(".")))
+
+ @property
def bins_dir(self):
return self.get_property("QT_INSTALL_BINS")
@@ -70,6 +74,17 @@ class QtInfo(object):
return self.get_property("QT_INSTALL_LIBS")
@property
+ def module_json_files_dir(self):
+ # FIXME: Use INSTALL_DESCRIPTIONSDIR once QTBUG-116983 is done.
+ result = Path(self.arch_data) / "modules"
+ return os.fspath(result)
+
+ @property
+ def metatypes_dir(self):
+ parent = self.arch_data if self.version_tuple >= (6, 5, 0) else self.libs_dir
+ return os.fspath(Path(parent) / "metatypes")
+
+ @property
def lib_execs_dir(self):
return self.get_property("QT_INSTALL_LIBEXECS")
@@ -82,6 +97,10 @@ class QtInfo(object):
return self.get_property("QT_INSTALL_PREFIX")
@property
+ def arch_data(self):
+ return self.get_property("QT_INSTALL_ARCHDATA")
+
+ @property
def imports_dir(self):
return self.get_property("QT_INSTALL_IMPORTS")