2019-06-10 09:54:18 +02:00
|
|
|
# Setup all public headers, this needs to be kept in
|
|
|
|
# sync with truly used headers.
|
|
|
|
INSTALL_HEADERS = \
|
|
|
|
../librssguard/services/abstract/accountcheckmodel.h \
|
|
|
|
../librssguard/services/abstract/cacheforserviceroot.h \
|
|
|
|
../librssguard/services/abstract/category.h \
|
|
|
|
../librssguard/services/abstract/feed.h \
|
2020-12-31 19:53:16 +01:00
|
|
|
../librssguard/services/abstract/gui/authenticationdetails.h \
|
2019-06-10 09:54:18 +02:00
|
|
|
../librssguard/services/abstract/gui/formfeeddetails.h \
|
2020-10-29 13:50:30 +01:00
|
|
|
../librssguard/services/abstract/importantnode.h \
|
|
|
|
../librssguard/services/abstract/label.h \
|
|
|
|
../librssguard/services/abstract/labelsnode.h \
|
2019-06-10 09:54:18 +02:00
|
|
|
../librssguard/services/abstract/recyclebin.h \
|
|
|
|
../librssguard/services/abstract/rootitem.h \
|
|
|
|
../librssguard/services/abstract/serviceentrypoint.h \
|
2020-12-31 19:53:16 +01:00
|
|
|
../librssguard/services/abstract/serviceroot.h
|
2019-06-10 09:54:18 +02:00
|
|
|
|
|
|
|
# Install all files on Windows.
|
|
|
|
win32 {
|
|
|
|
target.path = $$PREFIX
|
|
|
|
|
|
|
|
lib.files = $$OUT_PWD/../librssguard/librssguard.dll $$OUT_PWD/../librssguard/librssguard.lib
|
|
|
|
lib.path = $$PREFIX
|
|
|
|
lib.CONFIG = no_check_exist
|
|
|
|
|
2020-07-03 11:52:21 +02:00
|
|
|
clng.files = ../../resources/scripts/clang-format
|
2020-07-02 15:09:46 +02:00
|
|
|
clng.path = $$PREFIX
|
|
|
|
|
|
|
|
INSTALLS += target lib clng
|
2019-06-10 09:54:18 +02:00
|
|
|
|
2020-05-13 08:20:09 +02:00
|
|
|
INSTALL_HEADERS_PREFIX = $$quote($$PREFIX/include/librssguard)
|
2019-06-10 09:54:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
# Install all files on Linux.
|
|
|
|
unix:!mac:!android {
|
|
|
|
target.path = $$PREFIX/bin
|
|
|
|
|
2019-06-11 12:42:53 +02:00
|
|
|
desktop_file.files = ../../resources/desktop/$${APP_REVERSE_NAME}.desktop
|
2019-06-10 09:54:18 +02:00
|
|
|
desktop_file.path = $$quote($$PREFIX/share/applications/)
|
|
|
|
|
2019-06-11 12:42:53 +02:00
|
|
|
appdata.files = ../../resources/desktop/$${APP_REVERSE_NAME}.appdata.xml
|
2019-06-10 09:54:18 +02:00
|
|
|
appdata.path = $$quote($$PREFIX/share/metainfo/)
|
|
|
|
|
|
|
|
lib.files = $$OUT_PWD/../librssguard/librssguard.so
|
|
|
|
lib.path = $$quote($$PREFIX/lib/)
|
|
|
|
lib.CONFIG = no_check_exist
|
|
|
|
|
2019-06-11 12:42:53 +02:00
|
|
|
desktop_icon.files = ../../resources/graphics/$${TARGET}.png
|
2019-06-10 09:54:18 +02:00
|
|
|
desktop_icon.path = $$quote($$PREFIX/share/icons/hicolor/512x512/apps/)
|
|
|
|
|
|
|
|
INSTALLS += target lib desktop_file desktop_icon appdata
|
|
|
|
|
2020-05-13 08:20:09 +02:00
|
|
|
INSTALL_HEADERS_PREFIX = $$quote($$PREFIX/include/librssguard)
|
2019-06-10 09:54:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
mac {
|
|
|
|
IDENTIFIER = $$APP_REVERSE_NAME
|
|
|
|
CONFIG -= app_bundle
|
2019-06-11 12:42:53 +02:00
|
|
|
ICON = ../../resources/macosx/$${TARGET}.icns
|
2020-05-12 21:13:56 +02:00
|
|
|
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.10
|
2019-06-10 09:54:18 +02:00
|
|
|
LIBS += -framework AppKit
|
|
|
|
|
|
|
|
target.path = $$quote($$PREFIX/Contents/MacOS/)
|
|
|
|
|
|
|
|
lib.files = $$OUT_PWD/../librssguard/librssguard.dylib
|
|
|
|
lib.path = $$quote($$PREFIX/Contents/MacOS/)
|
|
|
|
lib.CONFIG = no_check_exist
|
|
|
|
|
|
|
|
# Install app icon.
|
2019-06-11 12:42:53 +02:00
|
|
|
icns_icon.files = ../../resources/macosx/$${TARGET}.icns
|
2019-06-10 09:54:18 +02:00
|
|
|
icns_icon.path = $$quote($$PREFIX/Contents/Resources/)
|
|
|
|
|
|
|
|
# Install Info.plist.
|
2019-06-11 12:42:53 +02:00
|
|
|
info_plist.files = ../../resources/macosx/Info.plist.in
|
2019-06-10 09:54:18 +02:00
|
|
|
info_plist.path = $$quote($$PREFIX/Contents/)
|
|
|
|
|
|
|
|
# Process the just installed Info.plist.
|
|
|
|
info_plist2.extra = @sed -e "s,@EXECUTABLE@,$$TARGET,g" -e "s,@SHORT_VERSION@,$$APP_VERSION,g" -e "s,@APP_NAME@,\"$$APP_NAME\",g" -e "s,@ICON@,$$basename(ICON),g" -e "s,@TYPEINFO@,"????",g" $$shell_quote($$PREFIX/Contents/Info.plist.in) > $$shell_quote($$PREFIX/Contents/Info.plist) && \
|
|
|
|
rm -f $$shell_quote($$PREFIX/Contents/Info.plist.in)
|
|
|
|
info_plist2.path = $$quote($$PREFIX/Contents/)
|
|
|
|
|
|
|
|
# Install PkgInfo
|
|
|
|
pkginfo.extra = @printf "APPL????" > $$shell_quote($$PREFIX/Contents/PkgInfo)
|
|
|
|
pkginfo.path = $$quote($$PREFIX/Contents/)
|
|
|
|
|
|
|
|
INSTALLS += target lib icns_icon info_plist info_plist2 pkginfo
|
|
|
|
|
2020-05-13 08:20:09 +02:00
|
|
|
INSTALL_HEADERS_PREFIX = $$shell_quote($$PREFIX/Contents/Resources/Include/librssguard)
|
2019-06-10 09:54:18 +02:00
|
|
|
}
|
|
|
|
|
2020-05-12 13:18:18 +02:00
|
|
|
message($$MSG_PREFIX: Prefix for headers is \"$$INSTALL_HEADERS_PREFIX\".)
|
|
|
|
|
2019-06-10 09:54:18 +02:00
|
|
|
# Create install step for each folder of public headers.
|
|
|
|
for(header, INSTALL_HEADERS) {
|
|
|
|
path = $${INSTALL_HEADERS_PREFIX}/$${dirname(header)}
|
2020-05-13 08:20:09 +02:00
|
|
|
path = $$shell_quote($$path)
|
2019-06-10 09:54:18 +02:00
|
|
|
|
2020-05-12 13:18:18 +02:00
|
|
|
message($$MSG_PREFIX: Adding header \"$$header\" to \"make install\" step with path \"$$path\".)
|
2019-06-10 09:54:18 +02:00
|
|
|
|
|
|
|
eval(headers_$${dirname(header)}.files += $$header)
|
2020-05-13 08:20:09 +02:00
|
|
|
eval(headers_$${dirname(header)}.path = $$path)
|
2019-06-10 09:54:18 +02:00
|
|
|
eval(INSTALLS *= headers_$${dirname(header)})
|
2019-06-11 12:42:53 +02:00
|
|
|
}
|