mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-02-07 15:08:24 +00:00
Use git version in the application.
This commit is contained in:
parent
f47e8e29f5
commit
715d729ba9
2 changed files with 7 additions and 4 deletions
|
|
@ -21,7 +21,7 @@
|
|||
################################################################################
|
||||
|
||||
cmake_minimum_required(VERSION 3.1)
|
||||
project(linphoneqt)
|
||||
project(linphoneqt VERSION 3.9.0)
|
||||
|
||||
set(EXECUTABLE_NAME linphone)
|
||||
set(TARGET_NAME linphone-qt)
|
||||
|
|
@ -262,6 +262,8 @@ if(WIN32)
|
|||
else()
|
||||
add_executable(${TARGET_NAME} ${SOURCES} ${HEADERS} ${RESOURCES})
|
||||
endif()
|
||||
bc_git_version(${TARGET_NAME} ${PROJECT_VERSION})
|
||||
add_dependencies(${TARGET_NAME} ${TARGET_NAME}-git-version)
|
||||
add_dependencies(${TARGET_NAME} update_translations)
|
||||
if(NOT WIN32)
|
||||
add_dependencies(update_translations check_qml)
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@
|
|||
#include "translator/DefaultTranslator.hpp"
|
||||
|
||||
#include "App.hpp"
|
||||
#include "gitversion.h"
|
||||
|
||||
#define DEFAULT_LOCALE "en"
|
||||
|
||||
|
|
@ -52,8 +53,8 @@
|
|||
|
||||
#define SELF_TEST_DELAY 60000
|
||||
|
||||
#ifndef LINPHONE_VERSION
|
||||
#define LINPHONE_VERSION "unknown"
|
||||
#ifndef LINPHONE_QT_GIT_VERSION
|
||||
#define LINPHONE_QT_GIT_VERSION "unknown"
|
||||
#endif // ifndef LINPHONE_VERSION
|
||||
|
||||
using namespace std;
|
||||
|
|
@ -65,7 +66,7 @@ inline bool installLocale (App &app, QTranslator &translator, const QLocale &loc
|
|||
}
|
||||
|
||||
App::App (int &argc, char *argv[]) : SingleApplication(argc, argv, true) {
|
||||
setApplicationVersion(LINPHONE_VERSION);
|
||||
setApplicationVersion(LINPHONE_QT_GIT_VERSION);
|
||||
setWindowIcon(QIcon(WINDOW_ICON_PATH));
|
||||
|
||||
// List available locales.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue