diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000000000000000000000000000000000000..403c8ef104b8bf3476b7a5155be3158eae28734e --- /dev/null +++ b/.gitattributes @@ -0,0 +1,3 @@ +* text=auto +*.zig text eol=lf +zigmod.* text eol=lf diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..2e19bb47619bffa5955be5d4eb92024633890d30 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +zig-* +.zigmod +deps.zig +files.zig diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..98a1c784c8f4d52ce2624c53e0fc28f425fffbdc --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023 Meghan Denny + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/build.zig b/build.zig new file mode 100644 index 0000000000000000000000000000000000000000..73371a1ff76ebd770bfa2c252012fa9a00215067 --- /dev/null +++ b/build.zig @@ -0,0 +1,27 @@ +const std = @import("std"); +const deps = @import("./deps.zig"); + +pub fn build(b: *std.Build) void { + const target = b.standardTargetOptions(.{}); + const mode = b.option(std.builtin.Mode, "mode", "") orelse .Debug; + + const exe = b.addExecutable(.{ + .name = "zig-color", + .root_source_file = .{ .path = "main.zig" }, + .target = target, + .optimize = mode, + }); + deps.addAllTo(exe); + b.installArtifact(exe); + + const run_cmd = b.addRunArtifact(exe); + + run_cmd.step.dependOn(b.getInstallStep()); + + if (b.args) |args| { + run_cmd.addArgs(args); + } + + const run_step = b.step("run", "Run the app"); + run_step.dependOn(&run_cmd.step); +} diff --git a/licenses.txt b/licenses.txt new file mode 100644 index 0000000000000000000000000000000000000000..6336b470e0dc9933d1fad883c84eaf86174573d6 --- /dev/null +++ b/licenses.txt @@ -0,0 +1,3 @@ +MIT: += https://spdx.org/licenses/MIT +- This diff --git a/main.zig b/main.zig new file mode 100644 index 0000000000000000000000000000000000000000..f92e18124bb86f9b42fa47ec0a8291c7b0d9ad35 --- /dev/null +++ b/main.zig @@ -0,0 +1,5 @@ +const std = @import("std"); + +pub fn main() !void { + std.debug.print("All your {s} are belong to us.\n", .{"codebase"}); +} diff --git a/mod.zig b/mod.zig new file mode 100644 index 0000000000000000000000000000000000000000..d23b33c3336e9a6f95c000fa39fa1652e1f1f8f5 --- /dev/null +++ b/mod.zig @@ -0,0 +1,2 @@ +const std = @import("std"); +const color = @This(); diff --git a/zigmod.lock b/zigmod.lock new file mode 100644 index 0000000000000000000000000000000000000000..0cfbf08886fca9a91cb753ec8734c84fcbe52c9f --- /dev/null +++ b/zigmod.lock @@ -0,0 +1 @@ +2 diff --git a/zigmod.yml b/zigmod.yml new file mode 100644 index 0000000000000000000000000000000000000000..0391a9f9d2e090c0fd77454292bc0189e347cc64 --- /dev/null +++ b/zigmod.yml @@ -0,0 +1,6 @@ +id: 64sua5o7jqpoobsji25ctt8rgm04j6gyylpny1ecqxyhg1pk +name: color +main: mod.zig +license: MIT +description: Color init and transformation library for Zig +dependencies: