diff options
author | empyrical <empyrical@users.noreply.github.com> | 2015-11-10 02:19:58 -0700 |
---|---|---|
committer | empyrical <empyrical@users.noreply.github.com> | 2015-11-10 02:19:58 -0700 |
commit | d93870c10c546b1cca5ce339dd42e55d6081c52b (patch) | |
tree | 20ab5132fbb0229e7474af00e0235c51de2a89da /PySide2/QtWebChannel | |
parent | c0273d25720e1363e1e9d57ae23ac00e9e27783d (diff) |
Add WebEngine, WebChannel, and WebSockets
Diffstat (limited to 'PySide2/QtWebChannel')
-rw-r--r-- | PySide2/QtWebChannel/CMakeLists.txt | 34 | ||||
-rw-r--r-- | PySide2/QtWebChannel/typesystem_webchannel.xml | 34 |
2 files changed, 68 insertions, 0 deletions
diff --git a/PySide2/QtWebChannel/CMakeLists.txt b/PySide2/QtWebChannel/CMakeLists.txt new file mode 100644 index 000000000..d984710e4 --- /dev/null +++ b/PySide2/QtWebChannel/CMakeLists.txt @@ -0,0 +1,34 @@ +project(QtWebChannel) + +set(QtWebChannel_SRC +${QtWebChannel_GEN_DIR}/qwebchannel_wrapper.cpp +${QtWebChannel_GEN_DIR}/qwebchannelabstracttransport_wrapper.cpp +# module is always needed +${QtWebChannel_GEN_DIR}/qtwebchannel_module_wrapper.cpp +) + +make_path(QtWebChannel_typesystem_path ${QtCore_SOURCE_DIR} ${QtCore_BINARY_DIR} ${QtWebChannel_SOURCE_DIR}) + +set(QtWebChannel_include_dirs ${QtWebChannel_SOURCE_DIR} + ${QtWebChannel_BINARY_DIR} + ${Qt5Core_INCLUDE_DIRS} + ${Qt5WebChannel_INCLUDE_DIRS} + ${SHIBOKEN_INCLUDE_DIR} + ${libpyside_SOURCE_DIR} + ${SHIBOKEN_PYTHON_INCLUDE_DIR} + ${QtCore_GEN_DIR} + ) +set(QtWebChannel_libraries pyside2 + ${SHIBOKEN_PYTHON_LIBRARIES} + ${SHIBOKEN_LIBRARY} + ${Qt5WebChannel_LIBRARIES} + ${Qt5Core_LIBRARIES} + ) + +create_pyside_module(QtWebChannel + QtWebChannel_include_dirs + QtWebChannel_libraries + QtWebChannel_deps + QtWebChannel_typesystem_path + QtWebChannel_SRC + "") diff --git a/PySide2/QtWebChannel/typesystem_webchannel.xml b/PySide2/QtWebChannel/typesystem_webchannel.xml new file mode 100644 index 000000000..0559f969d --- /dev/null +++ b/PySide2/QtWebChannel/typesystem_webchannel.xml @@ -0,0 +1,34 @@ +<?xml version="1.0"?> +<!-- + This file is part of PySide project. + Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). + Contact: PySide team <contact@pyside.org> + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +--> +<typesystem package="PySide2.QtWebChannel"> + <load-typesystem name="typesystem_core.xml" generate="no"/> + + <object-type name="QWebChannel" /> + <object-type name="QWebChannelAbstractTransport"> + <extra-includes> + <include file-name="QJsonObject" location="global"/> + </extra-includes> + </object-type> + <!-- Not sure if this will be useful, but commented out for now because + the QML module is not yet wrapped. + <object-type name="QQmlWebChannel" /> --> + +</typesystem> |