Skip to content

Commit

Permalink
Mac OS X: Deploy libdeng2 as a symlink in test apps
Browse files Browse the repository at this point in the history
Makes it easier to update just libdeng2 without rebuilding the tests.
  • Loading branch information
skyjake committed Nov 22, 2012
1 parent 024f7f7 commit 7ad539c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion doomsday/tests/config_test.pri
Expand Up @@ -11,7 +11,8 @@ macx {
fwDir = \"$${OUT_PWD}/$${1}.app/Contents/Frameworks/\"
doPostLink("rm -rf $$fwDir")
doPostLink("mkdir $$fwDir")
doPostLink("cp -fRp $$OUT_PWD/../../libdeng2/libdeng2*dylib $$fwDir")
doPostLink("ln -s $$OUT_PWD/../../libdeng2/libdeng2.dylib $$fwDir/libdeng2.dylib")
doPostLink("ln -s $$OUT_PWD/../../libdeng2/libdeng2.2.dylib $$fwDir/libdeng2.2.dylib")

# Fix the dynamic linker paths so they point to ../Frameworks/ inside the bundle.
fixInstallName($${1}.app/Contents/MacOS/$${1}, libdeng2.2.dylib, ..)
Expand Down
2 changes: 1 addition & 1 deletion doomsday/tests/tests.pro
@@ -1,5 +1,5 @@
# The Doomsday Engine Project
# Copyright (c) 2012 Jaakko Keränen <jaakko.keranen@iki.fi>
# Copyright (c) 2012 Jaakko Keränen <jaakko.keranen@iki.fi>

include(../config.pri)

Expand Down

0 comments on commit 7ad539c

Please sign in to comment.