@rescomms/or-tools-wasm
v0.0.1
Published
WASM bindings for Google OR-Tools built with Emscripten
Downloads
76
Readme
or-tools-javascript-bindings
Javascript bindings for Google's OR-Tools C++ library
Building
Run the following commands after changing bindings.cpp or CMakeLists.txt to build the bindings. The built bindings will be stored into ./build.
# Build and install OR-Tools in Docker, and build the bindings
docker build -t bindings .
# Copy the bindings files into ./build on the host machine
docker run -v ./build:/wrkdir/result --rm bindingsFirst build will take a long time, but subsequent builds are fast thanks to Docker cache.
Development
For info on OR-Tools visit their site or source code.
Refer to the Embind documentation to understand how the bindings work.
Refer to Emscripten compiler settings to set settings in CMakeLists.txt.
It might be helpful to install OR-Tools to your local machine to allow IDE integration in bindings.cpp.
