]> ToastFreeware Gitweb - toast/confclerk.git/blobdiff - src/global.pri
bump version from 0.7.0 to 0.7.1 after release
[toast/confclerk.git] / src / global.pri
index 468a0280a7d852c9cc70aaaff1b74d9cf6d1df29..4deccb0c503afcb82e58f1bb218068960b07342e 100644 (file)
@@ -3,6 +3,10 @@
 # include this file in each "*.pro" file, where it's needed
 # USAGE: include(./global.pri)
 
+# VERSION
+VERSION = 0.7.1
+DEFINES += VERSION=\\\"$$VERSION\\\"
+
 # Define 'MAEMO' specific CONFIG/DEFINE
 # To handle 'MAEMO' specific soruces/code
 DISTRO = $$system(cat /etc/issue)
@@ -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
+    }
+}