]> ToastFreeware Gitweb - toast/confclerk.git/blobdiff - src/global.pri
Fallback to uname -o for systems without /etc/issue
[toast/confclerk.git] / src / global.pri
index 1a72c7ee73694e2bc122dc2e7ef820bfac9393d8..bebbbb41fae23ef25504718960b49fa5bb43043a 100644 (file)
@@ -4,12 +4,12 @@
 # USAGE: include(./global.pri)
 
 # VERSION
-VERSION = 0.5.0
+VERSION = 0.7.1
 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
@@ -24,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
+    }
+}