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