Skip to content

Latest commit

 

History

History
8 lines (7 loc) · 644 Bytes

tests-examples-em.md

File metadata and controls

8 lines (7 loc) · 644 Bytes

jsbind tests and examples for emscripten

  1. Install and activate emscripten using the instructions on emscripten's website
    • On Windows also install a make tool. For example from mingw-w64
  2. Configure with the emscripten CMake toolchain file
    • $ cmake path/to/jsbind/repo -DCMAKE_TOOLCHAIN_FILE=path/to/emscripten/cmake/Modules/Platform/Emscripten.cmake -DJSBIND_EMSCRIPTEN=1 -DJSBIND_ENABLE_TESTING=1 -DJSBIND_BUILD_EXAMPLES=1 -DJSBIND_DEBUGGING=1 -G "Unix Makefiles"
  3. Build with make or mingw32-make
  4. Run tests with ctest