Changes
2 changed files (+12/-8)
-
-
@@ -22,15 +22,10 @@ GTK client adhering to Gnome Human Interface Guidline.## Development Guide ### Running locally GLib requires setting fields to be defined in XML schema file, which will be installed to shared directory then be compiled to binary file using system tool. Due to this design limitation, you have to pre-compile `data/*.gschema.xml` file into the binary file for local run. The `-Dcompile-gschema` option performs that compile task and emits the generated binary file onto `<zig-out>/share/glib-2.0/schemas`. You can tell GLib to load the compiled file using `GSETTINGS_SCHEMA_DIR` environment variable: ### Running application ``` GSETTINGS_SCHEMA_DIR=./zig-out/share/glib-2.0/schemas ./zig-out/bin/plac zig build run ``` ### Enable debug logging
-
@@ -38,5 +33,5 @@Add `Plac` to `G_MESSAGES_DEBUG` environment variable: ``` G_MESSAGES_DEBUG=Plac ./zig-out/bin/plac G_MESSAGES_DEBUG=Plac zig build run ```
-
-
-
@@ -214,4 +214,13 @@ // Install compiled gschema fileif (compile_gschema) { b.getInstallStep().dependOn(&gschema_compiled.step); } // `zig build run` { const run = b.addRunArtifact(exe); run.step.dependOn(&gschema_compiled.step); run.setEnvironmentVariable("GSETTINGS_SCHEMA_DIR", b.pathJoin(&.{ b.install_path, "share/glib-2.0/schemas" })); const step = b.step("run", "Build and run Plac GTK-Adwaita app"); step.dependOn(&run.step); } }
-