diff options
Diffstat (limited to 'sources/pyside6/PySide6/QtConcurrent')
3 files changed, 89 insertions, 0 deletions
diff --git a/sources/pyside6/PySide6/QtConcurrent/CMakeLists.txt b/sources/pyside6/PySide6/QtConcurrent/CMakeLists.txt new file mode 100644 index 000000000..134e44ed9 --- /dev/null +++ b/sources/pyside6/PySide6/QtConcurrent/CMakeLists.txt @@ -0,0 +1,33 @@ +# Copyright (C) 2023 The Qt Company Ltd. +# SPDX-License-Identifier: BSD-3-Clause + +project(QtConcurrent) + +set(QtConcurrent_SRC +${QtConcurrent_GEN_DIR}/qtconcurrent_wrapper.cpp +${QtConcurrent_GEN_DIR}/qfuturevoid_wrapper.cpp +${QtConcurrent_GEN_DIR}/qfutureqstring_wrapper.cpp +${QtConcurrent_GEN_DIR}/qfuturewatchervoid_wrapper.cpp +${QtConcurrent_GEN_DIR}/qfuturewatcherqstring_wrapper.cpp +# module is always needed +${QtConcurrent_GEN_DIR}/qtconcurrent_module_wrapper.cpp +) + +set(QtConcurrent_include_dirs ${QtConcurrent_SOURCE_DIR} + ${QtConcurrent_BINARY_DIR} + ${Qt${QT_MAJOR_VERSION}Core_INCLUDE_DIRS} + ${Qt${QT_MAJOR_VERSION}Concurrent_INCLUDE_DIRS} + ${libpyside_SOURCE_DIR} + ${QtCore_GEN_DIR}) + +set(QtConcurrent_libraries pyside6 + ${Qt${QT_MAJOR_VERSION}Concurrent_LIBRARIES}) + +set(QtConcurrent_deps QtCore) + +create_pyside_module(NAME QtConcurrent + INCLUDE_DIRS QtConcurrent_include_dirs + LIBRARIES QtConcurrent_libraries + DEPS QtConcurrent_deps + TYPESYSTEM_PATH QtConcurrent_SOURCE_DIR + SOURCES QtConcurrent_SRC) diff --git a/sources/pyside6/PySide6/QtConcurrent/curr_errors.txt b/sources/pyside6/PySide6/QtConcurrent/curr_errors.txt new file mode 100644 index 000000000..d8405c755 --- /dev/null +++ b/sources/pyside6/PySide6/QtConcurrent/curr_errors.txt @@ -0,0 +1,21 @@ +Generating class model... [OK] +Generating enum model... [OK] +Generating namespace model... [WARNING] + enum 'QtConcurrent::ThreadFunctionResult' does not have a type entry or is not an enum + enum 'QtConcurrent::ReduceQueueThrottleLimit' does not have a type entry or is not an enum + + +Resolving typedefs... [OK] +Fixing class inheritance... [OK] +Detecting inconsistencies in class model... [OK] +[OK] + +Done, 2 warnings (506 known issues) +Scanning dependencies of target QtConcurrent +[ 21%] Building CXX object PySide/QtConcurrent/CMakeFiles/QtConcurrent.dir/PySide/QtConcurrent/qtconcurrent_module_wrapper.cpp.o +In file included from /Users/tismer/src/pyside-setup2/pyside_build/py3.4-qt5.4.2-64bit-debug/pyside/PySide/QtConcurrent/PySide/QtConcurrent/qtconcurrent_module_wrapper.cpp:30: +/Users/tismer/src/pyside-setup2/pyside_build/py3.4-qt5.4.2-64bit-debug/pyside/PySide/QtConcurrent/PySide/QtConcurrent/pyside_qtconcurrent_python.h:44:10: fatal error: + 'qtconcurrentexception.h' file not found +#include <qtconcurrentexception.h> + ^ +1 error generated. diff --git a/sources/pyside6/PySide6/QtConcurrent/typesystem_concurrent.xml b/sources/pyside6/PySide6/QtConcurrent/typesystem_concurrent.xml new file mode 100644 index 000000000..1892793b9 --- /dev/null +++ b/sources/pyside6/PySide6/QtConcurrent/typesystem_concurrent.xml @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only +--> +<typesystem package="PySide6.QtConcurrent" + namespace-begin="QT_BEGIN_NAMESPACE" namespace-end="QT_END_NAMESPACE"> + <load-typesystem name="QtCore/typesystem_core.xml" generate="no"/> + + <!-- Qt5: this is currently the minimum possible QtConcurrent support, by just extracting + the name space from QtCore --> + <namespace-type name="QtConcurrent" target-type="class"> + <enum-type name="FutureResult"/> + <enum-type name="ReduceOption" flags="ReduceOptions"/> + <enum-type name="ThreadFunctionResult"/> + <extra-includes> + <include file-name="qtconcurrentreducekernel.h" location="global"/> + <include file-name="qtconcurrentthreadengine.h" location="global"/> + </extra-includes> + </namespace-type> + + <typedef-type name="QFutureVoid" source="QFuture<void>" disable-wrapper="yes"> + <include file-name="QtCore/qfuture.h" location="global"/> + </typedef-type> + <typedef-type name="QFutureQString" source="QFuture<QString>" disable-wrapper="yes"> + <include file-name="QtCore/qfuture.h" location="global"/> + </typedef-type> + <typedef-type name="QFutureWatcherVoid" source="QFutureWatcher<void>"> + <include file-name="QtCore/qfuturewatcher.h" location="global"/> + </typedef-type> + <typedef-type name="QFutureWatcherQString" source="QFutureWatcher<QString>"> + <include file-name="QtCore/qfuturewatcher.h" location="global"/> + </typedef-type> + +</typesystem> |