add $$native_path() function
[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
19 HEADERS += project.h property.h generators/makefile.h \
20            generators/unix/unixmake.h meta.h option.h cachekeys.h \
21            generators/win32/winmakefile.h generators/win32/mingw_make.h generators/projectgenerator.h \
22            generators/makefiledeps.h generators/metamakefile.h generators/mac/pbuilder_pbx.h \
23            generators/xmloutput.h generators/win32/borland_bmake.h generators/win32/msvc_nmake.h \
24            generators/win32/msvc_vcproj.h \
25            generators/win32/msvc_vcxproj.h \
26            generators/win32/msvc_objectmodel.h generators/win32/msbuild_objectmodel.h \
27            generators/integrity/gbuild.h
28
29 contains(QT_EDITION, OpenSource) {
30    DEFINES += QMAKE_OPENSOURCE_EDITION
31 }
32
33 bootstrap { #Qt code
34    DEFINES+=QT_NODLL QT_NO_THREAD
35    SOURCES+= \
36         qbitarray.cpp \
37         qbuffer.cpp \
38         qarraydata.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         quuid.cpp \
72         qsettings.cpp \
73         qlibraryinfo.cpp \
74         qsystemerror.cpp \
75         qvariant.cpp \
76         qvector.cpp \
77         qvsnprintf.cpp \
78         qxmlstream.cpp \
79         qxmlutils.cpp \
80         qlogging.cpp
81
82    HEADERS+= \
83         qbitarray.h \
84         qbuffer.h \
85         qarraydata.h \
86         qbytearray.h \
87         qarraydataops.h \
88         qarraydatapointer.h \
89         qbytearraymatcher.h \
90         qchar.h \
91         qcryptographichash.h \
92         qdatetime.h \
93         qdatetime_p.h \
94         qdir.h \
95         qdir_p.h \
96         qdiriterator.h \
97         qfile.h \
98         qabstractfileengine_p.h \
99         qfileinfo.h \
100         qglobal.h \
101         qnumeric.h \
102         qhash.h \
103         qiodevice.h \
104         qlist.h \
105         qlinkedlist.h \
106         qlocale.h \
107         qlocale_tools_p.h \
108         qmalloc.h \
109         qmap.h \
110         qmetatype.h \
111         qregexp.h \
112         qtextcodec.h \
113         qutfcodec.h \
114         qstring.h \
115         qstringlist.h \
116         qstringmatcher.h \
117         qsystemerror_p.h \
118         qtemporaryfile.h \
119         qtextstream.h \
120         quuid.h \
121         qvector.h \
122         qxmlstream.h \
123         qxmlutils.h
124
125     unix {
126         SOURCES += qfilesystemengine_unix.cpp qfilesystemiterator_unix.cpp qfsfileengine_unix.cpp
127         mac {
128           SOURCES += qfilesystemengine_mac.cpp
129           SOURCES += qcore_mac.cpp qsettings_mac.cpp
130           LIBS += -framework ApplicationServices
131         }
132     } else:win32 {
133         SOURCES += qfilesystemengine_win.cpp qfsfileengine_win.cpp qfilesystemiterator_win.cpp qsettings_win.cpp \
134             qsystemlibrary.cpp
135         win32-msvc*:LIBS += ole32.lib advapi32.lib
136         win32-g++*:LIBS += -lole32 -luuid -ladvapi32 -lkernel32
137     }
138
139     qnx {
140         CFLAGS += -fhonor-std
141         LFLAGS += -lcpp
142     }
143     DEFINES *= QT_NO_QOBJECT
144 } else {
145     CONFIG += qt 
146     QT = core
147 }
148 *-g++:profiling {
149   QMAKE_CFLAGS = -pg
150   QMAKE_CXXFLAGS = -pg
151   QMAKE_LFLAGS = -pg
152 }
153
154 PRECOMPILED_HEADER = qmake_pch.h