Changes
4 changed files (+12/-12)
-
-
@@ -48,7 +48,7 @@name = "devshell-fhs-fish"; targetPkgs = pkgs: with pkgs; [ zig_0_15 zig_0_16 # > Code formatting platform written in Rust # https://dprint.dev/
-
@@ -75,7 +75,7 @@[ # > Zig LSP implementation + Zig Language Server # https://github.com/zigtools/zls zls_0_15 zls_0_16 # > Tool for compliance with the REUSE Initiative recommendations # https://github.com/fsfe/reuse-tool
-
-
-
@@ -73,11 +73,11 @@ pub fn build(b: *std.Build) !void {exe.root_module.addCMacro("APP_ID", b.fmt("\"{s}\"", .{app_id})); for (system_libraries) |lib| { exe.linkSystemLibrary(lib); exe.root_module.linkSystemLibrary(lib, .{}); } for (vala_main.compiled_c_files) |file| { exe.addCSourceFile(.{ .file = file }); exe.root_module.addCSourceFile(.{ .file = file }); } break :exe exe;
-
@@ -131,11 +131,11 @@ pub fn build(b: *std.Build) !void {test_exe.root_module.addCMacro("APP_ID", b.fmt("\"{s}.test\"", .{app_id})); for (system_libraries) |lib| { test_exe.linkSystemLibrary(lib); test_exe.root_module.linkSystemLibrary(lib, .{}); } for (valac.compiled_c_files) |file| { test_exe.addCSourceFile(.{ .file = file }); test_exe.root_module.addCSourceFile(.{ .file = file }); } const run = b.addRunArtifact(test_exe);
-
-
-
@@ -27,19 +27,19 @@ pub const Options = struct {pub fn init(b: *std.Build, opts: Options) !CompileVala { const valac = b.addSystemCommand(&.{"valac"}); _ = valac.captureStdErr(); _ = valac.captureStdErr(.{}); // Vala source codes to compile. const vala_sources: [][]const u8 = vala_sources: { var list: std.ArrayList([]const u8) = .empty; var dir = try opts.src.getPath3(b, &valac.step).openDir("", .{ .iterate = true }); defer dir.close(); var dir = try opts.src.getPath3(b, &valac.step).openDir(b.graph.io, "", .{ .iterate = true }); defer dir.close(b.graph.io); var walker = try dir.walk(b.allocator); defer walker.deinit(); while (try walker.next()) |entry| { while (try walker.next(b.graph.io)) |entry| { const ext = std.fs.path.extension(entry.basename); if (std.mem.eql(u8, ".vala", ext)) { if (!opts.includeMainVala and std.mem.eql(u8, entry.basename, "main.vala")) {
-
-
-
@@ -9,7 +9,7 @@{ lib, stdenvNoCC, zig_0_15, zig_0_16, vala, pkg-config, wrapGAppsHook4,
-
@@ -43,7 +43,7 @@ stdenvNoCC.mkDerivation {# > Zig is a general-purpose programming language and toolchain for maintaining # > robust, optimal and reusable software. # https://ziglang.org/ zig_0_15 zig_0_16 # > pkg-config is a helper tool used when compiling applications and libraries. # https://www.freedesktop.org/wiki/Software/pkg-config/
-