Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.
/ swift-gir Public archive

Convert GIR files to their Swift source representation

License

Notifications You must be signed in to change notification settings

janvhs/swift-gir

Repository files navigation

SwiftGir

SwiftGir is a library, with accompanying CLI-tool to convert GObject repository files to their Swift source representation.

Prior Art

Before starting to develop this library, I took a look at the bigger ecosystem surrounding Swift and GObject.

There two implementations, which generate Swift from GIR files. The first option, which can be seen as a mature, is gir2swift by Rene Hexel and the second option is GtkCodeGen by stackotter developed as part of their swift-cross-ui efforts.

One outstanding implementation, I want to highlight and plan on referencing a lot, is gotk4 by diamondburned, which did an exceptional job at providing a Go-esque abstraction over the GObject libraries.

Getting Started

To build the CLI from source, run the following command.

$ swift build -c release

The produced binary is placed at .build/release/swift-gir.

About

Convert GIR files to their Swift source representation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages