Merge remote branch 'staging/master' into refactor
[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 QLIBRARYINFO_EPOCROOT
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/symbian/symbiancommon.cpp \
19            generators/symbian/symmake.cpp \
20            generators/symbian/symmake_abld.cpp \
21            generators/symbian/symmake_sbsv2.cpp \
22            generators/symbian/initprojectdeploy_symbian.cpp \
23            windows/registry.cpp \
24            symbian/epocroot.cpp
25
26 HEADERS += project.h property.h generators/makefile.h \
27            generators/unix/unixmake.h meta.h option.h cachekeys.h \
28            generators/win32/winmakefile.h generators/win32/mingw_make.h generators/projectgenerator.h \
29            generators/makefiledeps.h generators/metamakefile.h generators/mac/pbuilder_pbx.h \
30            generators/xmloutput.h generators/win32/borland_bmake.h generators/win32/msvc_nmake.h \
31            generators/win32/msvc_vcproj.h \
32            generators/win32/msvc_vcxproj.h \
33            generators/win32/msvc_objectmodel.h generators/win32/msbuild_objectmodel.h \
34            generators/symbian/symbiancommon.h \
35            generators/symbian/symmake.h \
36            generators/symbian/symmake_abld.h \
37            generators/symbian/symmake_sbsv2.h \
38            generators/symbian/initprojectdeploy_symbian.h \
39            windows/registry_p.h \
40            symbian/epocroot_p.h
41
42 contains(QT_EDITION, OpenSource) {
43    DEFINES += QMAKE_OPENSOURCE_EDITION
44 }
45
46 bootstrap { #Qt code
47    DEFINES+=QT_NODLL QT_NO_THREAD
48    SOURCES+= \
49         qbitarray.cpp \
50         qbuffer.cpp \
51         qbytearray.cpp \
52         qbytearraymatcher.cpp \
53         qcryptographichash.cpp \
54         qdatetime.cpp \
55         qdir.cpp \
56         qdiriterator.cpp \
57         qfile.cpp \
58         qabstractfileengine.cpp \
59         qfileinfo.cpp \
60         qfilesystementry.cpp \
61         qfilesystemengine.cpp \
62         qfsfileengine.cpp \
63         qfsfileengine_iterator.cpp \
64         qglobal.cpp \
65         qnumeric.cpp \
66         qhash.cpp \
67         qiodevice.cpp \
68         qlist.cpp \
69         qlinkedlist.cpp \
70         qlocale.cpp \
71         qmalloc.cpp \
72         qmap.cpp \
73         qmetatype.cpp \
74         qregexp.cpp \
75         qtextcodec.cpp \
76         qutfcodec.cpp \
77         qstring.cpp \
78         qstringlist.cpp \
79         qtemporaryfile.cpp \
80         qtextstream.cpp \
81         qurl.cpp \
82         quuid.cpp \
83         qsettings.cpp \
84         qlibraryinfo.cpp \
85         qsystemerror.cpp \
86         qvariant.cpp \
87         qvector.cpp \
88         qvsnprintf.cpp \
89         qxmlstream.cpp \
90         qxmlutils.cpp
91
92    HEADERS+= \
93         qbitarray.h \
94         qbuffer.h \
95         qbytearray.h \
96         qbytearraymatcher.h \
97         qchar.h \
98         qcryptographichash.h \
99         qdatetime.h \
100         qdatetime_p.h \
101         qdir.h \
102         qdir_p.h \
103         qdiriterator.h \
104         qfile.h \
105         qabstractfileengine.h \
106         qfileinfo.h \
107         qglobal.h \
108         qnumeric.h \
109         qhash.h \
110         qiodevice.h \
111         qlist.h \
112         qlinkedlist.h \
113         qlocale.h \
114         qmalloc.h \
115         qmap.h \
116         qmetatype.h \
117         qregexp.h \
118         qtextcodec.h \
119         qutfcodec.h \
120         qstring.h \
121         qstringlist.h \
122         qstringmatcher.h \
123         qsystemerror_p.h \
124         qtemporaryfile.h \
125         qtextstream.h \
126         qurl.h \
127         quuid.h \
128         qvector.h \
129         qxmlstream.h \
130         qxmlutils.h
131
132     unix {
133         SOURCES += qfilesystemengine_unix.cpp qfilesystemiterator_unix.cpp qfsfileengine_unix.cpp
134         mac {
135           SOURCES += qfilesystemengine_mac.cpp
136           SOURCES += qcore_mac.cpp qsettings_mac.cpp
137           LIBS += -framework ApplicationServices
138         }
139     } else:win32 {
140         SOURCES += qfilesystemengine_win.cpp qfsfileengine_win.cpp qfilesystemiterator_win.cpp qsettings_win.cpp \
141             qsystemlibrary.cpp
142         win32-msvc*:LIBS += ole32.lib advapi32.lib
143         win32-g++*:LIBS += -lole32 -luuid -ladvapi32 -lkernel32
144     }
145
146     qnx {
147         CFLAGS += -fhonor-std
148         LFLAGS += -lcpp
149     }
150     DEFINES *= QT_NO_QOBJECT
151 } else {
152     CONFIG += qt 
153     QT = core
154 }
155 *-g++:profiling {
156   QMAKE_CFLAGS = -pg
157   QMAKE_CXXFLAGS = -pg
158   QMAKE_LFLAGS = -pg
159 }
160
161 PRECOMPILED_HEADER = qmake_pch.h