From b7f10b047251996f593c0d9df6a97c4f5c2aee4d Mon Sep 17 00:00:00 2001 From: Felipe Rossi Date: Fri, 7 Nov 2025 15:23:35 +0000 Subject: [PATCH 1/2] Update CMake. Also search for LuaNativeObjects in PATH for detecting when installed with LuaRocks --- cmake/LuaNativeObjects.cmake | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmake/LuaNativeObjects.cmake b/cmake/LuaNativeObjects.cmake index d7a090a..f1cea42 100644 --- a/cmake/LuaNativeObjects.cmake +++ b/cmake/LuaNativeObjects.cmake @@ -2,8 +2,9 @@ # Lua Native Objects # -find_program(LUA_NATIVE_OBJECTS_EXECUTABLE native_objects.lua - PATHS ${CMAKE_SOURCE_DIR}/../LuaNativeObjects +find_program(LUA_NATIVE_OBJECTS_EXECUTABLE + NAMES native_objects.lua native_objects + PATHS ${CMAKE_SOURCE_DIR}/../LuaNativeObjects ENV PATH DOC "LuaNativeObjects executable path") set(USE_PRE_GENERATED_BINDINGS TRUE CACHE BOOL "Set this to FALSE to re-generate bindings using LuaNativeObjects") From d9477d06873c75d18b89347a7ffe9121bfc3e461 Mon Sep 17 00:00:00 2001 From: Felipe Rossi Date: Fri, 7 Nov 2025 15:29:45 +0000 Subject: [PATCH 2/2] Update README. Add more complete build dependency instructions --- README.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 213076f..534d98c 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,16 @@ By default CMake will use the pre-generated bindings that are include in the pro Build Dependencies ------------------ -Optional dependency for re-generating Lua bindings from `*.nobj.lua` files: +Optional dependencies for re-generating Lua bindings from `*.nobj.lua` files: -* [LuaNativeObjects](https://github.com/Neopallium/LuaNativeObjects), this is the bindings generator used to convert the `*.nobj.lua` files into a native Lua module. +* [LuaNativeObjects](https://github.com/Neopallium/LuaNativeObjects), this is the bindings generator used to convert the `*.nobj.lua` files into a native Lua module. To use it, there are two options: + - clone the repository to ../LuaNativeObjects; or + - install the LuaRocks packages: + - `luanativeobjects` + - `luanativeobjects-luadoc` (only if also generating docs) +- [`lua-json`](https://github.com/neoxic/lua-json) + +Optional dependency for generating docs: + +- [`ldoc`](https://lunarmodules.github.io/ldoc/)