Module build.builtin
The builtin builder based on LuaRocks builtin.
Functions
create_builder (compile_object, create_library) | Creates a builtin builder. |
run (rockspec) | Builds and installs the given rockspec. |
Local Functions
install_files (mapping, perms) | Installs the specified files to their destination paths. |
luamod_install_path (name, src_file) | Returns destination file name of the given module. |
build_native_module (name, info, vars) | Builds native module. |
Functions
- create_builder (compile_object, create_library)
-
Creates a builtin builder.
This function is based on
luarocks.build.builtin
.Parameters:
- compile_object function
- create_library function
Returns:
-
function
A function that accepts rockspec table.
- run (rockspec)
-
Builds and installs the given rockspec.
Parameters:
- rockspec table The rockspec as a table.
Returns:
-
true
Or
- nil
- string An error message.
Local Functions
- install_files (mapping, perms)
-
Installs the specified files to their destination paths.
Parameters:
- mapping {[string]=string,...} The mapping table where key is path of a source file and value is its destination path.
- perms string The destination file permissions (e.g. "0644").
Returns:
-
true
Or
- nil
- string An error message.
- luamod_install_path (name, src_file)
-
Returns destination file name of the given module.
Parameters:
Returns:
-
string
File path relative to the rock's directory.
- build_native_module (name, info, vars)
-
Builds native module.
Parameters:
Returns:
-
File
name of the built library.
Or
- nil
- string An error message.