This repository showcases an example of compiling Gotk4 projects using Meson build system.
- Flatpak Builder
flatpak-builder - GNOME SDK runtime
org.gnome.Sdk//46 - GNOME Platform runtime
org.gnome.Platform//46
Install required runtimes:
flatpak install org.gnome.Sdk//46 org.gnome.Platform//46git clone https://github.com/tfuxu/gotk4_meson.git
cd gotk4_meson
flatpak-builder --install --user --force-clean repo/ build-aux/flatpak/io.github.tfuxu.gotk4_meson.jsongit clone https://github.com/tfuxu/gotk4_meson.git
cd gotk4_meson
flatpak-builder --install --system --force-clean repo/ build-aux/flatpak/io.github.tfuxu.gotk4_meson.jsonThe following packages are required to build this project:
- Golang >= 1.21
go - Gtk4
gtk4 - Meson
meson - Ninja
ninja-build
git clone https://github.com/tfuxu/gotk4_meson.git
cd gotk4_meson
meson setup builddir
meson configure builddir -Dprefix=/usr/local
ninja -C builddir installgit clone https://github.com/tfuxu/gotk4_meson.git
cd gotk4_meson
meson setup builddir
meson configure builddir -Dprefix="$(pwd)/builddir" -Dbuildtype=debug
ninja -C builddir install
meson devenv -C builddir ./bin/gotk4_mesonNote During testing and development, as a convenience, you can use the
local_run.shscript to quickly rebuild local builds.
- Add example Flatpak manifest
- Get translations to work