~ubuntu-branches/ubuntu/raring/mumble/raring

« back to all changes in this revision

Viewing changes to compiler.pri

  • Committer: Bazaar Package Importer
  • Author(s): Thorvald Natvig
  • Date: 2009-12-10 20:29:29 UTC
  • mfrom: (9.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091210202929-3096zttdt0ie9kw6
Tags: 1.2.0-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
CONFIG *= warn_on
2
2
 
3
3
win32 {
4
 
        INCLUDEPATH *= /dev/Boost/include/boost-1_40
 
4
        INCLUDEPATH *= /dev/Boost/include/boost-1_41
5
5
        CONFIG(intelcpp) {
6
6
                DEFINES *= USE_INTEL_IPP
7
7
                DEFINES *= RESTRICT=restrict
64
64
                INCLUDEPATH *= "$$VLD_DIR/include"
65
65
                LIBPATH *= "$$VLD_DIR/lib"
66
66
        }
67
 
} else {
 
67
}
 
68
 
 
69
unix {
68
70
        DEFINES *= RESTRICT=__restrict__
 
71
        QMAKE_CFLAGS *= -Wfatal-errors -Wshadow -Wconversion -Wsign-compare -fvisibility=hidden
 
72
        QMAKE_CXXFLAGS *= -Wfatal-errors -Wshadow -Woverloaded-virtual -Wold-style-cast -Wconversion -Wsign-compare -fvisibility=hidden
 
73
 
69
74
        CONFIG(opt-gcc) {
70
75
                QMAKE_CC = /opt/gcc/bin/gcc
71
76
                QMAKE_CXX = /opt/gcc/bin/g++
72
77
                QMAKE_LINK = /opt/gcc/bin/g++
73
78
        }
74
79
 
75
 
        CONFIG(debug, debug|release) {
76
 
                QMAKE_CFLAGS *= -fstack-protector -fPIE -pie
77
 
                QMAKE_CXXFLAGS *= -fstack-protector -fPIE -pie
78
 
        }
79
 
 
80
 
        QMAKE_CFLAGS *= -Wfatal-errors -Wshadow -Wconversion -Wsign-compare -fvisibility=hidden
81
 
        QMAKE_CXXFLAGS *= -Wfatal-errors -Wshadow -Woverloaded-virtual -Wold-style-cast -Wconversion -Wsign-compare -fvisibility=hidden
82
 
 
83
 
        DEFINES *= _FORTIFY_SOURCE=2
84
 
 
85
 
        !macx {
86
 
                QMAKE_LFLAGS *= -Wl,-z,relro -Wl,-z,now
87
 
        }
88
 
 
89
80
        CONFIG(optgen) {
90
81
                QMAKE_CFLAGS *= -O3 -march=native -ffast-math -ftree-vectorize -fprofile-generate
91
82
                QMAKE_CXXFLAGS *= -O3 -march=native -ffast-math -ftree-vectorize -fprofile-generate
96
87
                QMAKE_CFLAGS *= -O3 -march=native -ffast-math -ftree-vectorize -fprofile-use
97
88
                QMAKE_CXXFLAGS *= -O3 -march=native -ffast-math -ftree-vectorize -fprofile-use
98
89
        }
 
90
}
 
91
 
 
92
unix:!macx {
 
93
        CONFIG(debug, debug|release) {
 
94
                QMAKE_CFLAGS *= -fstack-protector -fPIE -pie
 
95
                QMAKE_CXXFLAGS *= -fstack-protector -fPIE -pie
 
96
                QMAKE_LFLAGS = -Wl,--no-add-needed
 
97
        }
 
98
 
 
99
        DEFINES *= _FORTIFY_SOURCE=2
 
100
        QMAKE_LFLAGS *= -Wl,-z,relro -Wl,-z,now
99
101
 
100
102
        CONFIG(symbols) {
101
103
                QMAKE_CFLAGS *= -g
112
114
                CONFIG += x86 ppc
113
115
        }
114
116
 
115
 
        INCLUDEPATH *= /opt/mumble-1.2/boost-1_40_0/include
 
117
        INCLUDEPATH *= /opt/mumble-1.2/boost-1_41_0/include
116
118
        INCLUDEPATH *= /opt/mumble-1.2/include
117
119
        LIBPATH *= /opt/mumble-1.2/lib
118
120
 
124
126
        QMAKE_CXX = $${XCODE_PATH}/usr/bin/g++-4.2
125
127
        QMAKE_LINK = $${XCODE_PATH}/usr/bin/g++-4.2
126
128
 
127
 
        QMAKE_CFLAGS += -mmacosx-version-min=10.5 -Xarch_i386 -mmmx -Xarch_i386 -msse -Xarch_i386 -msse2
128
 
        QMAKE_CXXFLAGS += -mmacosx-version-min=10.5 -Xarch_i386 -mmmx -Xarch_i386 -msse -Xarch_i386 -msse2
 
129
        QMAKE_CFLAGS += -mmacosx-version-min=10.4 -Xarch_i386 -mmmx -Xarch_i386 -msse -Xarch_i386 -msse2
 
130
        QMAKE_CXXFLAGS += -mmacosx-version-min=10.4 -Xarch_i386 -mmmx -Xarch_i386 -msse -Xarch_i386 -msse2
 
131
        QMAKE_LFLAGS += -Wl,-dead_strip -framework Cocoa -framework Carbon
 
132
 
 
133
        CONFIG(symbols) {
 
134
                QMAKE_CFLAGS *= -gfull -gdwarf-2
 
135
                QMAKE_CXXFLAGS *= -gfull -gdwarf-2
 
136
        }
129
137
}
130
138
 
131
139
CONFIG(no-pch) {