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