summaryrefslogtreecommitdiffstats
path: root/build/osx/OSConsX.py
diff options
context:
space:
mode:
authorRJ Ryan <rryan@mixxx.org>2014-09-17 18:06:18 -0400
committerRJ Ryan <rryan@mixxx.org>2014-09-17 18:06:18 -0400
commitbc121f0ca752bdbd6980e67452a0a1df34333d9a (patch)
treeda19bb9d9c3a111b4d55ae8176607fb545a5afdf /build/osx/OSConsX.py
parentaf5fa340a35f1b636181ae31582e0511b385c15e (diff)
Follow symlinks when copying dylibs into the Mac bundle.
Diffstat (limited to 'build/osx/OSConsX.py')
-rw-r--r--build/osx/OSConsX.py13
1 files changed, 10 insertions, 3 deletions
diff --git a/build/osx/OSConsX.py b/build/osx/OSConsX.py
index c456d1fee4..a7ea071944 100644
--- a/build/osx/OSConsX.py
+++ b/build/osx/OSConsX.py
@@ -279,7 +279,11 @@ def build_app(target, source, env):
print "Installing embedded libs:"
for ref, (abs, embedded) in locals.iteritems():
- Execute(Copy(embedded, abs))
+ real_abs = os.path.realpath(abs)
+ print "installing", real_abs, "to", embedded
+ # NOTE(rryan): abs can be a symlink. we want to copy the binary it is
+ # pointing to. os.path.realpath does this for us.
+ Execute(Copy(embedded, real_abs))
if not os.access(embedded, os.W_OK):
print "Adding write permissions to %s" % embedded_p
mode = os.stat(embedded).st_mode
@@ -289,8 +293,11 @@ def build_app(target, source, env):
print "Installing plugins:"
for p, embedded_p in plugins_l:
- print "installing", p,"to",embedded_p
- Execute(Copy(embedded_p, p)) #:/
+ real_p = os.path.realpath(p)
+ print "installing", real_p, "to", embedded_p
+ # NOTE(rryan): p can be a symlink. we want to copy the binary it is
+ # pointing to. os.path.realpath does this for us.
+ Execute(Copy(embedded_p, real_p)) #:/
patch_lib(str(embedded_p))