Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/allyourcodebase/lua
lua build system ported to Build.zig
https://github.com/allyourcodebase/lua
zig zig-package
Last synced: 3 months ago
JSON representation
lua build system ported to Build.zig
- Host: GitHub
- URL: https://github.com/allyourcodebase/lua
- Owner: allyourcodebase
- License: mit
- Created: 2024-08-22T17:59:21.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-08-29T23:42:18.000Z (5 months ago)
- Last Synced: 2024-10-01T03:20:16.372Z (4 months ago)
- Topics: zig, zig-package
- Language: Zig
- Homepage:
- Size: 13.7 KB
- Stars: 4
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Lua
## 5.4.7## Warning
due to a bug in the 0.13.0 release of the zig compiler you will need the development version of zig in order to build the lua54.dll on windows.## Build Instructions
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:
```
zig fetch --save https://github.com/allyourcodebase/lua/archive/refs/tags/5.4.7.tar.gz
```
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");
```