]> ToastFreeware Gitweb - toast/confclerk.git/blobdiff - src/global.pri
bump version after release.
[toast/confclerk.git] / src / global.pri
index 468a0280a7d852c9cc70aaaff1b74d9cf6d1df29..d521162613f56f6a0ef56fceaba476ac38223b25 100644 (file)
@@ -3,9 +3,13 @@
 # include this file in each "*.pro" file, where it's needed
 # USAGE: include(./global.pri)
 
+# VERSION
+VERSION = 0.7.2
+DEFINES += VERSION=\\\"$$VERSION\\\"
+
 # Define 'MAEMO' specific CONFIG/DEFINE
 # To handle 'MAEMO' specific soruces/code
-DISTRO = $$system(cat /etc/issue)
+DISTRO = $$system(cat /etc/issue 2>/dev/null || uname -o)
 contains( DISTRO, [Mm]aemo ) {
     # for 'MAEMO' specific source code parts
     DEFINES += MAEMO
@@ -20,3 +24,12 @@ contains( DISTRO, [Ii]nternet ) {
     }
 }
 
+# gcc 4.2.1 on Maemo doesn't understand anything newer then c++98.
+# make sure we explicitly add the flag even when building
+# with a modern compiler.
+# Only under Qt4 because Qt5 needs c++11
+unix: {
+    equals( QT_MAJOR_VERSION, 4 ) {
+        QMAKE_CXXFLAGS += -std=c++98
+    }
+}