Examples in a dedicated directory.
This commit is contained in:
parent
efa7851edd
commit
396a4f83f1
4 changed files with 3 additions and 3 deletions
|
|
@ -77,7 +77,7 @@ pub fn build(b: *std.Build) void {
|
|||
// b.createModule defines a new module just like b.addModule but,
|
||||
// unlike b.addModule, it does not expose the module to consumers of
|
||||
// this package, which is why in this case we don't have to give it a name.
|
||||
.root_source_file = b.path("src/examples/pong-with-c-bindings.zig"),
|
||||
.root_source_file = b.path("examples/pong-with-c-bindings.zig"),
|
||||
.target = target,
|
||||
.optimize = optimize,
|
||||
|
||||
|
|
@ -100,7 +100,7 @@ pub fn build(b: *std.Build) void {
|
|||
const pongd_with_c_bindings = b.addExecutable(.{
|
||||
.name = "pongd-with-c-bindings", // name of the executable
|
||||
.root_module = b.createModule(.{
|
||||
.root_source_file = b.path("src/examples/pongd-with-c-bindings.zig"),
|
||||
.root_source_file = b.path("examples/pongd-with-c-bindings.zig"),
|
||||
.target = target,
|
||||
.optimize = optimize,
|
||||
|
||||
|
|
@ -114,7 +114,7 @@ pub fn build(b: *std.Build) void {
|
|||
const pongd = b.addExecutable(.{
|
||||
.name = "pongd", // name of the executable
|
||||
.root_module = b.createModule(.{
|
||||
.root_source_file = b.path("src/examples/pongd.zig"),
|
||||
.root_source_file = b.path("examples/pongd.zig"),
|
||||
.target = target,
|
||||
.optimize = optimize,
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue