mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
build-system: macOS: more hacking around paths
This really is mostly for my scripting and how I build the official packages. But there isn't much harm having it in the repo. And it makes my life easier. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
0eb00ed700
commit
4c26bd5522
1 changed files with 15 additions and 0 deletions
|
@ -42,6 +42,21 @@ for i in libgit2 libGrantlee_TextDocument.dylib libGrantlee_Templates.dylib; do
|
|||
fi
|
||||
done
|
||||
|
||||
# ensure libpng and libjpeg inside the bundle are referenced in QtWebKit libraries
|
||||
QTWEBKIT=Subsurface.app/Contents/Frameworks/QtWebKit.framework/QtWebKit
|
||||
for i in libjpeg.8.dylib libpng16.16.dylib; do
|
||||
OLD=$(otool -L ${QTWEBKIT} | grep $i | cut -d\ -f1 | tr -d "\t")
|
||||
if [[ ! -z ${OLD} ]] ; then
|
||||
# copy the library into the bundle and make sure its id and the reference to it are correct
|
||||
if [[ ! -f Subsurface.app/Contents/Frameworks/$(basename ${OLD}) ]] ; then
|
||||
cp ${OLD} Subsurface.app/Contents/Frameworks
|
||||
fi
|
||||
SONAME=$(basename $OLD)
|
||||
install_name_tool -change ${OLD} @executable_path/../Frameworks/${SONAME} ${QTWEBKIT}
|
||||
install_name_tool -id @executable_path/../Frameworks/${SONAME} Subsurface.app/Contents/Frameworks/${SONAME}
|
||||
fi
|
||||
done
|
||||
|
||||
# next, copy libssh2.1
|
||||
# cp ${DIR}/install-root/lib/libssh2.1.dylib Subsurface.app/Contents/Frameworks
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue