1
0
Fork 0
mirror of https://github.com/zigzap/zap.git synced 2025-10-20 23:24:09 +00:00

Merge pull request #105 from SlaktarMicke92/feature/remove-deprecated-path

Remove deprecated path
This commit is contained in:
Rene Schallner 2024-05-26 12:58:05 +02:00 committed by GitHub
commit 3f9c7d0f6b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 17 additions and 17 deletions

View file

@ -23,7 +23,7 @@ pub fn build(b: *std.Build) !void {
const facilio = try build_facilio("facil.io", b, target, optimize, use_openssl); const facilio = try build_facilio("facil.io", b, target, optimize, use_openssl);
const zap_module = b.addModule("zap", .{ const zap_module = b.addModule("zap", .{
.root_source_file = .{ .path = "src/zap.zig" }, .root_source_file = b.path("src/zap.zig"),
.target = target, .target = target,
.optimize = optimize, .optimize = optimize,
}); });
@ -34,7 +34,7 @@ pub fn build(b: *std.Build) !void {
// -- Docs // -- Docs
const docs_obj = b.addObject(.{ const docs_obj = b.addObject(.{
.name = "zap", // name doesn't seem to matter .name = "zap", // name doesn't seem to matter
.root_source_file = .{ .path = "src/zap.zig" }, .root_source_file = b.path("src/zap.zig"),
.target = target, .target = target,
.optimize = .Debug, .optimize = .Debug,
}); });
@ -96,7 +96,7 @@ pub fn build(b: *std.Build) !void {
var example = b.addExecutable(.{ var example = b.addExecutable(.{
.name = ex_name, .name = ex_name,
.root_source_file = .{ .path = ex_src }, .root_source_file = b.path(ex_src),
.target = target, .target = target,
.optimize = optimize, .optimize = optimize,
}); });
@ -135,7 +135,7 @@ pub fn build(b: *std.Build) !void {
// //
const auth_tests = b.addTest(.{ const auth_tests = b.addTest(.{
.name = "auth_tests", .name = "auth_tests",
.root_source_file = .{ .path = "src/tests/test_auth.zig" }, .root_source_file = b.path("src/tests/test_auth.zig"),
.target = target, .target = target,
.optimize = optimize, .optimize = optimize,
}); });
@ -147,7 +147,7 @@ pub fn build(b: *std.Build) !void {
// mustache tests // mustache tests
const mustache_tests = b.addTest(.{ const mustache_tests = b.addTest(.{
.name = "mustache_tests", .name = "mustache_tests",
.root_source_file = .{ .path = "src/tests/test_mustache.zig" }, .root_source_file = b.path("src/tests/test_mustache.zig"),
.target = target, .target = target,
.optimize = optimize, .optimize = optimize,
}); });
@ -159,7 +159,7 @@ pub fn build(b: *std.Build) !void {
// http paramters (qyery, body) tests // http paramters (qyery, body) tests
const httpparams_tests = b.addTest(.{ const httpparams_tests = b.addTest(.{
.name = "http_params_tests", .name = "http_params_tests",
.root_source_file = .{ .path = "src/tests/test_http_params.zig" }, .root_source_file = b.path("src/tests/test_http_params.zig"),
.target = target, .target = target,
.optimize = optimize, .optimize = optimize,
}); });
@ -176,7 +176,7 @@ pub fn build(b: *std.Build) !void {
// http paramters (qyery, body) tests // http paramters (qyery, body) tests
const sendfile_tests = b.addTest(.{ const sendfile_tests = b.addTest(.{
.name = "sendfile_tests", .name = "sendfile_tests",
.root_source_file = .{ .path = "src/tests/test_sendfile.zig" }, .root_source_file = b.path("src/tests/test_sendfile.zig"),
.target = target, .target = target,
.optimize = optimize, .optimize = optimize,
}); });
@ -216,7 +216,7 @@ pub fn build(b: *std.Build) !void {
// //
const pkghash_exe = b.addExecutable(.{ const pkghash_exe = b.addExecutable(.{
.name = "pkghash", .name = "pkghash",
.root_source_file = .{ .path = "./tools/pkghash.zig" }, .root_source_file = b.path("./tools/pkghash.zig"),
.target = target, .target = target,
.optimize = optimize, .optimize = optimize,
}); });
@ -230,7 +230,7 @@ pub fn build(b: *std.Build) !void {
// //
const docserver_exe = b.addExecutable(.{ const docserver_exe = b.addExecutable(.{
.name = "docserver", .name = "docserver",
.root_source_file = .{ .path = "./tools/docserver.zig" }, .root_source_file = b.path("./tools/docserver.zig"),
.target = target, .target = target,
.optimize = optimize, .optimize = optimize,
}); });
@ -254,7 +254,7 @@ pub fn build(b: *std.Build) !void {
// //
const announceybot_exe = b.addExecutable(.{ const announceybot_exe = b.addExecutable(.{
.name = "announceybot", .name = "announceybot",
.root_source_file = .{ .path = "./tools/announceybot.zig" }, .root_source_file = b.path("./tools/announceybot.zig"),
.target = target, .target = target,
.optimize = optimize, .optimize = optimize,
}); });

View file

@ -32,14 +32,14 @@ pub fn build_facilio(
try flags.append("-DHAVE_OPENSSL -DFIO_TLS_FOUND"); try flags.append("-DHAVE_OPENSSL -DFIO_TLS_FOUND");
// Include paths // Include paths
lib.addIncludePath(.{ .path = subdir ++ "/." }); lib.addIncludePath(b.path(subdir ++ "/."));
lib.addIncludePath(.{ .path = subdir ++ "/lib/facil" }); lib.addIncludePath(b.path(subdir ++ "/lib/facil"));
lib.addIncludePath(.{ .path = subdir ++ "/lib/facil/fiobj" }); lib.addIncludePath(b.path(subdir ++ "/lib/facil/fiobj"));
lib.addIncludePath(.{ .path = subdir ++ "/lib/facil/cli" }); lib.addIncludePath(b.path(subdir ++ "/lib/facil/cli"));
lib.addIncludePath(.{ .path = subdir ++ "/lib/facil/http" }); lib.addIncludePath(b.path(subdir ++ "/lib/facil/http"));
lib.addIncludePath(.{ .path = subdir ++ "/lib/facil/http/parsers" }); lib.addIncludePath(b.path(subdir ++ "/lib/facil/http/parsers"));
if (use_openssl) if (use_openssl)
lib.addIncludePath(.{ .path = subdir ++ "/lib/facil/tls" }); lib.addIncludePath(b.path(subdir ++ "/lib/facil/tls"));
// C source files // C source files
lib.addCSourceFiles(.{ lib.addCSourceFiles(.{