Yeah, that is the preferred way to embed JavaScript code to the project that will be called by C/C++ code. The --js-library directive should come in the link step, which is the step that also has the "-o out.js/.html" command line directive.
2014-04-15 15:35 GMT+03:00 Roman Kravchenko < [email protected]>: > Hi. > > I am trying to call javascript implementation websokets from cpp file in > HelloCpp test project. In version what I use it can`t binding JavaScript to > C++, so I use method like test_js_libraries from tests/runner.py with > --js-library. > > And here is a question: where I should write "--js-library my.js" in > project make file, that way it could find my function implamentation? What > you think about this and any ideas how to do this? > > -- > 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. > -- 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.
