1 # This is 'global.pri' file which defines
2 # GLOBAL definitions for the project
3 # include this file in each "*.pro" file, where it's needed
4 # USAGE: include(./global.pri)
8 DEFINES += VERSION=\\\"$$VERSION\\\"
10 # Define 'MAEMO' specific CONFIG/DEFINE
11 # To handle 'MAEMO' specific soruces/code
12 DISTRO = $$system(cat /etc/issue 2>/dev/null || uname -o)
13 contains( DISTRO, [Mm]aemo ) {
14 # for 'MAEMO' specific source code parts
16 # for eg. including 'MAEMO' specific files
20 contains( DISTRO, [Ii]nternet ) {
21 contains( DISTRO, [Tt]ablet ) {
27 # gcc 4.2.1 on Maemo doesn't understand anything newer then c++98.
28 # make sure we explicitly add the flag even when building
29 # with a modern compiler.
30 # Only under Qt4 because Qt5 needs c++11
32 equals( QT_MAJOR_VERSION, 4 ) {
33 QMAKE_CXXFLAGS += -std=c++98