~novakane/rivercarro

eb4b400c41374baf4128dac664bbeccf88280243 — Hugo Machet 1 year, 9 months ago 69a41aa
flags: Update and move it to common/

ref: https://gist.github.com/ifreund/41e91a3e4aeb0a3da57258c14e2a8cea
4 files changed, 19 insertions(+), 17 deletions(-)

M README.md
M build.zig
R src/flags.zig => common/flags.zig
M src/main.zig
M README.md => README.md +3 -3
@@ 111,9 111,9 @@ my many questions!

rivercarro is licensed under the [GNU General Public License v3.0 or later]

Files in `protocol/` directory are released under various licenses by
various parties. You should refer to the copyright block of each files for
the licensing information.
Files in `common/` and `protocol/` directories are released under various
licenses by various parties. You should refer to the copyright block of each
files for the licensing information.

[river]: https://github.com/ifreund/river
[stacktile]: https://sr.ht/~leon_plickat/stacktile/

M build.zig => build.zig +3 -0
@@ 47,6 47,9 @@ pub fn build(b: *Builder) !void {
    exe.addOptions("build_options", options);

    exe.step.dependOn(&scanner.step);

    exe.addPackagePath("flags", "common/flags.zig");

    exe.addPackage(.{
        .name = "wayland",
        .path = .{ .generated = &scanner.result },

R src/flags.zig => common/flags.zig +12 -13
@@ 1,19 1,18 @@
// This file is part of river, a dynamic tiling wayland compositor.
// Zero allocation argument parsing for unix-like systems.
// Released under the Zero Clause BSD (0BSD) license:
//
// Copyright 2021 The River Developers
// Copyright 2022 Isaac Freund
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

const std = @import("std");
const cstr = std.cstr;

M src/main.zig => src/main.zig +1 -1
@@ 28,7 28,7 @@ const wayland = @import("wayland");
const wl = wayland.client.wl;
const river = wayland.client.river;

const flags = @import("flags.zig");
const flags = @import("flags");

const log = std.log.scoped(.rivercarro);