2013-06-12 17:38:15 +00:00
|
|
|
# This project is not actually used to build qmake, but to support development
|
|
|
|
# with Qt Creator. The real build system is made up by the Makefile templates
|
|
|
|
# and the configures.
|
2011-04-27 10:05:43 +00:00
|
|
|
|
2012-02-03 21:13:12 +00:00
|
|
|
option(host_build)
|
2019-02-01 14:16:00 +00:00
|
|
|
CONFIG += cmdline
|
|
|
|
CONFIG -= qt
|
2018-08-02 14:41:14 +00:00
|
|
|
|
2013-10-31 15:39:55 +00:00
|
|
|
DEFINES += \
|
2018-08-02 14:41:14 +00:00
|
|
|
PROEVALUATOR_FULL \
|
|
|
|
QT_BOOTSTRAPPED \
|
2013-10-31 15:39:55 +00:00
|
|
|
QT_BUILD_QMAKE \
|
2020-04-03 09:49:27 +00:00
|
|
|
QT_USE_QSTRINGBUILDER \
|
2016-05-11 09:53:02 +00:00
|
|
|
QT_NO_FOREACH \
|
2018-08-02 14:41:14 +00:00
|
|
|
$$shell_quote(QT_VERSION_STR=\"$$QT_VERSION\") \
|
|
|
|
QT_VERSION_MAJOR=$$QT_MAJOR_VERSION \
|
|
|
|
QT_VERSION_MINOR=$$QT_MINOR_VERSION \
|
2020-05-12 09:09:26 +00:00
|
|
|
QT_VERSION_PATCH=$$QT_PATCH_VERSION \
|
|
|
|
PCRE2_DISABLE_JIT
|
2018-08-02 14:41:14 +00:00
|
|
|
|
|
|
|
win32: DEFINES += \
|
|
|
|
UNICODE \
|
|
|
|
_ENABLE_EXTENDED_ALIGNED_STORAGE \
|
|
|
|
_CRT_SECURE_NO_WARNINGS _SCL_SECURE_NO_WARNINGS
|
|
|
|
|
|
|
|
# qmake code
|
|
|
|
|
|
|
|
PRECOMPILED_HEADER = qmake_pch.h
|
|
|
|
|
|
|
|
INCLUDEPATH += \
|
|
|
|
. \
|
|
|
|
library \
|
|
|
|
generators \
|
|
|
|
generators/unix \
|
|
|
|
generators/win32 \
|
2019-10-29 12:50:22 +00:00
|
|
|
generators/mac \
|
|
|
|
../src/3rdparty/tinycbor/src
|
2018-08-02 14:41:14 +00:00
|
|
|
|
|
|
|
SOURCES += \
|
|
|
|
main.cpp \
|
|
|
|
meta.cpp \
|
|
|
|
option.cpp \
|
|
|
|
project.cpp \
|
|
|
|
property.cpp \
|
|
|
|
library/ioutils.cpp \
|
|
|
|
library/proitems.cpp \
|
|
|
|
library/qmakebuiltins.cpp \
|
|
|
|
library/qmakeevaluator.cpp \
|
|
|
|
library/qmakeglobals.cpp \
|
|
|
|
library/qmakeparser.cpp \
|
|
|
|
library/qmakevfs.cpp \
|
|
|
|
generators/makefile.cpp \
|
|
|
|
generators/makefiledeps.cpp \
|
|
|
|
generators/metamakefile.cpp \
|
|
|
|
generators/projectgenerator.cpp \
|
|
|
|
generators/xmloutput.cpp \
|
|
|
|
generators/mac/pbuilder_pbx.cpp \
|
|
|
|
generators/unix/unixmake.cpp \
|
|
|
|
generators/unix/unixmake2.cpp \
|
|
|
|
generators/win32/mingw_make.cpp \
|
|
|
|
generators/win32/msbuild_objectmodel.cpp \
|
|
|
|
generators/win32/msvc_nmake.cpp \
|
|
|
|
generators/win32/msvc_objectmodel.cpp \
|
|
|
|
generators/win32/msvc_vcproj.cpp \
|
|
|
|
generators/win32/msvc_vcxproj.cpp \
|
|
|
|
generators/win32/winmakefile.cpp
|
|
|
|
|
|
|
|
HEADERS += \
|
|
|
|
cachekeys.h \
|
|
|
|
meta.h \
|
|
|
|
option.h \
|
|
|
|
project.h \
|
|
|
|
property.h \
|
|
|
|
library/ioutils.h \
|
|
|
|
library/proitems.h \
|
|
|
|
library/qmake_global.h \
|
|
|
|
library/qmakeevaluator.h \
|
|
|
|
library/qmakeevaluator_p.h \
|
|
|
|
library/qmakeglobals.h \
|
|
|
|
library/qmakeparser.h \
|
|
|
|
library/qmakevfs.h \
|
|
|
|
generators/makefile.h \
|
|
|
|
generators/makefiledeps.h \
|
|
|
|
generators/metamakefile.h \
|
|
|
|
generators/projectgenerator.h \
|
|
|
|
generators/xmloutput.h \
|
|
|
|
generators/mac/pbuilder_pbx.h \
|
|
|
|
generators/unix/unixmake.h \
|
|
|
|
generators/win32/mingw_make.h \
|
|
|
|
generators/win32/msbuild_objectmodel.h \
|
|
|
|
generators/win32/msvc_nmake.h \
|
|
|
|
generators/win32/msvc_objectmodel.h \
|
|
|
|
generators/win32/msvc_vcproj.h \
|
|
|
|
generators/win32/msvc_vcxproj.h \
|
|
|
|
generators/win32/winmakefile.h
|
|
|
|
|
|
|
|
# qt code
|
|
|
|
|
|
|
|
bp = $$shadowed(..)
|
|
|
|
INCLUDEPATH += \
|
|
|
|
$$bp/include $$bp/include/QtCore \
|
2018-12-21 11:17:25 +00:00
|
|
|
$$bp/include/QtCore/$$QT_VERSION $$bp/include/QtCore/$$QT_VERSION/QtCore \
|
2018-08-02 14:41:14 +00:00
|
|
|
$$bp/src/corelib/global
|
2011-04-27 10:05:43 +00:00
|
|
|
|
2013-10-31 15:39:55 +00:00
|
|
|
VPATH += \
|
|
|
|
../src/corelib/global \
|
2020-04-03 13:39:37 +00:00
|
|
|
../src/corelib/text \
|
2013-10-31 15:39:55 +00:00
|
|
|
../src/corelib/tools \
|
|
|
|
../src/corelib/kernel \
|
|
|
|
../src/corelib/plugin \
|
|
|
|
../src/corelib/io \
|
2020-04-03 13:39:37 +00:00
|
|
|
../src/corelib/time \
|
2018-08-02 14:41:14 +00:00
|
|
|
../src/corelib/serialization
|
2012-07-26 17:47:33 +00:00
|
|
|
|
2018-08-02 14:41:14 +00:00
|
|
|
SOURCES += \
|
|
|
|
qabstractfileengine.cpp \
|
|
|
|
qarraydata.cpp \
|
|
|
|
qbitarray.cpp \
|
|
|
|
qbuffer.cpp \
|
|
|
|
qbytearray.cpp \
|
|
|
|
qbytearraymatcher.cpp \
|
2017-01-14 16:53:31 +00:00
|
|
|
qcalendar.cpp \
|
2019-10-29 12:50:22 +00:00
|
|
|
qcborstreamwriter.cpp \
|
2019-06-19 11:43:00 +00:00
|
|
|
qcborvalue.cpp \
|
2018-08-02 14:41:14 +00:00
|
|
|
qcryptographichash.cpp \
|
|
|
|
qdatetime.cpp \
|
|
|
|
qdir.cpp \
|
|
|
|
qdiriterator.cpp \
|
|
|
|
qfile.cpp \
|
|
|
|
qfiledevice.cpp \
|
|
|
|
qfileinfo.cpp \
|
|
|
|
qfilesystemengine.cpp \
|
|
|
|
qfilesystementry.cpp \
|
|
|
|
qfsfileengine.cpp \
|
|
|
|
qfsfileengine_iterator.cpp \
|
|
|
|
qglobal.cpp \
|
2017-01-14 16:53:31 +00:00
|
|
|
qgregoriancalendar.cpp \
|
2018-08-02 14:41:14 +00:00
|
|
|
qhash.cpp \
|
|
|
|
qiodevice.cpp \
|
2020-08-25 15:41:42 +00:00
|
|
|
qiterable.cpp \
|
2018-08-02 14:41:14 +00:00
|
|
|
qjsonarray.cpp \
|
2019-06-19 11:43:00 +00:00
|
|
|
qjsoncbor.cpp \
|
2018-08-02 14:41:14 +00:00
|
|
|
qjsondocument.cpp \
|
|
|
|
qjsonobject.cpp \
|
|
|
|
qjsonparser.cpp \
|
|
|
|
qjsonvalue.cpp \
|
|
|
|
qlibraryinfo.cpp \
|
|
|
|
qlocale.cpp \
|
|
|
|
qlocale_tools.cpp \
|
|
|
|
qlogging.cpp \
|
|
|
|
qmalloc.cpp \
|
2020-08-25 09:58:09 +00:00
|
|
|
qmetacontainer.cpp \
|
2018-08-02 14:41:14 +00:00
|
|
|
qmetatype.cpp \
|
|
|
|
qnumeric.cpp \
|
2020-04-03 13:39:37 +00:00
|
|
|
qregularexpression.cpp \
|
2017-01-14 16:53:31 +00:00
|
|
|
qromancalendar.cpp \
|
2018-08-02 14:41:14 +00:00
|
|
|
qsettings.cpp \
|
|
|
|
qstring.cpp \
|
2020-04-03 09:49:27 +00:00
|
|
|
qstringbuilder.cpp \
|
2020-04-17 10:10:21 +00:00
|
|
|
qstringconverter.cpp \
|
2018-08-02 14:41:14 +00:00
|
|
|
qstringlist.cpp \
|
|
|
|
qsystemerror.cpp \
|
|
|
|
qtemporaryfile.cpp \
|
|
|
|
qtextstream.cpp \
|
|
|
|
quuid.cpp \
|
|
|
|
qvariant.cpp \
|
|
|
|
qversionnumber.cpp \
|
|
|
|
qvsnprintf.cpp \
|
2011-04-27 10:05:43 +00:00
|
|
|
|
2018-08-02 14:41:14 +00:00
|
|
|
HEADERS += \
|
|
|
|
qabstractfileengine_p.h \
|
|
|
|
qarraydata.h \
|
|
|
|
qarraydataops.h \
|
|
|
|
qarraydatapointer.h \
|
|
|
|
qbitarray.h \
|
|
|
|
qbuffer.h \
|
|
|
|
qbytearray.h \
|
|
|
|
qbytearraymatcher.h \
|
2017-01-14 16:53:31 +00:00
|
|
|
qcalendar.h \
|
|
|
|
qcalendarbackend_p.h \
|
|
|
|
qcalendarmath_p.h \
|
2019-10-29 12:50:22 +00:00
|
|
|
qcborstreamwriter.h \
|
2019-06-19 11:43:00 +00:00
|
|
|
qcborvalue.h \
|
|
|
|
qcborvalue_p.h \
|
2018-08-02 14:41:14 +00:00
|
|
|
qchar.h \
|
2020-08-25 09:58:09 +00:00
|
|
|
qcontainerinfo.h \
|
2018-08-02 14:41:14 +00:00
|
|
|
qcryptographichash.h \
|
|
|
|
qdatetime.h \
|
|
|
|
qdatetime_p.h \
|
|
|
|
qdir.h \
|
|
|
|
qdir_p.h \
|
|
|
|
qdiriterator.h \
|
|
|
|
qfile.h \
|
|
|
|
qfileinfo.h \
|
|
|
|
qglobal.h \
|
2017-01-14 16:53:31 +00:00
|
|
|
qgregoriancalendar_p.h \
|
2018-08-02 14:41:14 +00:00
|
|
|
qhash.h \
|
|
|
|
qiodevice.h \
|
2020-08-25 15:41:42 +00:00
|
|
|
qiterable.h \
|
2018-12-21 11:17:25 +00:00
|
|
|
qjson_p.h \
|
2018-08-02 14:41:14 +00:00
|
|
|
qjsonarray.h \
|
|
|
|
qjsondocument.h \
|
|
|
|
qjsonobject.h \
|
2018-12-21 11:17:25 +00:00
|
|
|
qjsonparser_p.h \
|
2018-08-02 14:41:14 +00:00
|
|
|
qjsonvalue.h \
|
2018-12-21 11:17:25 +00:00
|
|
|
qjsonwriter_p.h \
|
2018-08-02 14:41:14 +00:00
|
|
|
qlist.h \
|
|
|
|
qlocale.h \
|
|
|
|
qlocale_tools_p.h \
|
|
|
|
qmap.h \
|
2020-08-25 09:58:09 +00:00
|
|
|
qmetacontainer.h \
|
2018-08-02 14:41:14 +00:00
|
|
|
qmetatype.h \
|
|
|
|
qnumeric.h \
|
2020-04-03 13:39:37 +00:00
|
|
|
qregularexpression.h \
|
2017-01-14 16:53:31 +00:00
|
|
|
qromancalendar_p.h \
|
2018-08-02 14:41:14 +00:00
|
|
|
qstring.h \
|
2020-04-03 09:49:27 +00:00
|
|
|
qstringbuilder.h \
|
2020-04-17 10:10:21 +00:00
|
|
|
qstringconverter_p.h \
|
|
|
|
qstringconverter.h \
|
2018-08-02 14:41:14 +00:00
|
|
|
qstringlist.h \
|
|
|
|
qstringmatcher.h \
|
|
|
|
qsystemerror_p.h \
|
|
|
|
qtemporaryfile.h \
|
|
|
|
qtextstream.h \
|
|
|
|
quuid.h \
|
|
|
|
qvector.h \
|
|
|
|
qversionnumber.h \
|
2013-10-31 15:39:55 +00:00
|
|
|
|
2020-04-03 13:39:37 +00:00
|
|
|
include(../src/3rdparty/pcre2/pcre2.pri)
|
|
|
|
|
2018-08-02 14:41:14 +00:00
|
|
|
unix {
|
|
|
|
SOURCES += \
|
|
|
|
qcore_unix.cpp \
|
|
|
|
qfilesystemengine_unix.cpp \
|
|
|
|
qfilesystemiterator_unix.cpp \
|
|
|
|
qfsfileengine_unix.cpp \
|
|
|
|
qlocale_unix.cpp
|
|
|
|
macos {
|
|
|
|
SOURCES += \
|
|
|
|
qcore_foundation.mm \
|
2020-03-11 10:46:59 +00:00
|
|
|
qcore_mac.mm \
|
2018-08-02 14:41:14 +00:00
|
|
|
qoperatingsystemversion_darwin.mm \
|
|
|
|
qsettings_mac.cpp
|
|
|
|
LIBS += \
|
|
|
|
-framework ApplicationServices \
|
|
|
|
-framework CoreServices \
|
|
|
|
-framework Foundation
|
|
|
|
QMAKE_CXXFLAGS += -fconstant-cfstrings
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
SOURCES += \
|
|
|
|
qfilesystemengine_win.cpp \
|
|
|
|
qfilesystemiterator_win.cpp \
|
|
|
|
qfsfileengine_win.cpp \
|
|
|
|
qlocale_win.cpp \
|
|
|
|
qoperatingsystemversion_win.cpp \
|
|
|
|
qsettings_win.cpp \
|
|
|
|
qsystemlibrary.cpp \
|
2020-05-28 13:11:36 +00:00
|
|
|
library/registry.cpp
|
2018-08-02 14:41:14 +00:00
|
|
|
LIBS += -lole32 -ladvapi32 -lkernel32 -lnetapi32
|
|
|
|
mingw: LIBS += -luuid
|
|
|
|
clang: QMAKE_CXXFLAGS += -fms-compatibility-version=19.00.23506 -Wno-microsoft-enum-value
|
|
|
|
}
|
2020-05-28 15:39:45 +00:00
|
|
|
|
|
|
|
load(qt_tool)
|