8000 Update README: ZLS addition method shown by ItsMoMoHippo · Pull Request #203 · rockorager/libvaxis · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Update README: ZLS addition method shown #203 < 8000 /h1>
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

8000
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,31 @@ Add this to your build.zig
exe.root_module.addImport("vaxis", vaxis.module("vaxis"));
```

or for ZLS support

```zig
// create module
const exe_mod = b.createModule(.{
.root_source_file = b.path("src/main.zig"),
.target = target,
.optimize = optimize,
});

// add vaxis dependency to module
const vaxis = b.dependency("vaxis", .{
.target = target,
.optimize = optimize,
});
exe_mod.addImport("vaxis", vaxis.module("vaxis"));

//create executable
const exe = b.addExecutable(.{
.name = "project_foo",
.root_module = exe_mod,
});
// install exe below
```

### vxfw (Vaxis framework)

Let's build a simple button counter application. This example can be run using
Expand Down
0