I'm working on another bindings generator called nbind. It will soon 
support Emscripten and producing TypeScript definitions (they work like 
Closure externs). I'll add Closure support in the todo list, since it 
shouldn't be much additional work. It will take a few weeks to get there 
though, you can track progress 
here: https://github.com/charto/nbind/issues/6

tiistai 25. elokuuta 2015 10.23.06 UTC+3 Andrii Heonia kirjoitti:
>
> 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