From a130b1425c8d0f9e2087471fdb608f3e1cee7e23 Mon Sep 17 00:00:00 2001 From: Volker Fischer Date: Sun, 24 Mar 2013 08:54:11 +0000 Subject: [PATCH] add the version number in the qt project file rather than in the global.h --- llcon.pro | 5 ++++- src/global.h | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/llcon.pro b/llcon.pro index 09c0fe3e..5514fb16 100755 --- a/llcon.pro +++ b/llcon.pro @@ -1,3 +1,5 @@ +VERSION = 3.3.1cvs + TARGET = Jamulus CONFIG += qt \ @@ -15,7 +17,8 @@ INCLUDEPATH += src \ libs/opus/silk \ libs/opus/silk/float -DEFINES += OPUS_BUILD \ +DEFINES += APP_VERSION=\\\"$$VERSION\\\" \ + OPUS_BUILD \ USE_ALLOCA \ CUSTOM_MODES \ _REENTRANT diff --git a/src/global.h b/src/global.h index 4a4e83c9..635e162c 100755 --- a/src/global.h +++ b/src/global.h @@ -69,9 +69,9 @@ LED bar: lbr //#define _DEBUG_ #undef _DEBUG_ -// version and application name (always use this version) +// version and application name (use version from qt prject file) #undef VERSION -#define VERSION "3.3.1cvs" +#define VERSION APP_VERSION #define APP_NAME "Jamulus" // Windows registry key name of auto run entry for the server