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..755aa68f03a30361a954cb1bfbf823ba9fa604ae --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +.zig-cache +zig-out +.zigmod +deps.zig +files.zig +zigmod.lock diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..d086baf7a5a343fd8513a73903156fbed6c23f5f --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2024 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..75c5d7e44afad086d26aa7078549fdfa0c1fe52f --- /dev/null +++ b/build.zig @@ -0,0 +1,16 @@ +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 lib = b.addStaticLibrary(.{ + .name = "icu", + .root_source_file = b.path("src/main.zig"), + .target = target, + .optimize = mode, + }); + deps.addAllTo(lib); + b.installArtifact(lib); +} 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/src/main.zig b/src/main.zig new file mode 100644 index 0000000000000000000000000000000000000000..95a0b682a71942e4010a9c8ee96461fb9a3b53a3 --- /dev/null +++ b/src/main.zig @@ -0,0 +1 @@ +const std = @import("std"); diff --git a/src/root.zig b/src/root.zig new file mode 100644 index 0000000000000000000000000000000000000000..95a0b682a71942e4010a9c8ee96461fb9a3b53a3 --- /dev/null +++ b/src/root.zig @@ -0,0 +1 @@ +const std = @import("std"); diff --git a/zigmod.yml b/zigmod.yml new file mode 100644 index 0000000000000000000000000000000000000000..4741bbbe9f74447572c4e07f5c58af067d80097b --- /dev/null +++ b/zigmod.yml @@ -0,0 +1,6 @@ +id: 47zkmuv464zqas12rhzf3y6im0u74rwbsqtdo4unbcw7wo2a +name: icu +main: src/root.zig +license: MIT +description: An implementation of International Components for Unicode in only Zig +dependencies: