Hi,

My main goal is to adapt this Stockfish chess engine 
<https://github.com/nmrugg/stockfish.js/> for being used in React Native.
But in React-Native :

   - we can't use NODE API such as path/fs ... For this point, I've found a 
   solution : more below,
   - we can't rely on Window object and so, nor Document : the original DOM 
   model is forbidden in react-native.

As for removing node js dependency, I've written my own Makefile script 
<https://gist.github.com/loloof64/05ad6d690dbe13524fe7951977715044> . This 
way, we do not have any call to neither path, nor fs, ...

But I don't know yet how to remove the document/window dependencies. I bet 
it has something to do with the used Javascript engine when compiling the 
web assembly.
But though I've set up some with the JSVU 
<https://github.com/GoogleChromeLabs/jsvu> utility, as someone already 
pointed me in another topic, I don't know how to force emscripten to use 
one of them, and which one I should use.

Meanwhile, my bet is that SpiderMonkey is a good candidate for that. Am I 
right ? And how to "bind" a custom JS engine to emscripten ?

Thanks in advance,

Regards

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/emscripten-discuss/79870177-8aeb-4dce-9bbe-d014d5eaa694%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to