mirror of
https://github.com/allyourcodebase/lua.git
synced 2026-05-01 11:17:58 +02:00
updated README.md
This commit is contained in:
parent
94c5e60869
commit
ce846e8386
1 changed files with 32 additions and 0 deletions
32
README.md
32
README.md
|
|
@ -1,2 +1,34 @@
|
||||||
# Lua
|
# Lua
|
||||||
## 5.4.7
|
## 5.4.7
|
||||||
|
|
||||||
|
To build all targets run
|
||||||
|
```sh
|
||||||
|
zig build
|
||||||
|
```
|
||||||
|
|
||||||
|
## Build Artifacts
|
||||||
|
| Name | Artifact |
|
||||||
|
| "lua" | The main lua library |
|
||||||
|
| "lua_exe" | The lua interpreter |
|
||||||
|
| "luac" | The lua bytecode compiler |
|
||||||
|
|
||||||
|
## Compile Options
|
||||||
|
| Name | Type | Description |
|
||||||
|
| release | bool | optimize for end users |
|
||||||
|
| shared | bool | build as shared library |
|
||||||
|
| use_readline | bool | readline support for linux |
|
||||||
|
|
||||||
|
## Using in a zig project
|
||||||
|
To add to a zig project run:
|
||||||
|
```
|
||||||
|
```
|
||||||
|
then add the following to your `build.zig`
|
||||||
|
```zig
|
||||||
|
const lua_dep = b.dependency("lua", .{
|
||||||
|
.{
|
||||||
|
.target = target,
|
||||||
|
.release = optimize != .Debug,
|
||||||
|
}
|
||||||
|
});
|
||||||
|
const lua_lib = lua_dep.artifact("lua");
|
||||||
|
```
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue