Merge remote-tracking branch 'origin/master' into api_changes
[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         qfiledevice.cpp \
46         qfile.cpp \
47         qabstractfileengine.cpp \
48         qfileinfo.cpp \
49         qfilesystementry.cpp \
50         qfilesystemengine.cpp \
51         qfsfileengine.cpp \
52         qfsfileengine_iterator.cpp \
53         qglobal.cpp \
54         qnumeric.cpp \
55         qhash.cpp \
56         qiodevice.cpp \
57         qlist.cpp \
58         qlinkedlist.cpp \
59         qlocale.cpp \
60         qlocale_tools.cpp \
61         qmalloc.cpp \
62         qmap.cpp \
63         qmetatype.cpp \
64         qregexp.cpp \
65         qtextcodec.cpp \
66         qutfcodec.cpp \
67         qstring.cpp \
68         qstringlist.cpp \
69         qtemporaryfile.cpp \
70         qtextstream.cpp \
71         qurl.cpp \
72         quuid.cpp \
73         qsettings.cpp \
74         qlibraryinfo.cpp \
75         qsystemerror.cpp \
76         qvariant.cpp \
77         qvector.cpp \
78         qvsnprintf.cpp \
79         qxmlstream.cpp \
80         qxmlutils.cpp \
81         qlogging.cpp
82
83    HEADERS+= \
84         qbitarray.h \
85         qbuffer.h \
86         qbytearray.h \
87         qbytearraymatcher.h \
88         qchar.h \
89         qcryptographichash.h \
90         qdatetime.h \
91         qdatetime_p.h \
92         qdir.h \
93         qdir_p.h \
94         qdiriterator.h \
95         qfile.h \
96         qabstractfileengine_p.h \
97         qfileinfo.h \
98         qglobal.h \
99         qnumeric.h \
100         qhash.h \
101         qiodevice.h \
102         qlist.h \
103         qlinkedlist.h \
104         qlocale.h \
105         qlocale_tools_p.h \
106         qmalloc.h \
107         qmap.h \
108         qmetatype.h \
109         qregexp.h \
110         qtextcodec.h \
111         qutfcodec.h \
112         qstring.h \
113         qstringlist.h \
114         qstringmatcher.h \
115         qsystemerror_p.h \
116         qtemporaryfile.h \
117         qtextstream.h \
118         qurl.h \
119         quuid.h \
120         qvector.h \
121         qxmlstream.h \
122         qxmlutils.h
123
124     unix {
125         SOURCES += qfilesystemengine_unix.cpp qfilesystemiterator_unix.cpp qfsfileengine_unix.cpp
126         mac {
127           SOURCES += qfilesystemengine_mac.cpp
128           SOURCES += qcore_mac.cpp qsettings_mac.cpp
129           LIBS += -framework ApplicationServices
130         }
131     } else:win32 {
132         SOURCES += qfilesystemengine_win.cpp qfsfileengine_win.cpp qfilesystemiterator_win.cpp qsettings_win.cpp \
133             qsystemlibrary.cpp
134         win32-msvc*:LIBS += ole32.lib advapi32.lib
135         win32-g++*:LIBS += -lole32 -luuid -ladvapi32 -lkernel32
136     }
137
138     qnx {
139         CFLAGS += -fhonor-std
140         LFLAGS += -lcpp
141     }
142     DEFINES *= QT_NO_QOBJECT
143 } else {
144     CONFIG += qt 
145     QT = core
146 }
147 *-g++:profiling {
148   QMAKE_CFLAGS = -pg
149   QMAKE_CXXFLAGS = -pg
150   QMAKE_LFLAGS = -pg
151 }
152
153 PRECOMPILED_HEADER = qmake_pch.h