-
Notifications
You must be signed in to change notification settings - Fork 67
Description
Hello,
Is it possible to add an option to produce a single shared library (.dll, .so) with all the exported functions?
On a related subject, What would be the minimum number of libraries required just for GUI? (no string manipulation, no array helper classes, no json encoding, no net).
Imagine we wanted to create a C FFI wrapper for the GUI part of nappgui. Most languages wrapping nappgui have better string handling than C, as well as json parsers, net libs, ...
I noticed the individual libraries grew in size compared to the first versions. I think having an option to output a single shared library might reduce the size by sharing some of the code being copied multiple times in each shared library.
Looking at the GUI APIs, they don't take data structures as parameters that need to be created by one of the underlying libraries (sewer, ...). it's mostly passing bool, float, int, UTF8 char* pointers and other GUI class pointers. for a wrapper library, this means we don't need to use these APIs that are useful for C users but redundant for higher level classes that support C FFI.
Do you see any problem with any of the GUI APIs that would make it difficult to use the GUI part of nappGUI without using the base helper libraries?