lazarus/tools/gir2pascal
Abou Al Montacir cd0756f17b gir2pas: Enabled generating Pascal sets to C bitfield enums by CLO.
Based on command line option (CLO) `-e/--declare-enums-as` that
selects the way how to define C enums and bit fields.

Added support for 5th options in addition 4 already implemented.
 1. `IntConst`: No type, just use integer non typed constants. This was
    already implemented, but not easily selected at CLI.
 2. `TypedIntConst`: Use non strict type aliases and typed constants.
    This was already implemented, selected by default in the code.
 3. `IntAliasConst`: Use strict type aliases and non typed constants.
    This was newly added.
 4. `Enum`: Use Pascal enumeration type for both C enums and bit fields.
    This was newly added.
 5. `Set`: Use Pascal enumeration type for both C enums and Pascal sets
    for bit fields. This is now implemented.
2023-06-04 10:10:42 +00:00
..
.gitignore Renamed executable from gir2pascal to gir2pas. 2023-06-04 10:10:42 +00:00
commandlineoptions.pas
gir2pascal.ico
gir2pascal.lpi Renamed executable from gir2pascal to gir2pas. 2023-06-04 10:10:42 +00:00
gir2pascal.lpr gir2pascal: Small code improvements. 2023-05-27 15:53:56 +00:00
gir2pascal.res
girctypesmapping.pas
girerrors.pas
girfiles.pas
girnamespaces.pas Fixed issue causing generation of duplicate declarations for some opaque types. 2023-05-23 12:57:27 +00:00
girobjects.pas gir2pascal: Updated to support generating Gtk4 bindings. Patch from theo222, issue #40196. 2023-04-06 01:49:50 +03:00
girparser.pas
girpascalclasswriter.pas
girpascalwriter.pas
girpascalwritertypes.pas gir2pas: Enabled generating Pascal sets to C bitfield enums by CLO. 2023-06-04 10:10:42 +00:00
girtokens.pas gir2pascal: Updated to support generating Gtk4 bindings. Patch from theo222, issue #40196. 2023-04-06 01:49:50 +03:00
LICENSE.md
Makefile Renamed executable from gir2pascal to gir2pas. 2023-06-04 10:10:42 +00:00
README.md Renamed executable from gir2pascal to gir2pas. 2023-06-04 10:10:42 +00:00

gir2pas

The [gir2pas][] utility is a program to convert the GIR metadata format (= XML files) used by GObject introspection into usable Pascal source code, suitable for generating corresponding language bindings.

It was originaly named gir2pascal maintained as part of the Lazarus Code and Component Repository (lazarus-ccr, wiki article), see applications/gobject-introspection/. Later it has received some maintenance by n1tehawk and finally was imported from his repository into Lazarus source tree.

License

This project builds upon the original Lazarus CCR version and is thus intended to follow the same licensing principles. For the gobject-introspection folder this seems to be GPL v2, as referenced in a number of file headers.