I am trying to use the WebIDL Binding capabilities of Emscripten. In the documentation https://kripken.github.io/emscripten-site/docs/porting/connecting_cpp_and_javascript/WebIDL-Binder.html there is an example for 2 classes in one idl file.
What is the best way to handle many classes? 1. I could write a huge idl file which contains all classes -> What I don't like here is, that I have a huge file. Also I need the wrapper cpp file which have to include all the headers, if I change one class it has to recompile the wrapper for all other classes, too 2. I could write one idl file for every class -> Is this one even possible? When I have a look on the generated js code I don't think it is a good idea as some parts of the js code are exactly the same for all generated js files? 3. I could write one idl file for every class but concat them together before building the glue code -> similar to 1, but if I get error messages from the webidl_binder.py it could be hard to find the right position/line 4. any other ideas? -- 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.
