1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-20 03:37:47 +00:00

Expose Astra, physis and libphysis version

This commit is contained in:
Joshua Goins 2023-07-30 10:33:07 -04:00
parent 6142429623
commit cb24aece06
3 changed files with 15 additions and 3 deletions

View file

@ -32,6 +32,11 @@ include(ECMPoQmTools)
include(KDEGitCommitHooks)
include(KDEClangFormat)
ecm_setup_version(${PROJECT_VERSION}
VARIABLE_PREFIX ASTRA
VERSION_HEADER ${CMAKE_CURRENT_BINARY_DIR}/astra-version.h
)
find_package(Qt5 ${QT_MIN_VERSION} NO_MODULE REQUIRED COMPONENTS
Core
Widgets

View file

@ -32,7 +32,7 @@ target_sources(astra PRIVATE
resources.qrc)
kconfig_add_kcfg_files(astra GENERATE_MOC config.kcfgc accountconfig.kcfgc profileconfig.kcfgc)
target_include_directories(astra PRIVATE include)
target_include_directories(astra PRIVATE include ${CMAKE_BINARY_DIR})
target_link_libraries(astra PRIVATE
physis
cotp

View file

@ -5,6 +5,7 @@
#include <QCommandLineParser>
#include <QQuickStyle>
#include "astra-version.h"
#include "gameinstaller.h"
#include "launchercore.h"
#include "sapphirelauncher.h"
@ -22,10 +23,16 @@ int main(int argc, char *argv[])
KLocalizedString::setApplicationDomain("astra");
KAboutData about(QStringLiteral("astra"), i18n("Astra"), "0.5.0", i18n("FFXIV Launcher"), KAboutLicense::GPL_V3, i18n("© 2023 Joshua Goins"));
KAboutData about(QStringLiteral("astra"),
i18n("Astra"),
QStringLiteral(ASTRA_VERSION_STRING),
i18n("FFXIV Launcher"),
KAboutLicense::GPL_V3,
i18n("© 2023 Joshua Goins"));
about.addAuthor(i18n("Joshua Goins"), i18n("Maintainer"), QStringLiteral("josh@redstrate.com"));
about.setHomepage("https://xiv.zone/astra");
about.addComponent("physis");
about.addComponent("physis", "Library to access FFXIV data", physis_get_physis_version(), "https://xiv.zone/physis", KAboutLicense::GPL_V3);
about.addComponent("libphysis", "C bindings for physis", physis_get_libphysis_version(), "", KAboutLicense::GPL_V3);
about.setDesktopFileName("com.redstrate.astra");
about.setBugAddress("https://lists.sr.ht/~redstrate/public-inbox");
about.setComponentName("astra");