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