Skip to content

Latest commit

 

History

History
12 lines (10 loc) · 864 Bytes

README.md

File metadata and controls

12 lines (10 loc) · 864 Bytes

webview_bind_to_lib

How to use Webview in Nim linked to dynamic library webview.so or webview.dll (instead of compiled as static library).

I found the nim code on this post on nim forum and I think it is very useful. It is possible to call a nim proc from a javascript function inside webview html page.

Compiled libraries can be found on github, for example here:
https://github.com/PierceNg/fpwebview/tree/master/dll/x86_64
or here:
https://github.com/webview/webview_csharp/tree/master

Compiling on Linux worked with the first library downloaded from github. In Windows I had to compile a dll library myself, from the original source of Serge WebView on Github here.