Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/)

5 changes: 3 additions & 2 deletions cmake/LuaNativeObjects.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down