feat: use zig-glib-log
This commit is contained in:
parent
4a54643e52
commit
7647f569e4
|
@ -1 +1,4 @@
|
|||
zig-*
|
||||
.gyro
|
||||
gyro.lock
|
||||
deps.zig
|
||||
|
|
|
@ -8,8 +8,9 @@ Requirements:
|
|||
- a master build of the zig compiler
|
||||
- rofi and it's dependencies
|
||||
- `gdbus-codegen`
|
||||
- [gyro](https://github.com/mattnite/gyro)
|
||||
```bash
|
||||
zig build -Drelease fast
|
||||
gyro build -Drelease fast
|
||||
```
|
||||
Find the artifacts in `zig-out/lib`.
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
const std = @import("std");
|
||||
const pkgs = @import("deps.zig").pkgs;
|
||||
|
||||
pub fn build(b: *std.build.Builder) !void {
|
||||
// Standard release options allow the person running `zig build` to select
|
||||
|
@ -13,6 +14,7 @@ pub fn build(b: *std.build.Builder) !void {
|
|||
lib.linkSystemLibrary("gio-unix-2.0");
|
||||
lib.linkSystemLibrary("rofi");
|
||||
lib.linkSystemLibrary("cairo");
|
||||
pkgs.addAllTo(lib);
|
||||
|
||||
lib.install();
|
||||
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
deps:
|
||||
glib-log:
|
||||
git:
|
||||
url: "https://mzte.de/git/LordMZTE/zig-glib-log.git"
|
||||
ref: master
|
||||
root: src/main.zig
|
|
@ -3,6 +3,8 @@ const ffi = @import("ffi.zig");
|
|||
const c = ffi.c;
|
||||
const Mode = c.Mode;
|
||||
|
||||
pub const log = @import("glib-log").log(c, "rofi-nheko", 512);
|
||||
|
||||
export var mode: Mode = .{
|
||||
.abi_version = c.ABI_VERSION,
|
||||
|
||||
|
|
Loading…
Reference in New Issue