READMEApache-2.0 license
vfox-emsdk
Emscripten SDK plugin for vfox / misePrerequisites
Installation
With vfox
vfox add emsdk --source https://github.com/rektide/vfox-emsdk/archive/refs/tags/v1.0.0.zip
vfox install emsdk@latest
vfox use emsdk@latest
With mise
mise plugin install emsdk https://github.com/rektide/vfox-emsdk
mise install emsdk@latest
Or add to your .mise.toml:
[tools]
emsdk = "latest"
Using a local checkout (development)
To use a locally checked out copy of this plugin with mise:
# Add the local plugin
mise plugin install emsdk file:///path/to/vfox-emsdk
# Or using a relative path from your project
mise plugin install emsdk file://../vfox-emsdk
Alternatively, set it in .mise.toml:
[plugins]
emsdk = "file:///path/to/vfox-emsdk"
[tools]
emsdk = "latest"
To update after making changes to the plugin:
mise plugin uninstall emsdk
mise plugin install emsdk file:///path/to/vfox-emsdk
Usage
emsdk --help
emcc --version
em++ --version
Environment Variables
This plugin sets the following environment variables:
EMSDK- Path to emsdk installationEM_CONFIG- Path to .emscripten configEMSCRIPTEN_ROOT- Path to emscripten directoryEMCC_CACHE- Path to emscripten cacheLLVM/LLVM_ROOT/EM_LLVM_ROOT- Path to LLVM binariesBINARYEN/BINARYEN_ROOT/EM_BINARYEN_ROOT- Path to binaryen
Notes
- First installation may take several minutes as emsdk compiles tools from source
- The
emsdk installandemsdk activatecommands are run automatically during installation
License
Licensed under the Apache License, Version 2.0.