Skip to content

Conversation

core-explorer
Copy link

  1. install emscripten (I get it from https://github.com/emscripten-core/emsdk)
  2. create a build directory
  3. run cmake in the build directory for a normal build, it needs as an argument the directory containg CMakeLists.txt
  4. run cmake in the build directory with additional argument -DCMAKE_TOOLCHAIN_FILE=cmake/Toolchain-wasm32-web.cmake to build with emscripten output should be index.html
  5. serve index.html (I use python -m http.server)
  6. parse C++ declarations in the browser
  7. the CMake file represents minimal effort and not a full conversion of the meson file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant