Skip to content
Merged
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
39 changes: 12 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,36 +68,21 @@ Some example modules are included automatically to exercise some code paths, the
* [Mesh Drawing Example](src/examples/meshes.zig)
* [Debug Drawing Example](src/examples/debugdraw.zig)

## Building the examples
## Getting started

- Add dependency repository link
### Add delve-framework as a dependency

`build.zig.zon`
```
.{
.name = "my_project",
.version = "0.0.1",
.dependencies = .{
.delve = .{
.url = "git+https://github.com/Interrupt/delve-framework/tree/0.12.x.git#___COMMIT_HASH___",
// add compilers suggested line about .hash
},
},
}
```
- Link dependency module
`build.zig`
```
const delve = b.dependency("delve", .{
.target = target,
.optimize = optimize,
});
exe.root_module.addImport("delve", delve.module("delve"));
```
This repository demonstrates how to include and use the Delve Framework in another Zig project using Zig's package manager.

- Just build
```java
zig build run
https://github.com/Interrupt/delve-framework-example



## Examples

List examples (and other build-steps)
```
zig build --list-steps
```

### Build and run examples
Expand Down