GIR2PAS(1)
β¨ 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.pasfiles 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.pasfile(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.0is not added as a search location for needed.girfiles. Basically you're unfollowing the default path. π-p,--pathsβ a list of paths, seperated by:, to search for needed.girfiles. 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--deprecatedis defined.
π© note to self:--deprecatedwins the argument. If--deprecatedis defined,-kjust sits there politely doing nothing.
-e,--declare-enums-asβ declare C enums as eitherIntConst,TypedIntConst,IntAliasConst,EnumorSet. 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
- ubuntu stonking: gir2pas 0.1.1-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms