source: trunk/qmake/qmake.pri@ 392

Last change on this file since 392 was 389, checked in by Dmitry A. Kuminov, 16 years ago

qmake: Adopted qmake.pro for OS/2. Also include src/qt_targerts.pri to embed the version information into the executable.

File size: 4.0 KB
Line 
1CONFIG += depend_includepath
2
3QMAKE_INCREMENTAL =
4SKIP_DEPENDS += qconfig.h qmodules.h
5DEFINES += 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
9SOURCES += 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_dsp.cpp generators/win32/msvc_vcproj.cpp \
16 generators/win32/msvc_objectmodel.cpp generators/os2/gnumake.cpp
17HEADERS += project.h property.h generators/makefile.h \
18 generators/unix/unixmake.h meta.h option.h cachekeys.h \
19 generators/win32/winmakefile.h generators/projectgenerator.h \
20 generators/makefiledeps.h generators/metamakefile.h generators/mac/pbuilder_pbx.h \
21 generators/xmloutput.h generators/win32/borland_bmake.h generators/win32/msvc_nmake.h \
22 generators/win32/msvc_dsp.h generators/win32/msvc_vcproj.h \
23 generators/win32/mingw_make.h generators/win32/msvc_objectmodel.h \
24 generators/os2/gnumake.h
25
26contains(QT_EDITION, OpenSource) {
27 DEFINES += QMAKE_OPENSOURCE_EDITION
28}
29
30bootstrap { #Qt code
31 DEFINES+=QT_NODLL QT_NO_THREAD
32 SOURCES+= \
33 qbitarray.cpp \
34 qbuffer.cpp \
35 qbytearray.cpp \
36 qbytearraymatcher.cpp \
37 qcryptographichash.cpp \
38 qdatetime.cpp \
39 qdir.cpp \
40 qdiriterator.cpp \
41 qfile.cpp \
42 qabstractfileengine.cpp \
43 qfileinfo.cpp \
44 qfsfileengine.cpp \
45 qfsfileengine_iterator.cpp \
46 qglobal.cpp \
47 qnumeric.cpp \
48 qhash.cpp \
49 qiodevice.cpp \
50 qlistdata.cpp \
51 qlinkedlist.cpp \
52 qlocale.cpp \
53 qmalloc.cpp \
54 qmap.cpp \
55 qmetatype.cpp \
56 qregexp.cpp \
57 qstring.cpp \
58 qstringlist.cpp \
59 qtemporaryfile.cpp \
60 qtextstream.cpp \
61 qurl.cpp \
62 quuid.cpp \
63 qsettings.cpp \
64 qlibraryinfo.cpp \
65 qvariant.cpp \
66 qvector.cpp \
67 qvsnprintf.cpp
68
69 HEADERS+= \
70 qbitarray.h \
71 qbuffer.h \
72 qbytearray.h \
73 qbytearraymatcher.h \
74 qchar.h \
75 qcryptographichash.h \
76 qdatetime.h \
77 qdatetime_p.h \
78 qdir.h \
79 qdiriterator.h \
80 qfile.h \
81 qabstractfileengine.h \
82 qfileinfo.h \
83 qfileinfo_p.h \
84 qglobal.h \
85 qnumeric.h \
86 qhash.h \
87 qiodevice.h \
88 qlist.h \
89 qlinkedlist.h \
90 qlocale.h \
91 qmalloc.h \
92 qmap.h \
93 qmetatype.h \
94 qregexp.h \
95 qstring.h \
96 qstringlist.h \
97 qstringmatcher.h \
98 qtemporaryfile.h \
99 qtextstream.h \
100 qurl.h \
101 quuid.h \
102 qvector.h
103
104 unix {
105 SOURCES += qfsfileengine_unix.cpp qfsfileengine_iterator_unix.cpp
106 mac {
107 SOURCES += qcore_mac.cpp qsettings_mac.cpp
108 QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.3 #enables weak linking for 10.3 (exported)
109 LIBS += -framework ApplicationServices
110 }
111 } else:win32 {
112 SOURCES += qfsfileengine_win.cpp qfsfileengine_iterator_win.cpp qsettings_win.cpp
113 win32-msvc*:LIBS += ole32.lib advapi32.lib
114 } else:os2 {
115 SOURCES += qfsfileengine_os2.cpp qfsfileengine_iterator_os2.cpp qsettings_os2.cpp
116 LIBS += -lregistry.dll
117 }
118
119 qnx {
120 CFLAGS += -fhonor-std
121 LFLAGS += -lcpp
122 }
123 DEFINES *= QT_NO_QOBJECT
124 include($$QT_SOURCE_TREE/src/script/script.pri)
125} else {
126 CONFIG += qt
127 QT = core script
128}
129*-g++:profiling {
130 QMAKE_CFLAGS = -pg
131 QMAKE_CXXFLAGS = -pg
132 QMAKE_LFLAGS = -pg
133}
134
135PRECOMPILED_HEADER = qmake_pch.h
Note: See TracBrowser for help on using the repository browser.