Build and test QtConcurrent

Change-Id: I2d4b64d3e9b2cb22c67ce462155e73b5d600fb32
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
Tobias Hunger 2018-10-30 14:25:57 +01:00
parent f43667a6a1
commit 465da04bcb
10 changed files with 139 additions and 5 deletions

View File

@ -44,9 +44,18 @@ endfunction()
find_or_build_bootstrap_names()
add_subdirectory(corelib)
add_subdirectory(network)
add_subdirectory(xml)
add_subdirectory(dbus)
if (QT_FEATURE_concurrent)
add_subdirectory(concurrent)
endif()
if (QT_FEATURE_network)
add_subdirectory(network)
endif()
if (QT_FEATURE_xml)
add_subdirectory(xml)
endif()
if (QT_FEATURE_dbus)
add_subdirectory(dbus)
endif()
add_subdirectory(tools)
if(QT_FEATURE_gui)
add_subdirectory(gui)
@ -61,5 +70,7 @@ if(QT_FEATURE_gui)
add_subdirectory(platformsupport)
add_subdirectory(platformheaders)
endif()
add_subdirectory(testlib)
if (QT_FEATURE_testlib)
add_subdirectory(testlib)
endif()
add_subdirectory(plugins)

View File

@ -0,0 +1,25 @@
add_qt_module(Concurrent
SOURCES
qtconcurrent_global.h
qtconcurrentcompilertest.h
qtconcurrentexception.h
qtconcurrentfilter.cpp qtconcurrentfilter.h
qtconcurrentfilterkernel.h
qtconcurrentfunctionwrappers.h
qtconcurrentiteratekernel.cpp qtconcurrentiteratekernel.h
qtconcurrentmap.cpp qtconcurrentmap.h
qtconcurrentmapkernel.h
qtconcurrentmedian.h
qtconcurrentreducekernel.h
qtconcurrentrun.cpp qtconcurrentrun.h
qtconcurrentrunbase.h
qtconcurrentstoredfunctioncall.h
qtconcurrentthreadengine.cpp qtconcurrentthreadengine.h
DEFINES
QT_NO_USING_NAMESPACE
QT_NO_FOREACH
LIBRARIES Qt::CorePrivate
PUBLIC_LIBRARIES Qt::Core
)
add_qt_docs(./doc/qtconcurrent.qdocconf)

View File

@ -42,7 +42,7 @@ if (TARGET Qt::Xml)
# add_subdirectory("xml")
endif()
if (TARGET Qt::Concurrent)
# add_subdirectory("concurrent")
add_subdirectory("concurrent")
endif()
# add_subdirectory("other")
if (TARGET Qt::Widgets)

View File

@ -0,0 +1,8 @@
# Generated from concurrent.pro.
add_subdirectory(qtconcurrentfilter)
add_subdirectory(qtconcurrentiteratekernel)
add_subdirectory(qtconcurrentmap)
add_subdirectory(qtconcurrentmedian)
add_subdirectory(qtconcurrentrun)
add_subdirectory(qtconcurrentthreadengine)

View File

@ -0,0 +1,14 @@
# Generated from qtconcurrentfilter.pro.
#####################################################################
## tst_qtconcurrentfilter Test:
#####################################################################
add_qt_test(tst_qtconcurrentfilter
SOURCES
tst_qtconcurrentfilter.cpp
DEFINES
QT_STRICT_ITERATORS
LIBRARIES
Qt::Concurrent
)

View File

@ -0,0 +1,12 @@
# Generated from qtconcurrentiteratekernel.pro.
#####################################################################
## tst_qtconcurrentiteratekernel Test:
#####################################################################
add_qt_test(tst_qtconcurrentiteratekernel
SOURCES
tst_qtconcurrentiteratekernel.cpp
LIBRARIES
Qt::Concurrent
)

View File

@ -0,0 +1,20 @@
# Generated from qtconcurrentmap.pro.
#####################################################################
## tst_qtconcurrentmap Test:
#####################################################################
add_qt_test(tst_qtconcurrentmap
SOURCES
tst_qtconcurrentmap.cpp
DEFINES
QT_STRICT_ITERATORS
LIBRARIES
Qt::Concurrent
)
## Scopes:
#####################################################################
#
#extend_target(tst_qtconcurrentmap CONDITION contains(QT_CONFIG, c++1z)
#)

View File

@ -0,0 +1,14 @@
# Generated from qtconcurrentmedian.pro.
#####################################################################
## tst_qtconcurrentmedian Test:
#####################################################################
add_qt_test(tst_qtconcurrentmedian
SOURCES
tst_qtconcurrentmedian.cpp
DEFINES
QT_STRICT_ITERATORS
LIBRARIES
Qt::Concurrent
)

View File

@ -0,0 +1,18 @@
# Generated from qtconcurrentrun.pro.
#####################################################################
## tst_qtconcurrentrun Test:
#####################################################################
add_qt_test(tst_qtconcurrentrun
SOURCES
tst_qtconcurrentrun.cpp
LIBRARIES
Qt::Concurrent
)
## Scopes:
#####################################################################
#
#extend_target(tst_qtconcurrentrun CONDITION contains(QT_CONFIG, c++1z)
#)

View File

@ -0,0 +1,12 @@
# Generated from qtconcurrentthreadengine.pro.
#####################################################################
## tst_qtconcurrentthreadengine Test:
#####################################################################
add_qt_test(tst_qtconcurrentthreadengine
SOURCES
tst_qtconcurrentthreadengine.cpp
LIBRARIES
Qt::Concurrent
)