45 lines
1.9 KiB
C
45 lines
1.9 KiB
C
#ifndef DEFS_H
|
|
#define DEFS_H
|
|
|
|
|
|
#define CMAKE_VERSION "@CMAKE_VERSION@"
|
|
#define CMAKE_SYSTEM "@CMAKE_SYSTEM@"
|
|
|
|
#define APP_NAME "@APP_NAME@"
|
|
#define APP_LOW_NAME "@APP_LOW_NAME@"
|
|
#define APP_LOW_H_NAME ".@APP_LOW_NAME@"
|
|
#define APP_AUTHORS "@APP_AUTHOR@"
|
|
#define APP_URL "@APP_URL@"
|
|
#define APP_VERSION "@APP_VERSION@"
|
|
|
|
#define APP_CFG_PATH "data/config/config.ini"
|
|
#define APP_CFG_GUI "gui"
|
|
#define APP_CFG_GEN "general"
|
|
#define APP_CFG_LANG "localization"
|
|
|
|
#define APP_DB_PATH "data/storage/database.db"
|
|
#define APP_PREFIX "@CMAKE_INSTALL_PREFIX@"
|
|
#define APP_REVISION "@APP_REVISION@"
|
|
|
|
#define APP_IS_RUNNING "app_is_running"
|
|
|
|
// TODO: OS/2 support missing. No way to test this w/o OS/2 machine.
|
|
#if defined(Q_OS_LINUX)
|
|
#define APP_LANG_PATH APP_PREFIX + QString("/share/qonverter/l10n")
|
|
#define APP_SKIN_PATH APP_PREFIX + QString("/share/qonverter/skins")
|
|
#define APP_INFO_PATH APP_PREFIX + QString("/share/qonverter/information")
|
|
#define APP_THEME_PATH APP_PREFIX + QString("/share/qonverter/themes")
|
|
#elif defined(Q_OS_MAC)
|
|
#define APP_LANG_PATH QApplication::applicationDirPath() + "/../Resources/l10n"
|
|
#define APP_SKIN_PATH QApplication::applicationDirPath() + "/../Resources/skins"
|
|
#define APP_PLUGIN_PATH QApplication::applicationDirPath() + "/../Resources/plugins"
|
|
#define APP_INFO_PATH QApplication::applicationDirPath() + "/../Resources/information"
|
|
#define APP_THEME_PATH QApplication::applicationDirPath() + "/../Resources/themes"
|
|
#elif defined(Q_OS_WIN) || defined(Q_OS_OS2)
|
|
#define APP_LANG_PATH QApplication::applicationDirPath() + QString("/l10n")
|
|
#define APP_SKIN_PATH QApplication::applicationDirPath() + QString("/skins")
|
|
#define APP_INFO_PATH QApplication::applicationDirPath()
|
|
#define APP_THEME_PATH QApplication::applicationDirPath() + QString("/themes")
|
|
#endif
|
|
|
|
#endif // DEFS_H
|