summaryrefslogtreecommitdiff
path: root/pcr/linphone-desktop/0002-Fix-building-out-of-git.patch
blob: 1ae0505bebb1b5f5cd22926ddc04a6fa5ea5d27d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
From 9eebcb33ed8e56f6ec237b83d426c7d8c2b69e7b Mon Sep 17 00:00:00 2001
From: David P <megver83@parabola.nu>
Date: Wed, 22 Jul 2020 17:55:02 -0400
Subject: [PATCH 2/3] Fix building out-of-git

Based in https://build.opensuse.org/package/view_file/openSUSE:Factory/linphoneqt/linphoneqt-fix-no-git.patch

Signed-off-by: David P <megver83@parabola.nu>
---
 linphone-app/src/app/AppController.cpp | 4 ++++
 linphone-app/src/config.h.cmake        | 2 ++
 2 files changed, 6 insertions(+)

diff --git a/linphone-app/src/app/AppController.cpp b/linphone-app/src/app/AppController.cpp
index e502d9fd..012981d2 100644
--- a/linphone-app/src/app/AppController.cpp
+++ b/linphone-app/src/app/AppController.cpp
@@ -28,6 +28,10 @@
 
 #include "AppController.hpp"
 
+#ifndef LINPHONE_QT_GIT_VERSION
+#define LINPHONE_QT_GIT_VERSION LINPHONE_QT_VERSION
+#endif
+
 #include "components/other/desktop-tools/DesktopTools.hpp"
 // =============================================================================
 
diff --git a/linphone-app/src/config.h.cmake b/linphone-app/src/config.h.cmake
index 093539e0..a4e7e25a 100644
--- a/linphone-app/src/config.h.cmake
+++ b/linphone-app/src/config.h.cmake
@@ -20,6 +20,8 @@
 *
 *******************************************************************************/
 
+#define LINPHONE_QT_VERSION "${PROJECT_VERSION}"
+
 #cmakedefine APPLICATION_DESCRIPTION "${APPLICATION_DESCRIPTION}"
 #cmakedefine APPLICATION_ID "${APPLICATION_ID}"
 #cmakedefine APPLICATION_NAME "${APPLICATION_NAME}"
-- 
2.28.0