1 KiB
1 KiB
lesi
A standalone Lua Embedded Script Interpreter
About
- Converts target .lua scripts to C resource files
- Compiles a modified PUC-Rio Lua with the resource loader to find embedded scripts
- Generates a freestanding executable that has embedded Lua scripts in it.
Requirements
- Compiler toolchain like Visual Studio Tools / MSYS2 MinGW / Linux
- Cmake
- Lua 5.1, 5.2, 5.3, 5.4, (luajit not supported yet)
- Build tool supported by cmake: ninja, mingw32-make, gnu make
Usage
- Add .lua scripts to lesi/scripts directory.
- Edit lesi/config/scripts_to_embed.cmake and include the names of the scripts to embed.
- Update lesi/config/lua_hardcoded.cmake with paths to target Lua installation.
- Execute a build
Build
from your compiler command prompt (For example: MSYS2 UCRT64)
- cd lesi/
- mkdir build
- cd build
- cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release ..
- mingw32-make install