2011-04-27 10:05:43 +00:00
|
|
|
TARGET = QtCore
|
|
|
|
QT =
|
2012-04-10 18:04:23 +00:00
|
|
|
CONFIG += exceptions
|
2011-04-01 10:47:28 +00:00
|
|
|
|
|
|
|
MODULE = core # not corelib, as per project file
|
2012-06-04 15:12:24 +00:00
|
|
|
MODULE_CONFIG = moc resources
|
2012-11-01 13:23:41 +00:00
|
|
|
!isEmpty(QT_NAMESPACE): MODULE_DEFINES = QT_NAMESPACE=$$QT_NAMESPACE
|
2011-04-01 10:47:28 +00:00
|
|
|
|
2012-04-11 15:28:49 +00:00
|
|
|
DEFINES += QT_NO_USING_NAMESPACE
|
2011-04-27 10:05:43 +00:00
|
|
|
win32-msvc*|win32-icc:QMAKE_LFLAGS += /BASE:0x67000000
|
|
|
|
irix-cc*:QMAKE_CXXFLAGS += -no_prelink -ptused
|
|
|
|
|
2012-09-05 14:10:47 +00:00
|
|
|
# otherwise mingw headers do not declare common functions like putenv
|
|
|
|
win32-g++*:QMAKE_CXXFLAGS_CXX11 = -std=gnu++0x
|
|
|
|
|
2012-05-07 11:54:52 +00:00
|
|
|
QMAKE_DOCS = $$PWD/doc/qtcore.qdocconf
|
2012-10-08 15:19:14 +00:00
|
|
|
|
|
|
|
load(qt_module)
|
2012-05-07 11:54:52 +00:00
|
|
|
|
2011-04-27 10:05:43 +00:00
|
|
|
include(animation/animation.pri)
|
|
|
|
include(arch/arch.pri)
|
|
|
|
include(global/global.pri)
|
|
|
|
include(thread/thread.pri)
|
|
|
|
include(tools/tools.pri)
|
|
|
|
include(io/io.pri)
|
2011-12-10 01:22:06 +00:00
|
|
|
include(itemmodels/itemmodels.pri)
|
2012-01-18 09:12:50 +00:00
|
|
|
include(json/json.pri)
|
2011-04-27 10:05:43 +00:00
|
|
|
include(plugin/plugin.pri)
|
|
|
|
include(kernel/kernel.pri)
|
|
|
|
include(codecs/codecs.pri)
|
|
|
|
include(statemachine/statemachine.pri)
|
2012-02-18 15:00:09 +00:00
|
|
|
include(mimetypes/mimetypes.pri)
|
2011-04-27 10:05:43 +00:00
|
|
|
include(xml/xml.pri)
|
|
|
|
|
2011-10-21 07:55:40 +00:00
|
|
|
mac|darwin {
|
2012-03-30 08:03:00 +00:00
|
|
|
!ios {
|
2011-10-21 07:55:40 +00:00
|
|
|
LIBS_PRIVATE += -framework ApplicationServices
|
2011-04-27 10:05:43 +00:00
|
|
|
LIBS_PRIVATE += -framework CoreServices
|
2012-01-30 13:14:04 +00:00
|
|
|
LIBS_PRIVATE += -framework Foundation
|
2011-04-27 10:05:43 +00:00
|
|
|
}
|
2011-10-21 07:55:40 +00:00
|
|
|
LIBS_PRIVATE += -framework CoreFoundation
|
2011-04-27 10:05:43 +00:00
|
|
|
}
|
|
|
|
mac:lib_bundle:DEFINES += QT_NO_DEBUG_PLUGIN_CHECK
|
|
|
|
win32:DEFINES-=QT_NO_CAST_TO_ASCII
|
2012-11-01 13:23:41 +00:00
|
|
|
DEFINES += $$MODULE_DEFINES
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
QMAKE_LIBS += $$QMAKE_LIBS_CORE
|
|
|
|
|
|
|
|
QMAKE_DYNAMIC_LIST_FILE = $$PWD/QtCore.dynlist
|
|
|
|
|
|
|
|
contains(DEFINES,QT_EVAL):include(eval.pri)
|
2012-04-10 18:04:23 +00:00
|
|
|
|
|
|
|
load(moc)
|
|
|
|
load(resources)
|
|
|
|
|
|
|
|
moc_dir.name = moc_location
|
|
|
|
moc_dir.variable = QMAKE_MOC
|
|
|
|
|
|
|
|
rcc_dir.name = rcc_location
|
|
|
|
rcc_dir.variable = QMAKE_RCC
|
|
|
|
|
|
|
|
QMAKE_PKGCONFIG_VARIABLES += moc_dir rcc_dir
|
|
|
|
|
|
|
|
# These are aliens, but Linguist installs no own module, and it fits here best.
|
|
|
|
|
|
|
|
qtPrepareTool(QMAKE_LUPDATE, lupdate)
|
|
|
|
qtPrepareTool(QMAKE_LRELEASE, lrelease)
|
|
|
|
|
|
|
|
lupdate_dir.name = lupdate_location
|
|
|
|
lupdate_dir.variable = QMAKE_LUPDATE
|
|
|
|
|
|
|
|
lrelease_dir.name = lrelease_location
|
|
|
|
lrelease_dir.variable = QMAKE_LRELEASE
|
|
|
|
|
|
|
|
QMAKE_PKGCONFIG_VARIABLES += lupdate_dir lrelease_dir
|
2012-06-29 06:32:01 +00:00
|
|
|
|
|
|
|
ctest_macros_file.input = $$PWD/Qt5CTestMacros.cmake
|
|
|
|
ctest_macros_file.output = $$DESTDIR/cmake/Qt5Core/Qt5CTestMacros.cmake
|
2012-07-03 20:29:45 +00:00
|
|
|
ctest_macros_file.CONFIG = verbatim
|
2012-06-29 06:32:01 +00:00
|
|
|
|
|
|
|
QMAKE_SUBSTITUTES += ctest_macros_file
|
|
|
|
|
|
|
|
ctest_qt5_module_files.files += $$ctest_macros_file.output
|
|
|
|
|
|
|
|
ctest_qt5_module_files.path = $$[QT_INSTALL_LIBS]/cmake/Qt5Core
|
|
|
|
|
|
|
|
INSTALLS += ctest_qt5_module_files
|