source: src/global.pri @ e755a70

0.6.4
Last change on this file since e755a70 was d6f1e74, checked in by gregor herrmann <gregor@…>, 5 years ago

Make sure we build with -std=c++98 (under Unix and Qt4)

because gcc 4.2.1 on Maemo5 doesn't know c++11, and with this setting we can
prevent accidents also when building the Qt4 variant with a modern compiler.

  • Property mode set to 100644
File size: 930 bytes
Line 
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)
5
6# VERSION
7VERSION = 0.6.4
8DEFINES += VERSION=\\\"$$VERSION\\\"
9
10# Define 'MAEMO' specific CONFIG/DEFINE
11# To handle 'MAEMO' specific soruces/code
12DISTRO = $$system(cat /etc/issue)
13contains( DISTRO, [Mm]aemo ) {
14    # for 'MAEMO' specific source code parts
15    DEFINES += MAEMO
16    # for eg. including 'MAEMO' specific files
17    CONFIG += maemo
18}
19
20contains( DISTRO, [Ii]nternet ) {
21    contains( DISTRO, [Tt]ablet ) {
22        # Nokia N810 device
23        DEFINES += N810
24    }
25}
26
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
31unix: {
32    equals( QT_MAJOR_VERSION, 4 ) {
33        QMAKE_CXXFLAGS += -std=c++98
34    }
35}
Note: See TracBrowser for help on using the repository browser.