A library for parsing Tiled maps.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add initial Zig project

Project generated with `zig build init`. Boilerplate, exe build and
`main.zig` removed. Replaced `root.zig` with empty `tmz.zig`. Removed
generated comments

+69
+4
.gitignore
··· 1 1 .direnv/ 2 + 3 + # Zig 4 + .zig-cache/ 5 + zig-out/
+35
build.zig
··· 1 + const std = @import("std"); 2 + 3 + // Although this function looks imperative, note that its job is to 4 + // declaratively construct a build graph that will be executed by an external 5 + // runner. 6 + pub fn build(b: *std.Build) void { 7 + const target = b.standardTargetOptions(.{}); 8 + 9 + const optimize = b.standardOptimizeOption(.{}); 10 + 11 + _ = b.addModule("tmz", .{ .root_source_file = b.path("src/tmz.zig") }); 12 + 13 + const lib_mod = b.createModule(.{ 14 + .root_source_file = b.path("src/tmz.zig"), 15 + .target = target, 16 + .optimize = optimize, 17 + }); 18 + 19 + const lib = b.addLibrary(.{ 20 + .linkage = .static, 21 + .name = "tmz", 22 + .root_module = lib_mod, 23 + }); 24 + 25 + b.installArtifact(lib); 26 + 27 + const unit_tests = b.addTest(.{ 28 + .root_module = lib_mod, 29 + }); 30 + 31 + const run_unit_tests = b.addRunArtifact(unit_tests); 32 + 33 + const test_step = b.step("test", "Run unit tests"); 34 + test_step.dependOn(&run_unit_tests.step); 35 + }
+30
build.zig.zon
··· 1 + .{ 2 + .name = .tmz, 3 + 4 + .version = "0.1.0", 5 + 6 + // Together with name, this represents a globally unique package 7 + // identifier. This field is generated by the Zig toolchain when the 8 + // package is first created, and then *never changes*. This allows 9 + // unambiguous detection of one package being an updated version of 10 + // another. 11 + // 12 + // When forking a Zig project, this id should be regenerated (delete the 13 + // field and run `zig build`) if the upstream project is still maintained. 14 + // Otherwise, the fork is *hostile*, attempting to take control over the 15 + // original project's identity. Thus it is recommended to leave the comment 16 + // on the following line intact, so that it shows up in code reviews that 17 + // modify the field. 18 + .fingerprint = 0xcc3a94562c7802a6, // Changing this has security and trust implications 19 + 20 + .minimum_zig_version = "0.14.0", 21 + 22 + .dependencies = .{}, 23 + 24 + .paths = .{ 25 + "build.zig", 26 + "build.zig.zon", 27 + "src", 28 + "LICENSE", 29 + }, 30 + }
src/tmz.zig

This is a binary file and will not be displayed.