Merge remote branch 'gerrit/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         qlocale_tools.cpp \
72         qmalloc.cpp \
73         qmap.cpp \
74         qmetatype.cpp \
75         qregexp.cpp \
76         qtextcodec.cpp \
77         qutfcodec.cpp \
78         qstring.cpp \
79         qstringlist.cpp \
80         qtemporaryfile.cpp \
81         qtextstream.cpp \
82         qurl.cpp \
83         quuid.cpp \
84         qsettings.cpp \
85         qlibraryinfo.cpp \
86         qsystemerror.cpp \
87         qvariant.cpp \
88         qvector.cpp \
89         qvsnprintf.cpp \
90         qxmlstream.cpp \
91         qxmlutils.cpp
92
93    HEADERS+= \
94         qbitarray.h \
95         qbuffer.h \
96         qbytearray.h \
97         qbytearraymatcher.h \
98         qchar.h \
99         qcryptographichash.h \
100         qdatetime.h \
101         qdatetime_p.h \
102         qdir.h \
103         qdir_p.h \
104         qdiriterator.h \
105         qfile.h \
106         qabstractfileengine.h \
107         qfileinfo.h \
108         qglobal.h \
109         qnumeric.h \
110         qhash.h \
111         qiodevice.h \
112         qlist.h \
113         qlinkedlist.h \
114         qlocale.h \
115         qlocale_tools_p.h \
116         qmalloc.h \
117         qmap.h \
118         qmetatype.h \
119         qregexp.h \
120         qtextcodec.h \
121         qutfcodec.h \
122         qstring.h \
123         qstringlist.h \
124         qstringmatcher.h \
125         qsystemerror_p.h \
126         qtemporaryfile.h \
127         qtextstream.h \
128         qurl.h \
129         quuid.h \
130         qvector.h \
131         qxmlstream.h \
132         qxmlutils.h
133
134     unix {
135         SOURCES += qfilesystemengine_unix.cpp qfilesystemiterator_unix.cpp qfsfileengine_unix.cpp
136         mac {
137           SOURCES += qfilesystemengine_mac.cpp
138           SOURCES += qcore_mac.cpp qsettings_mac.cpp
139           LIBS += -framework ApplicationServices
140         }
141     } else:win32 {
142         SOURCES += qfilesystemengine_win.cpp qfsfileengine_win.cpp qfilesystemiterator_win.cpp qsettings_win.cpp \
143             qsystemlibrary.cpp
144         win32-msvc*:LIBS += ole32.lib advapi32.lib
145         win32-g++*:LIBS += -lole32 -luuid -ladvapi32 -lkernel32
146     }
147
148     qnx {
149         CFLAGS += -fhonor-std
150         LFLAGS += -lcpp
151     }
152     DEFINES *= QT_NO_QOBJECT
153 } else {
154     CONFIG += qt 
155     QT = core
156 }
157 *-g++:profiling {
158   QMAKE_CFLAGS = -pg
159   QMAKE_CXXFLAGS = -pg
160   QMAKE_LFLAGS = -pg
161 }
162
163 PRECOMPILED_HEADER = qmake_pch.h