Hello,


Is it possible automatically generate Closure Compiler externs 
<https://developers.google.com/closure/compiler/docs/api-tutorial3?csw=1#externs>
 for 
the functions which described in EMSCRIPTEN_BINDINGS 
<https://kripken.github.io/emscripten-site/docs/porting/connecting_cpp_and_javascript/embind.html#a-quick-example>
?

I want to compile C++ library to JS and use it in my JS application (I 
compile my application via Closure Compiler with ADVANCED_OPTIMIZATIONS). 
Inside my JS application I want to call library functions via dot notation, 
like myLib.myFunc(), but I can't do that, because Closure Compiler which 
compiles my app doesn't know anything about API provided by C++ library. 
So, it looks like I need to provide file with Externs for my Closure 
Compiler. Do you have any ideas how to generate this file?


Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to