Skip to content
/ maan Public

Experimental C++ wrapper for LuaJIT's C API

License

Notifications You must be signed in to change notification settings

iamtimmy/maan

Repository files navigation

maan

maan is a C++ library binding to LuaJIT. It attempts to make use of modern C++ features in hopes to achieve a similar feature set to Sol2, while maintaining a much more reasonable size. (Both binary and Codebase size)

Cloning

The project uses the LuaJIT GitHub mirror as a git submodule.

git clone --recurse-submodules https://github.com/iamtimmy/maan.git

or

git clone https://github.com/iamtimmy/maan.git
git submodule update --init --recursive

Building on Windows

  1. Install Visual Studio 2022 link
  2. Open a Native Tools Command Prompt for VS 2022 for your target architecture (x86 or x64)
  3. Navigate to <clone location>/luajit/LuaJIT/src/
    • Optional: Have a look at the build script and the one in <clone location>/luajit/msvcbuild.bat for some extra compiler options
  4. compile with .\msvcbuild.bat static
  5. Navigate to <clone location>/luajit/
  6. gather the required headers with .\gatherinclude.bat
  7. gather the compiler output with .\gathercompile.bat <target architecture>

Building on Linux

Linux support is currently untested The library is written in standard C++, please submit an issue if anything comes up

Building on other platforms:

I cannot test this currently, please submit issues/pull requests to fix problems as they come up

References