Merge branch 'macdeployqt_fix' of git://github.com/themighty1/bitcoin
This commit is contained in:
commit
1eca3a0f0d
1 changed files with 9 additions and 3 deletions
|
@ -172,6 +172,8 @@ class DeploymentInfo(object):
|
||||||
elif os.path.exists(os.path.join(os.path.dirname(parentDir), "share", "qt4", "translations")):
|
elif os.path.exists(os.path.join(os.path.dirname(parentDir), "share", "qt4", "translations")):
|
||||||
# Newer Macports layout
|
# Newer Macports layout
|
||||||
self.qtPath = os.path.join(os.path.dirname(parentDir), "share", "qt4")
|
self.qtPath = os.path.join(os.path.dirname(parentDir), "share", "qt4")
|
||||||
|
else:
|
||||||
|
self.qtPath = os.getenv("QTDIR", None)
|
||||||
|
|
||||||
if self.qtPath is not None:
|
if self.qtPath is not None:
|
||||||
pluginPath = os.path.join(self.qtPath, "plugins")
|
pluginPath = os.path.join(self.qtPath, "plugins")
|
||||||
|
@ -242,6 +244,10 @@ def runStrip(binaryPath, verbose):
|
||||||
subprocess.check_call(["strip", "-x", binaryPath])
|
subprocess.check_call(["strip", "-x", binaryPath])
|
||||||
|
|
||||||
def copyFramework(framework, path, verbose):
|
def copyFramework(framework, path, verbose):
|
||||||
|
if framework.sourceFilePath.startswith("Qt"):
|
||||||
|
#standard place for Nokia Qt installer's frameworks
|
||||||
|
fromPath = "/Library/Frameworks/" + framework.sourceFilePath
|
||||||
|
else:
|
||||||
fromPath = framework.sourceFilePath
|
fromPath = framework.sourceFilePath
|
||||||
toDir = os.path.join(path, framework.destinationDirectory)
|
toDir = os.path.join(path, framework.destinationDirectory)
|
||||||
toPath = os.path.join(toDir, framework.binaryName)
|
toPath = os.path.join(toDir, framework.binaryName)
|
||||||
|
@ -345,7 +351,7 @@ def deployPlugins(appBundleInfo, deploymentInfo, strip, verbose):
|
||||||
if pluginDirectory == "designer":
|
if pluginDirectory == "designer":
|
||||||
# Skip designer plugins
|
# Skip designer plugins
|
||||||
continue
|
continue
|
||||||
elif pluginDirectory == "phonon":
|
elif pluginDirectory == "phonon" or pluginDirectory == "phonon_backend":
|
||||||
# Deploy the phonon plugins only if phonon is in use
|
# Deploy the phonon plugins only if phonon is in use
|
||||||
if not deploymentInfo.usesFramework("phonon"):
|
if not deploymentInfo.usesFramework("phonon"):
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in a new issue