You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just an FYI, but because of the way dub works, you won't have modest compiled and ready to go when you use it as a dependency.
The only reason it works for you is that you're running examples from within the same repo.
Also git submodules are unsupported in dub.
To make this work you will need to use dynamically loading similar to Derelict bindings (use DerelictUtil to handle all the platform specific bits). So that it is deferred to runtime.
The text was updated successfully, but these errors were encountered:
I know. This library is tested on linux only, so I assume you can compile and install modest easily on your system (by following readme instruction). Unfortunatly I have no windows machine to test with, so If anyone can help (compiling modest, etc...) pull requests are welcome.
Write up an implementation of each individual function (__traits(allMembers can do this automatically for you) which will forward to a dynamically loaded function (typeof pair with the function name to get type will help here). DerelictUtil can be used (and should be) to handle all of the platform specific parts. It can be enabled by choosing a configuration (default possibly) from dub which sets a version enabling this wrapper.
The reason for this wrapper is to prevent having to modify the binding (directly which is deimos style) as it is big. It's much easier to implement the functions and forward them to the c version.
trikko
changed the title
Unusable as a dependency by dub
Implement dynamic loading of modest library.
Jun 13, 2018
Just an FYI, but because of the way dub works, you won't have modest compiled and ready to go when you use it as a dependency.
The only reason it works for you is that you're running examples from within the same repo.
Also git submodules are unsupported in dub.
To make this work you will need to use dynamically loading similar to Derelict bindings (use DerelictUtil to handle all the platform specific bits). So that it is deferred to runtime.
The text was updated successfully, but these errors were encountered: