office-gobmx/static
Stephan Bergmann 41feb036b4 Some minimal Embind support for UNO type
...which should be rare enough in practical use that it should be sufficient to
only have toString-functionality for instances mapped from C++ to JS, but no
constructor for new instances on the JS side.  (The natural choice for the
latter would be a mapping of the C++

>     inline Type( TypeClass eTypeClass, const ::rtl::OUString & rTypeName );

constructor, but which requires a mapping for the css::uno::TypeClass UNOIDL
enum, which is only provided "later" through CustomTarget_static/unoembind, so
would at least conceptually be a bit dirty.)

This Embind mapping treats css::uno::Type as a smart pointer for the underlying
typelib_TypeDescriptionReference, to benefit from the fallback garbage
collection (in more recent Emscripten versions, at least) for smart pointers,
obviating the need to call .delete() on each instance mapped to JS.

Change-Id: Ic113967c264c28641dfd1fe159012c85519f4a9b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164140
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2024-02-29 16:19:19 +01:00
..
emscripten Add a favicon to the Wasm build 2024-02-24 00:06:13 +01:00
source Some minimal Embind support for UNO type 2024-02-29 16:19:19 +01:00
CustomTarget_components.mk
CustomTarget_emscripten_fs_image.mk
CustomTarget_unoembind.mk Init Embind-ings manually, once UNO is set up 2024-02-28 07:53:21 +01:00
CustomTarget_wasm-qt5-mandelbrot_moc.mk
Executable_embindmaker.mk
Executable_wasm-qt5-mandelbrot.mk
Library_components.mk
Makefile
Module_static.mk Add a favicon to the Wasm build 2024-02-24 00:06:13 +01:00
Package_favicon.mk Add a favicon to the Wasm build 2024-02-24 00:06:13 +01:00
Package_unoembind.mk
README.md
README.wasm.md Improve sample code, missing delete() 2024-02-29 13:25:54 +01:00
StaticLibrary_unoembind.mk Fold InternalUnoApi_embindtest into UnoApi_udkapi 2024-02-28 07:52:11 +01:00

Static build components library

The library contains a map of all build component names to their constructor function calls.