Standalone Lua Embedded Script Interpreter
Go to file
Matt Boney e83b57b10a remove windows CR from LF's from several files 2023-11-18 10:24:37 -07:00
config add capability to embed C modules 2023-11-16 16:01:55 -07:00
modules add generator scripts to dependencies to trigger re-generation if they are changed 2023-11-18 10:10:57 -07:00
scripts remove windows CR from LF's from several files 2023-11-18 10:24:37 -07:00
src remove windows CR from LF's from several files 2023-11-18 10:24:37 -07:00
.gitignore initial import, built with mingw64-ucrt64-gcc, works on lua5.4 currently 2023-10-28 14:34:14 -06:00
CMakeLists.txt add capability to embed C modules 2023-11-16 16:01:55 -07:00
LICENSE update license with mbo@disroot.org address 2023-10-28 14:17:15 -06:00
README.md update README for added Lua 5.1, 5.2, 5.3 support 2023-10-30 10:32:18 -06:00

README.md

lesi

A standalone Lua Embedded Script Interpreter

About

  1. Converts target .lua scripts to C resource files
  2. Compiles a modified PUC-Rio Lua with the resource loader to find embedded scripts
  3. Generates a freestanding executable that has embedded Lua scripts in it.

Screenshot

Requirements

  1. Compiler toolchain like Visual Studio Tools / MSYS2 MinGW / Linux
  2. Cmake
  3. Lua 5.1, 5.2, 5.3, 5.4, (luajit not supported yet)
  4. Build tool supported by cmake: ninja, mingw32-make, gnu make

Usage

  1. Add .lua scripts to lesi/scripts directory.
  2. Edit lesi/config/scripts_to_embed.cmake and include the names of the scripts to embed.
  3. Update lesi/config/lua_hardcoded.cmake with paths to target Lua installation.
  4. Execute a build

Build

from your compiler command prompt (For example: MSYS2 UCRT64)

  1. cd lesi/
  2. mkdir build
  3. cd build
  4. cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release ..
  5. mingw32-make install