One alternative to look at for Windows is
https://gitlab.com/codelibre/lua/lua-cmake . I just updated it for Lua
5.4.8.
This is a successor to LuaDist with a number of improvements, and it
provides a CMake build for Lua, which allows you to build for any
platform, including all of the platforms slated for removal here. It
also provides more portable and more flexible configuration of features,
including:
* Configuration of the build platform (POSIX, Windows or Freestanding);
autodetects by default
* Configuration of static or shared libraries, and also separately
configuration of the dynamic library loader
* Configuration of library features (C++ support, longjmp/exceptions for
errors, C89 support, API check enabling)
* Configuration of lua line editor support, including autodetection of
GNU readline or BSD editline
* Supports running all of the Lua testsuite via CTest
* Installation to standard locations
Example:
https://gitlab.com/codelibre/lua/lua-cmake/-/jobs/11184206030
It's tested on Linux, FreeBSD and Windows; MacOS also works but I don't
currently have it in the CI setup.
If there is any interest in having this adopted upstream, I would be
happy for this code to be donated and integrated into the upstream Lua
codebase. It makes building on Windows a breeze, either with MSVC,
MinGW or Cygwin, and the flexible autodetection of compilers and
features makes it possible to build on a whole host of Unix systems the
static Makefile won't support without manual editing. Additionally, you
also get full support for Readline/Editline on Windows as well as Unix.
Kind regards,
Roger