Emscripten is the magic thing that turns the C/C++ files into WebAssembly, but the setup is quite a bit annoying/complicated, made a video for that: