add Mac OSX defines and installation paths
This commit is contained in:
parent
1e5d458bc2
commit
13572036d2
2 changed files with 23 additions and 8 deletions
21
rssguard.pro
21
rssguard.pro
|
@ -597,8 +597,8 @@ win32 {
|
||||||
sql feeds texts ico app_icon app_plain_icon translations
|
sql feeds texts ico app_icon app_plain_icon translations
|
||||||
}
|
}
|
||||||
|
|
||||||
# Install all files on Linux.
|
# Install all files on Linux and Mac OSX.
|
||||||
unix:!mac {
|
unix: {
|
||||||
target.path = $$PREFIX/bin
|
target.path = $$PREFIX/bin
|
||||||
|
|
||||||
# Install SQL initializers.
|
# Install SQL initializers.
|
||||||
|
@ -625,16 +625,21 @@ unix:!mac {
|
||||||
misc_texts.files = $$TEXTS
|
misc_texts.files = $$TEXTS
|
||||||
misc_texts.path = $$quote($$PREFIX/share/$$TARGET/information/)
|
misc_texts.path = $$quote($$PREFIX/share/$$TARGET/information/)
|
||||||
|
|
||||||
|
translations.files = $$OUT_PWD/l10n
|
||||||
|
translations.path = $$quote($$PREFIX/share/$$TARGET/)
|
||||||
|
|
||||||
|
INSTALLS += target misc_sql misc_icons misc_feeds \
|
||||||
|
misc_icon misc_plain_icon skins misc_texts \
|
||||||
|
translations
|
||||||
|
}
|
||||||
|
|
||||||
|
# Install files on Linux only.
|
||||||
|
unix:!mac {
|
||||||
desktop_file.files = resources/desktop/$${TARGET}.desktop
|
desktop_file.files = resources/desktop/$${TARGET}.desktop
|
||||||
desktop_file.path = $$quote($$PREFIX/share/applications/)
|
desktop_file.path = $$quote($$PREFIX/share/applications/)
|
||||||
|
|
||||||
desktop_file_autostart.files = resources/desktop/$${TARGET}.desktop.autostart
|
desktop_file_autostart.files = resources/desktop/$${TARGET}.desktop.autostart
|
||||||
desktop_file_autostart.path = $$quote($$PREFIX/share/$${TARGET}/autostart/)
|
desktop_file_autostart.path = $$quote($$PREFIX/share/$${TARGET}/autostart/)
|
||||||
|
|
||||||
translations.files = $$OUT_PWD/l10n
|
INSTALLS += desktop_file desktop_file_autostart
|
||||||
translations.path = $$quote($$PREFIX/share/$$TARGET/)
|
|
||||||
|
|
||||||
INSTALLS += target misc_sql misc_icons misc_feeds \
|
|
||||||
misc_icon misc_plain_icon skins misc_texts \
|
|
||||||
desktop_file desktop_file_autostart translations
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -218,6 +218,16 @@
|
||||||
#define APP_ICON_PATH APP_PREFIX + QString("/share/pixmaps/rssguard.png")
|
#define APP_ICON_PATH APP_PREFIX + QString("/share/pixmaps/rssguard.png")
|
||||||
#define APP_ICON_PLAIN_PATH APP_PREFIX + QString("/share/rssguard/icons/rssguard_plain.png")
|
#define APP_ICON_PLAIN_PATH APP_PREFIX + QString("/share/rssguard/icons/rssguard_plain.png")
|
||||||
#define APP_INITIAL_FEEDS_PATH APP_PREFIX + QString("/share/rssguard/initial_feeds")
|
#define APP_INITIAL_FEEDS_PATH APP_PREFIX + QString("/share/rssguard/initial_feeds")
|
||||||
|
#elif defined(Q_OS_OSX)
|
||||||
|
#define APP_LANG_PATH APP_PREFIX + QString("/share/rssguard/l10n")
|
||||||
|
#define APP_SKIN_PATH APP_PREFIX + QString("/share/rssguard/skins")
|
||||||
|
#define APP_INFO_PATH APP_PREFIX + QString("/share/rssguard/information")
|
||||||
|
#define APP_THEME_PATH APP_PREFIX + QString("/share/rssguard/icons")
|
||||||
|
#define APP_MISC_PATH APP_PREFIX + QString("/share/rssguard/misc")
|
||||||
|
#define APP_ICON_PATH APP_PREFIX + QString("/share/pixmaps/rssguard.png")
|
||||||
|
#define APP_INFO_PATH APP_PREFIX + QString("/share/rssguard/information")
|
||||||
|
#define APP_ICON_PLAIN_PATH APP_PREFIX + QString("/share/rssguard/icons/rssguard_plain.png")
|
||||||
|
#define APP_INITIAL_FEEDS_PATH APP_PREFIX + QString("/share/rssguard/initial_feeds")
|
||||||
#elif defined(Q_OS_WIN)
|
#elif defined(Q_OS_WIN)
|
||||||
#define APP_LANG_PATH QApplication::applicationDirPath() + QString("/l10n")
|
#define APP_LANG_PATH QApplication::applicationDirPath() + QString("/l10n")
|
||||||
#define APP_SKIN_PATH QApplication::applicationDirPath() + QString("/skins")
|
#define APP_SKIN_PATH QApplication::applicationDirPath() + QString("/skins")
|
||||||
|
|
Loading…
Add table
Reference in a new issue