Use templating system
This commit is contained in:
parent
305c5f8c92
commit
432a11dbc9
4 changed files with 16 additions and 10 deletions
|
@ -23,10 +23,15 @@ const api_pkg = std.build.Pkg{
|
|||
.dependencies = &.{ util_pkg, sql_pkg },
|
||||
};
|
||||
|
||||
const template_pkg = std.build.Pkg{
|
||||
.name = "template",
|
||||
.source = std.build.FileSource.relative("src/template/lib.zig"),
|
||||
};
|
||||
|
||||
const main_pkg = std.build.Pkg{
|
||||
.name = "main",
|
||||
.source = std.build.FileSource.relative("src/main/main.zig"),
|
||||
.dependencies = &.{ util_pkg, http_pkg, sql_pkg, api_pkg },
|
||||
.dependencies = &.{ util_pkg, http_pkg, sql_pkg, api_pkg, template_pkg },
|
||||
};
|
||||
|
||||
pub fn build(b: *std.build.Builder) void {
|
||||
|
@ -48,6 +53,7 @@ pub fn build(b: *std.build.Builder) void {
|
|||
exe.addPackage(util_pkg);
|
||||
exe.addPackage(http_pkg);
|
||||
exe.addPackage(api_pkg);
|
||||
exe.addPackage(template_pkg);
|
||||
|
||||
exe.linkSystemLibrary("sqlite3");
|
||||
exe.linkSystemLibrary("pq");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue