Allow customization of qDebug output at runtime
[profile/ivi/qtbase.git] / qmake / qmake.pri
1 CONFIG += depend_includepath
2
3 QMAKE_INCREMENTAL =
4 SKIP_DEPENDS += qconfig.h qmodules.h
5 DEFINES += QT_NO_TEXTCODEC QT_NO_LIBRARY QT_NO_STL QT_NO_COMPRESS QT_NO_UNICODETABLES \
6            QT_NO_GEOM_VARIANT QT_NO_DATASTREAM
7
8 #qmake code
9 SOURCES += project.cpp property.cpp main.cpp generators/makefile.cpp \
10            generators/unix/unixmake2.cpp generators/unix/unixmake.cpp meta.cpp \
11            option.cpp generators/win32/winmakefile.cpp generators/win32/mingw_make.cpp \
12            generators/makefiledeps.cpp generators/metamakefile.cpp generators/mac/pbuilder_pbx.cpp \
13            generators/xmloutput.cpp generators/win32/borland_bmake.cpp \
14            generators/win32/msvc_nmake.cpp generators/projectgenerator.cpp \
15            generators/win32/msvc_vcproj.cpp \
16            generators/win32/msvc_vcxproj.cpp \
17            generators/win32/msvc_objectmodel.cpp generators/win32/msbuild_objectmodel.cpp \
18            generators/integrity/gbuild.cpp
19
20 HEADERS += project.h property.h generators/makefile.h \
21            generators/unix/unixmake.h meta.h option.h cachekeys.h \
22            generators/win32/winmakefile.h generators/win32/mingw_make.h generators/projectgenerator.h \
23            generators/makefiledeps.h generators/metamakefile.h generators/mac/pbuilder_pbx.h \
24            generators/xmloutput.h generators/win32/borland_bmake.h generators/win32/msvc_nmake.h \
25            generators/win32/msvc_vcproj.h \
26            generators/win32/msvc_vcxproj.h \
27            generators/win32/msvc_objectmodel.h generators/win32/msbuild_objectmodel.h \
28            generators/integrity/gbuild.h
29
30 contains(QT_EDITION, OpenSource) {
31    DEFINES += QMAKE_OPENSOURCE_EDITION
32 }
33
34 bootstrap { #Qt code
35    DEFINES+=QT_NODLL QT_NO_THREAD
36    SOURCES+= \
37         qbitarray.cpp \
38         qbuffer.cpp \
39         qbytearray.cpp \
40         qbytearraymatcher.cpp \
41         qcryptographichash.cpp \
42         qdatetime.cpp \
43         qdir.cpp \
44         qdiriterator.cpp \
45         qfile.cpp \
46         qabstractfileengine.cpp \
47         qfileinfo.cpp \
48         qfilesystementry.cpp \
49         qfilesystemengine.cpp \
50         qfsfileengine.cpp \
51         qfsfileengine_iterator.cpp \
52         qglobal.cpp \
53         qnumeric.cpp \
54         qhash.cpp \
55         qiodevice.cpp \
56         qlist.cpp \
57         qlinkedlist.cpp \
58         qlocale.cpp \
59         qlocale_tools.cpp \
60         qmalloc.cpp \
61         qmap.cpp \
62         qmetatype.cpp \
63         qregexp.cpp \
64         qtextcodec.cpp \
65         qutfcodec.cpp \
66         qstring.cpp \
67         qstringlist.cpp \
68         qtemporaryfile.cpp \
69         qtextstream.cpp \
70         qurl.cpp \
71         quuid.cpp \
72         qsettings.cpp \
73         qlibraryinfo.cpp \
74         qsystemerror.cpp \
75         qvariant.cpp \
76         qvector.cpp \
77         qvsnprintf.cpp \
78         qxmlstream.cpp \
79         qxmlutils.cpp \
80         qlogging.cpp
81
82    HEADERS+= \
83         qbitarray.h \
84         qbuffer.h \
85         qbytearray.h \
86         qbytearraymatcher.h \
87         qchar.h \
88         qcryptographichash.h \
89         qdatetime.h \
90         qdatetime_p.h \
91         qdir.h \
92         qdir_p.h \
93         qdiriterator.h \
94         qfile.h \
95         qabstractfileengine.h \
96         qfileinfo.h \
97         qglobal.h \
98         qnumeric.h \
99         qhash.h \
100         qiodevice.h \
101         qlist.h \
102         qlinkedlist.h \
103         qlocale.h \
104         qlocale_tools_p.h \
105         qmalloc.h \
106         qmap.h \
107         qmetatype.h \
108         qregexp.h \
109         qtextcodec.h \
110         qutfcodec.h \
111         qstring.h \
112         qstringlist.h \
113         qstringmatcher.h \
114         qsystemerror_p.h \
115         qtemporaryfile.h \
116         qtextstream.h \
117         qurl.h \
118         quuid.h \
119         qvector.h \
120         qxmlstream.h \
121         qxmlutils.h
122
123     unix {
124         SOURCES += qfilesystemengine_unix.cpp qfilesystemiterator_unix.cpp qfsfileengine_unix.cpp
125         mac {
126           SOURCES += qfilesystemengine_mac.cpp
127           SOURCES += qcore_mac.cpp qsettings_mac.cpp
128           LIBS += -framework ApplicationServices
129         }
130     } else:win32 {
131         SOURCES += qfilesystemengine_win.cpp qfsfileengine_win.cpp qfilesystemiterator_win.cpp qsettings_win.cpp \
132             qsystemlibrary.cpp
133         win32-msvc*:LIBS += ole32.lib advapi32.lib
134         win32-g++*:LIBS += -lole32 -luuid -ladvapi32 -lkernel32
135     }
136
137     qnx {
138         CFLAGS += -fhonor-std
139         LFLAGS += -lcpp
140     }
141     DEFINES *= QT_NO_QOBJECT
142 } else {
143     CONFIG += qt 
144     QT = core
145 }
146 *-g++:profiling {
147   QMAKE_CFLAGS = -pg
148   QMAKE_CXXFLAGS = -pg
149   QMAKE_LFLAGS = -pg
150 }
151
152 PRECOMPILED_HEADER = qmake_pch.h