diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2018-05-08 14:15:57 +0200 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2018-05-16 09:11:43 +0000 |
commit | 15273fe0fe52569013dd4811bf9ed770ce7fb287 (patch) | |
tree | f58eab1b18998592f8f9dd541232b58253529aad /sources/shiboken2/tests | |
parent | 9d9144b2b44677d2862e389b7a83900ee3e8e44c (diff) |
Add an example that demonstrates bindings to a custom C++ library
A CMake project is included that builds two shared libraries:
1) libuniverse - a hypothetical C++ library for which bindings
need to be created.
2) Universe - a Python module containing bindings to the above
library.
The example showcases the following concepts:
* primitive type bindings (bool, std::string)
* types with object and value semantics
(pass by pointer VS pass by copy)
* inheritance and overriding virtual methods
* ownership of heap-allocated C++ objects
* constructors with default parameters
* general structure of CMakeLists.txt file for generating bindings
Task-number: PYSIDE-597
Change-Id: I7b0f203e2844e815aa611af3de2b50a9aa9b5bfc
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/shiboken2/tests')
0 files changed, 0 insertions, 0 deletions