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