https://github.com/thevurv/waddon
wasm2lua example
https://github.com/thevurv/waddon
garrysmod lua wasm wasm2lua webassembly
Last synced: 7 months ago
JSON representation
wasm2lua example
- Host: GitHub
- URL: https://github.com/thevurv/waddon
- Owner: thevurv
- License: mit
- Created: 2021-11-19T04:13:41.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-11-28T05:00:03.000Z (over 4 years ago)
- Last Synced: 2025-06-04T03:12:15.142Z (10 months ago)
- Topics: garrysmod, lua, wasm, wasm2lua, webassembly
- Language: C++
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# ``waddon``
Example of how to use [wasm2lua](https://github.com/SwadicalRag/wasm2lua) to embed typical programs on Windows.
This embeds:
* [tiny-json](https://github.com/rafagafe/tiny-json)
* [pocketlang](https://github.com/ThakeeNathees/pocketlang)
## Prerequisites
Make sure you have the [wasi-sdk](https://github.com/WebAssembly/wasi-sdk) installed, with the path at ``%WASI_SDK_PATH%``
Get it from the releases (mingw)
## Usage
1. Run ``build.bat``.
2. Edit ``build.bat`` to comment out the line with lua-webidl. (Put 'rem' or '::' before it)
3. Run it again
4. Lua should be generated in ``waddon.lua``
5. See the src-lua folder for example usage from lua.