GIR2PAS(1)

πŸ“¦
version 0.1.1 Β· 2 versions
, in ubuntu stonking

✨ NAME ✨

gir2pas β€” Pascal binding generator for GObject Introspection 🌸

No cap, that's the whole vibe: it takes GIR stuff and gives you Pascal. Iconic behavior.


πŸŽ€ SYNOPSIS πŸŽ€

gir2pas [options] -i filename

Like, that's it. Options first, then you have to tell it which file. πŸ’…


πŸ’– DESCRIPTION πŸ’–

okay so bestie, real talk: this is the full run-down of every flag gir2pas will accept. No skipping, no "you'll figure it out", we're going through all of them together. Sit down, hydrate, let's go 🫢

  • -h, --help β€” show this help message. Yeah, the classic. It literally just tells you what you're already looking at. Love that for us. πŸ™ˆ
  • -i, --input β€” the GIR filename you want converted (without extention β€” that's the original's spelling, not mine, iykyk πŸ’€).
  • -o, --output-directory β€” the directory where the resulting .pas files get written. If you don't specify it, then the current working directory is used. So if you're like "where did my files go" β€” bestie, they're right there. πŸ‘€
  • -D, --dynamic β€” use unit dynlibs and link at runtime. Runtime linking era. ⚑
  • -N, --no-wrappers β€” do not create wrappers for objects. Straight up, no wrapper arc. 🚫
  • -w, --overwrite-files β€” if the output .pas file(s) already exists, then overwrite them.
⚠️ bestie, pay attention: this one overwrites your existing output .pas file(s). If they exist, they're gone. No recycling bin energy. Be sure before you press enter. 😭
  • -n, --no-default β€” /usr/share/gir-1.0 is not added as a search location for needed .gir files. Basically you're unfollowing the default path. πŸ’”
  • -p, --paths β€” a list of paths, seperated by :, to search for needed .gir files. Yes, colon-separated, like a little path salad. πŸ₯—
  • -d, --deprecated β€” include fields and methods marked as deprecated. Embrace the ancient lore. 🏺
  • -t, --test β€” creates a test program per unit to verify struct sizes. Testing era, we love to see it. βœ…
  • -P, --unit-prefix β€” set a prefix to be added to each unitname. Glow-up for your unit names. ✨
  • -M, --max-version β€” do not include symbols introduced after <max-version>. Can be used multiple times, i.e. "-M gtk-3.12 -M glib-2.23". Stack 'em like bracelets. 🫢
  • -k, --keep-deprecated-version β€” include deprecated symbols that are >= to $version. Uses the same format as --max-version. Has no effect if --deprecated is defined.
🚩 note to self: --deprecated wins the argument. If --deprecated is defined, -k just sits there politely doing nothing.
  • -e, --declare-enums-as β€” declare C enums as either IntConst, TypedIntConst, IntAliasConst, Enum or Set. Pick your fighter. πŸ₯Š
  • -v, --verbose β€” verbose level (error, warning, info, debug). Turn the volume knob up as far as you want. πŸ”Š

<divider>

and that's the whole page, bestie πŸ’œ this manual for gir2pas version 0.1.1-1 is dated March 2026 β€” go forth, generate those Pascal bindings, and remember: read the flags before you overwrite anything. mwah πŸŽ€πŸ¦‹πŸ’…

πŸ“¦ where this page comes from