Change linking of dylib.

This commit is contained in:
Martin Rotter 2020-05-12 13:18:18 +02:00
parent 5760a710f5
commit 4ac05993da
2 changed files with 8 additions and 4 deletions

View File

@ -209,8 +209,6 @@ mac {
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.8
LIBS += -framework AppKit
QMAKE_POST_LINK += $$system(install_name_tool -change "librssguard.dylib" "@executable_path/librssguard.dylib" $$OUT_PWD/rssguard)
target.path = $$quote($$PREFIX/Contents/MacOS/)
lib.files = $$OUT_PWD/../librssguard/librssguard.dylib
@ -239,13 +237,15 @@ mac {
INSTALL_HEADERS_PREFIX = $$quote($$PREFIX/Contents/Resources/Include/libtextosaurus/)
}
message($$MSG_PREFIX: Prefix for headers is \"$$INSTALL_HEADERS_PREFIX\".)
# Create install step for each folder of public headers.
for(header, INSTALL_HEADERS) {
path = $${INSTALL_HEADERS_PREFIX}/$${dirname(header)}
message($$MSG_PREFIX: Adding header \"$$header\" to \"make install\" step.)
message($$MSG_PREFIX: Adding header \"$$header\" to \"make install\" step with path \"$$path\".)
eval(headers_$${dirname(header)}.files += $$header)
eval(headers_$${dirname(header)}.path = $$path)
eval(headers_$${dirname(header)}.path = $$quote($$path))
eval(INSTALLS *= headers_$${dirname(header)})
}

View File

@ -13,7 +13,11 @@ cd "src/rssguard"
# Fix .dylib linking.
install_name_tool -change "librssguard.dylib" "@executable_path/librssguard.dylib" "RSS Guard.app/Contents/MacOS/rssguard"
install_name_tool -change "librssguard.dylib" "@executable_path/librssguard.dylib" "rssguard"
otool -L "RSS Guard.app/Contents/MacOS/rssguard"
otool -L "rssguard"
make dmg
# Rename DMG.