aboutsummaryrefslogtreecommitdiffstats
path: root/qtinfo.py
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2017-11-02 11:50:25 +0100
committerAlexandru Croitor <alexandru.croitor@qt.io>2017-11-15 15:47:02 +0000
commit8815ef1cfddd79b99314a8e8e351b1a2235afc26 (patch)
tree99aad14c7f58c3be9141cbc4d7a8c9ff806e9ab5 /qtinfo.py
parentcadc370720773b4372496fafc40b34f604da6f9b (diff)
Make standalone option work on macOS
Implements standalone option on macOS, both for .dylib Qt build and framework build. Multiple rules are applied to figure out which files need to be copied into the final package. We also take care to embed a proper LC_RPATH for the PySide libraries, so that they point to the copied over Qt libraries. Change-Id: I442749e7c2318a66a22e3a1dd0ae703fb8943acf Task-number: PYSIDE-558 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'qtinfo.py')
-rw-r--r--qtinfo.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/qtinfo.py b/qtinfo.py
index 1e3f278e0..e85b322e2 100644
--- a/qtinfo.py
+++ b/qtinfo.py
@@ -28,9 +28,15 @@ class QtInfo(object):
def getLibsPath(self):
return self.getProperty("QT_INSTALL_LIBS")
+ def getLibsExecsPath(self):
+ return self.getProperty("QT_INSTALL_LIBEXECS")
+
def getPluginsPath(self):
return self.getProperty("QT_INSTALL_PLUGINS")
+ def getPrefixPath(self):
+ return self.getProperty("QT_INSTALL_PREFIX")
+
def getImportsPath(self):
return self.getProperty("QT_INSTALL_IMPORTS")
@@ -43,6 +49,9 @@ class QtInfo(object):
def getDocsPath(self):
return self.getProperty("QT_INSTALL_DOCS")
+ def getQmlPath(self):
+ return self.getProperty("QT_INSTALL_QML")
+
def _getProperty(self, prop_name):
cmd = self._qmake_command + ["-query", prop_name]
proc = subprocess.Popen(cmd, stdout = subprocess.PIPE, shell=False)
@@ -62,9 +71,12 @@ class QtInfo(object):
version = property(getVersion)
bins_dir = property(getBinsPath)
libs_dir = property(getLibsPath)
+ lib_execs_dir = property(getLibsExecsPath)
plugins_dir = property(getPluginsPath)
+ prefix_dir = property(getPrefixPath)
qmake_command = property(getQMakeCommand)
imports_dir = property(getImportsPath)
translations_dir = property(getTranslationsPath)
headers_dir = property(getHeadersPath)
docs_dir = property(getDocsPath)
+ qml_dir = property(getQmlPath)