From fe9e90cd7fd54084438815f93616e7edaa19f7cb Mon Sep 17 00:00:00 2001 From: Cristian Maureira-Fredes Date: Mon, 18 Feb 2019 17:32:59 +0100 Subject: Add common QPrintSupport typesystem for QWebEngine Moved around the files so we have a general QPrintSupport typesystem that we can include in other modules that need it, like QWebEngine. Change-Id: Ic277c37e6b0c08b370102d1bef18cd1375239169 Task-number: PYSIDE-946 Reviewed-by: Qt CI Bot Reviewed-by: Christian Tismer --- .../pyside2/PySide2/QtPrintSupport/CMakeLists.txt | 6 +- .../QtPrintSupport/typesystem_printsupport.xml | 118 --------------------- .../QtPrintSupport/typesystem_printsupport.xml.in | 46 ++++++++ .../typesystem_printsupport_common.xml | 117 ++++++++++++++++++++ .../PySide2/QtWebEngineWidgets/CMakeLists.txt | 4 +- .../typesystem_webenginewidgets.xml | 1 + 6 files changed, 172 insertions(+), 120 deletions(-) delete mode 100644 sources/pyside2/PySide2/QtPrintSupport/typesystem_printsupport.xml create mode 100644 sources/pyside2/PySide2/QtPrintSupport/typesystem_printsupport.xml.in create mode 100644 sources/pyside2/PySide2/QtPrintSupport/typesystem_printsupport_common.xml diff --git a/sources/pyside2/PySide2/QtPrintSupport/CMakeLists.txt b/sources/pyside2/PySide2/QtPrintSupport/CMakeLists.txt index 3482c68fe..74d3dfb88 100644 --- a/sources/pyside2/PySide2/QtPrintSupport/CMakeLists.txt +++ b/sources/pyside2/PySide2/QtPrintSupport/CMakeLists.txt @@ -13,6 +13,9 @@ ${QtPrintSupport_GEN_DIR}/qprintpreviewwidget_wrapper.cpp ${QtPrintSupport_GEN_DIR}/qtprintsupport_module_wrapper.cpp ) +configure_file("${QtPrintSupport_SOURCE_DIR}/typesystem_printsupport.xml.in" + "${QtPrintSupport_BINARY_DIR}/typesystem_printsupport.xml" @ONLY) + set(QtPrintSupport_include_dirs ${QtPrintSupport_SOURCE_DIR} ${QtPrintSupport_BINARY_DIR} ${Qt5Core_INCLUDE_DIRS} @@ -36,4 +39,5 @@ create_pyside_module(NAME QtPrintSupport LIBRARIES QtPrintSupport_libraries DEPS QtPrintSupport_deps TYPESYSTEM_PATH QtPrintSupport_SOURCE_DIR - SOURCES QtPrintSupport_SRC) + SOURCES QtPrintSupport_SRC + TYPESYSTEM_NAME ${QtPrintSupport_BINARY_DIR}/typesystem_printsupport.xml) diff --git a/sources/pyside2/PySide2/QtPrintSupport/typesystem_printsupport.xml b/sources/pyside2/PySide2/QtPrintSupport/typesystem_printsupport.xml deleted file mode 100644 index f85aadc79..000000000 --- a/sources/pyside2/PySide2/QtPrintSupport/typesystem_printsupport.xml +++ /dev/null @@ -1,118 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sources/pyside2/PySide2/QtPrintSupport/typesystem_printsupport.xml.in b/sources/pyside2/PySide2/QtPrintSupport/typesystem_printsupport.xml.in new file mode 100644 index 000000000..7949b2daa --- /dev/null +++ b/sources/pyside2/PySide2/QtPrintSupport/typesystem_printsupport.xml.in @@ -0,0 +1,46 @@ + + + + + + + diff --git a/sources/pyside2/PySide2/QtPrintSupport/typesystem_printsupport_common.xml b/sources/pyside2/PySide2/QtPrintSupport/typesystem_printsupport_common.xml new file mode 100644 index 000000000..5ec49c030 --- /dev/null +++ b/sources/pyside2/PySide2/QtPrintSupport/typesystem_printsupport_common.xml @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sources/pyside2/PySide2/QtWebEngineWidgets/CMakeLists.txt b/sources/pyside2/PySide2/QtWebEngineWidgets/CMakeLists.txt index 555be9c41..214ebc56b 100644 --- a/sources/pyside2/PySide2/QtWebEngineWidgets/CMakeLists.txt +++ b/sources/pyside2/PySide2/QtWebEngineWidgets/CMakeLists.txt @@ -34,6 +34,7 @@ set(QtWebEngineWidgets_include_dirs ${QtNetwork_GEN_DIR} ${QtWebChannel_GEN_DIR} ${QtWebEngineCore_GEN_DIR} + ${QtPrintSupport_GEN_DIR} ) set(QtWebEngineWidgets_libraries pyside2 ${Qt5WebEngineWidgets_LIBRARIES} @@ -42,8 +43,9 @@ set(QtWebEngineWidgets_libraries pyside2 ${Qt5Widgets_LIBRARIES} ${Qt5Gui_LIBRARIES} ${Qt5Core_LIBRARIES} + ${Qt5PrintSupport_LIBRARIES} ) -set(QtWebEngineWidgets_deps QtGui QtWidgets QtNetwork QtWebChannel) +set(QtWebEngineWidgets_deps QtGui QtWidgets QtNetwork QtWebChannel QtPrintSupport) create_pyside_module(NAME QtWebEngineWidgets INCLUDE_DIRS QtWebEngineWidgets_include_dirs LIBRARIES QtWebEngineWidgets_libraries diff --git a/sources/pyside2/PySide2/QtWebEngineWidgets/typesystem_webenginewidgets.xml b/sources/pyside2/PySide2/QtWebEngineWidgets/typesystem_webenginewidgets.xml index e51303c42..cd4cd8a91 100644 --- a/sources/pyside2/PySide2/QtWebEngineWidgets/typesystem_webenginewidgets.xml +++ b/sources/pyside2/PySide2/QtWebEngineWidgets/typesystem_webenginewidgets.xml @@ -46,6 +46,7 @@ + -- cgit v1.2.3