vfox-emsdk

Emscripten SDK plugin for vfox / mise

License

Prerequisites

  • git
  • python3 - required by emsdk
  • cmake - required for building from source

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 installation
  • EM_CONFIG - Path to .emscripten config
  • EMSCRIPTEN_ROOT - Path to emscripten directory
  • EMCC_CACHE - Path to emscripten cache
  • LLVM / LLVM_ROOT / EM_LLVM_ROOT - Path to LLVM binaries
  • BINARYEN / BINARYEN_ROOT / EM_BINARYEN_ROOT - Path to binaryen

Notes

  • First installation may take several minutes as emsdk compiles tools from source
  • The emsdk install and emsdk activate commands are run automatically during installation

License

Licensed under the Apache License, Version 2.0.