Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 954 Bytes

README.md

File metadata and controls

35 lines (27 loc) · 954 Bytes

zig-gobject-template

This is a sample application illustrating how to use zig-gobject.

Features

  • Gtk4 + LibAdwaita
  • Blueprints
  • libintl (Translation)
  • GSchema (Preferences)

Usage

  1. Replace all IDs and similar items to your desired values. Hint:
    grep -r --exclude-dir=zig-out --exclude-dir=.zig-cache "zig-gobject-template"`
    find -name "*zig-gobject-template*" -not -path "./zig-out/*" -not -path "./.zig-cache/*"
  2. Build (and run) the application:
    zig build
    zig build run

Building for Windows

Since building natively on Windows does not work paricularly well, you need to cross-compile the application from Linux:

# fetch required libraries dependencies (only required the first time)
sh fetch-windows-libs.sh
# cross-compile to windows
zig build -Dtarget=x86_64-windows