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-12-05 19:54:09 +00:00
|
|
|
CONFIG += $$MODULE_CONFIG
|
2016-02-12 15:03:42 +00:00
|
|
|
DEFINES += $$MODULE_DEFINES
|
2016-05-11 09:53:02 +00:00
|
|
|
DEFINES += QT_NO_USING_NAMESPACE QT_NO_FOREACH
|
2011-04-27 10:05:43 +00:00
|
|
|
win32-msvc*|win32-icc:QMAKE_LFLAGS += /BASE:0x67000000
|
|
|
|
irix-cc*:QMAKE_CXXFLAGS += -no_prelink -ptused
|
|
|
|
|
2014-02-14 12:57:35 +00:00
|
|
|
CONFIG += optimize_full
|
|
|
|
|
2012-05-07 11:54:52 +00:00
|
|
|
QMAKE_DOCS = $$PWD/doc/qtcore.qdocconf
|
2012-10-08 15:19:14 +00:00
|
|
|
|
2013-03-04 09:16:42 +00:00
|
|
|
ANDROID_JAR_DEPENDENCIES = \
|
2015-12-08 10:43:03 +00:00
|
|
|
jar/QtAndroid.jar
|
2013-03-04 09:16:42 +00:00
|
|
|
ANDROID_LIB_DEPENDENCIES = \
|
2013-10-26 17:14:26 +00:00
|
|
|
plugins/platforms/android/libqtforandroid.so
|
2013-04-26 14:23:16 +00:00
|
|
|
ANDROID_BUNDLED_JAR_DEPENDENCIES = \
|
2015-12-08 10:43:03 +00:00
|
|
|
jar/QtAndroid-bundled.jar
|
2014-02-21 13:21:58 +00:00
|
|
|
ANDROID_PERMISSIONS = \
|
|
|
|
android.permission.INTERNET \
|
|
|
|
android.permission.WRITE_EXTERNAL_STORAGE
|
2013-03-04 09:16:42 +00:00
|
|
|
|
2016-01-29 21:27:53 +00:00
|
|
|
# QtCore can't be compiled with -Wl,-no-undefined because it uses the "environ"
|
2016-06-22 11:23:32 +00:00
|
|
|
# variable and on FreeBSD and OpenBSD, this variable is in the final executable itself.
|
|
|
|
# OpenBSD 6.0 will include environ in libc.
|
|
|
|
freebsd|openbsd: QMAKE_LFLAGS_NOUNDEF =
|
2016-01-29 21:27:53 +00:00
|
|
|
|
2014-05-11 14:56:21 +00:00
|
|
|
load(qfeatures)
|
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)
|
|
|
|
|
2016-03-23 09:32:52 +00:00
|
|
|
win32 {
|
|
|
|
mingw {
|
|
|
|
# otherwise mingw headers do not declare common functions like putenv
|
|
|
|
CONFIG -= strict_c++
|
|
|
|
# Override MinGW's definition in _mingw.h
|
|
|
|
DEFINES += WINVER=0x600 _WIN32_WINNT=0x0600
|
|
|
|
}
|
2016-03-16 11:59:56 +00:00
|
|
|
|
|
|
|
!winrt: LIBS_PRIVATE += -lwinmm
|
2016-03-23 09:32:52 +00:00
|
|
|
}
|
2015-07-08 21:09:10 +00:00
|
|
|
|
2016-02-16 14:29:59 +00:00
|
|
|
darwin {
|
|
|
|
osx {
|
2011-10-21 07:55:40 +00:00
|
|
|
LIBS_PRIVATE += -framework ApplicationServices
|
2011-04-27 10:05:43 +00:00
|
|
|
LIBS_PRIVATE += -framework CoreServices
|
|
|
|
}
|
2011-10-21 07:55:40 +00:00
|
|
|
LIBS_PRIVATE += -framework CoreFoundation
|
2013-10-31 12:34:10 +00:00
|
|
|
LIBS_PRIVATE += -framework Foundation
|
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
|
|
|
|
2013-05-14 17:55:53 +00:00
|
|
|
HOST_BINS = $$[QT_HOST_BINS]
|
2012-12-05 19:54:09 +00:00
|
|
|
host_bins.name = host_bins
|
|
|
|
host_bins.variable = HOST_BINS
|
2012-04-10 18:04:23 +00:00
|
|
|
|
2013-02-04 11:13:55 +00:00
|
|
|
qt_conf.name = qt_config
|
|
|
|
qt_conf.variable = QT_CONFIG
|
|
|
|
|
|
|
|
QMAKE_PKGCONFIG_VARIABLES += host_bins qt_conf
|
2012-06-29 06:32:01 +00:00
|
|
|
|
2016-02-12 15:03:42 +00:00
|
|
|
load(qt_module)
|
|
|
|
|
|
|
|
# Override qt_module, so the symbols are actually included into the library.
|
|
|
|
win32: DEFINES -= QT_NO_CAST_TO_ASCII
|
|
|
|
|
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
|
|
|
|
2013-01-11 13:53:25 +00:00
|
|
|
cmake_umbrella_config_file.input = $$PWD/Qt5Config.cmake.in
|
|
|
|
cmake_umbrella_config_file.output = $$DESTDIR/cmake/Qt5/Qt5Config.cmake
|
|
|
|
|
2013-03-12 09:38:22 +00:00
|
|
|
cmake_umbrella_config_version_file.input = $$PWD/../../mkspecs/features/data/cmake/Qt5ConfigVersion.cmake.in
|
|
|
|
cmake_umbrella_config_version_file.output = $$DESTDIR/cmake/Qt5/Qt5ConfigVersion.cmake
|
|
|
|
|
2013-06-20 13:59:43 +00:00
|
|
|
load(cmake_functions)
|
2013-11-01 10:11:06 +00:00
|
|
|
|
|
|
|
CMAKE_DISABLED_FEATURES = $$join(QT_DISABLED_FEATURES, "$$escape_expand(\\n) ")
|
2013-06-20 13:59:43 +00:00
|
|
|
|
|
|
|
CMAKE_HOST_DATA_DIR = $$cmakeRelativePath($$[QT_HOST_DATA/src], $$[QT_INSTALL_PREFIX])
|
|
|
|
contains(CMAKE_HOST_DATA_DIR, "^\\.\\./.*"):!isEmpty(CMAKE_HOST_DATA_DIR) {
|
|
|
|
CMAKE_HOST_DATA_DIR = $$[QT_HOST_DATA/src]/
|
|
|
|
CMAKE_HOST_DATA_DIR_IS_ABSOLUTE = True
|
|
|
|
}
|
|
|
|
|
|
|
|
cmake_extras_mkspec_dir.input = $$PWD/Qt5CoreConfigExtrasMkspecDir.cmake.in
|
|
|
|
cmake_extras_mkspec_dir.output = $$DESTDIR/cmake/Qt5Core/Qt5CoreConfigExtrasMkspecDir.cmake
|
|
|
|
|
|
|
|
CMAKE_INSTALL_DATA_DIR = $$cmakeRelativePath($$[QT_HOST_DATA], $$[QT_INSTALL_PREFIX])
|
|
|
|
contains(CMAKE_INSTALL_DATA_DIR, "^\\.\\./.*"):!isEmpty(CMAKE_INSTALL_DATA_DIR) {
|
|
|
|
CMAKE_INSTALL_DATA_DIR = $$[QT_HOST_DATA]/
|
|
|
|
CMAKE_INSTALL_DATA_DIR_IS_ABSOLUTE = True
|
|
|
|
}
|
|
|
|
|
|
|
|
cmake_extras_mkspec_dir_for_install.input = $$PWD/Qt5CoreConfigExtrasMkspecDirForInstall.cmake.in
|
|
|
|
cmake_extras_mkspec_dir_for_install.output = $$DESTDIR/cmake/install/Qt5Core/Qt5CoreConfigExtrasMkspecDir.cmake
|
|
|
|
|
2013-03-12 09:38:22 +00:00
|
|
|
cmake_qt5_umbrella_module_files.files = $$cmake_umbrella_config_file.output $$cmake_umbrella_config_version_file.output
|
2013-01-11 13:53:25 +00:00
|
|
|
cmake_qt5_umbrella_module_files.path = $$[QT_INSTALL_LIBS]/cmake/Qt5
|
|
|
|
|
2013-06-20 13:59:43 +00:00
|
|
|
QMAKE_SUBSTITUTES += ctest_macros_file cmake_umbrella_config_file cmake_umbrella_config_version_file cmake_extras_mkspec_dir cmake_extras_mkspec_dir_for_install
|
2012-06-29 06:32:01 +00:00
|
|
|
|
2013-06-20 13:59:43 +00:00
|
|
|
ctest_qt5_module_files.files += $$ctest_macros_file.output $$cmake_extras_mkspec_dir_for_install.output
|
2012-06-29 06:32:01 +00:00
|
|
|
|
|
|
|
ctest_qt5_module_files.path = $$[QT_INSTALL_LIBS]/cmake/Qt5Core
|
|
|
|
|
2013-01-11 13:53:25 +00:00
|
|
|
INSTALLS += ctest_qt5_module_files cmake_qt5_umbrella_module_files
|