Commit Graph

2 Commits

Author SHA1 Message Date
Stevie Hryciw
8236cb910b Prepare Zig package
- Add build.zig.zon
- Refactor build.zig to expose module and artifacts by usual means
- Add version info to Lua shared/static lib
- Define LUA_USE_APICHECK if and only if opitimize=Debug
- Pass target and optimize mode to lib
- Install headers with lib

As it is, `zig build test -Dtarget=...` will create a cross-compiled
test executable which cannot be run. This should be fixed, probably
by disallowing `-Dtarget` in the test step, or providing a custom
test runner.
2023-02-24 16:07:28 -08:00
Nathan Craddock
aa686e39a4
initial commit: basic library framework
This first commit includes the LICENSE and the .gitignore in addition to
the beginnings of the zlua (name tbd) library.

At this stage src/zlua.zig contains a very basic wrapper around the Lua
C API. The goal is to expose every function in a Zig fashion.

The build.zig script contains a single entry point `zig build test` to
run tests.

The intended use of this library will be to include in other projects
and link as a package/library.
2022-05-31 19:09:27 -06:00