mirror of
https://github.com/ziex-dev/ziex.git
synced 2026-07-20 02:29:36 -06:00
28 lines
846 B
Zig
28 lines
846 B
Zig
const std = @import("std");
|
|
const ziex = @import("ziex");
|
|
|
|
pub fn build(b: *std.Build) !void {
|
|
// --- Target and Optimize from `zig build` arguments ---
|
|
const target = b.standardTargetOptions(.{});
|
|
const optimize = b.standardOptimizeOption(.{});
|
|
|
|
// -- Modules -- //
|
|
const pg_module = b.dependency("pg", .{}).module("pg");
|
|
|
|
// --- ZX App Executable ---
|
|
const app_exe = b.addExecutable(.{
|
|
.name = "ziex_app",
|
|
.root_module = b.createModule(.{
|
|
.root_source_file = b.path("app/main.zig"),
|
|
.target = target,
|
|
.optimize = optimize,
|
|
.imports = &.{
|
|
.{ .name = "pg", .module = pg_module },
|
|
},
|
|
}),
|
|
});
|
|
|
|
// --- Ziex setup: wires dependencies and adds `ziex`/`dev` build steps ---
|
|
_ = try ziex.init(b, app_exe, .{});
|
|
}
|