this repo has no description
13
fork

Configure Feed

Select the types of activity you want to include in your feed.

Update README: ZLS addition method shown

authored by

Momo and committed by
Tim Culverhouse
33ae50ca bef52fd9

+25
+25
README.md
··· 63 63 exe.root_module.addImport("vaxis", vaxis.module("vaxis")); 64 64 ``` 65 65 66 + or for ZLS support 67 + 68 + ```zig 69 + // create module 70 + const exe_mod = b.createModule(.{ 71 + .root_source_file = b.path("src/main.zig"), 72 + .target = target, 73 + .optimize = optimize, 74 + }); 75 + 76 + // add vaxis dependency to module 77 + const vaxis = b.dependency("vaxis", .{ 78 + .target = target, 79 + .optimize = optimize, 80 + }); 81 + exe_mod.addImport("vaxis", vaxis.module("vaxis")); 82 + 83 + //create executable 84 + const exe = b.addExecutable(.{ 85 + .name = "project_foo", 86 + .root_module = exe_mod, 87 + }); 88 + // install exe below 89 + ``` 90 + 66 91 ### vxfw (Vaxis framework) 67 92 68 93 Let's build a simple button counter application. This example can be run using