Gtk2::CodeGen 1.122 review

by on

License: Perl Artistic License
File size: 603K
Developer: muppet
0 stars award from

Gtk2::CodeGen is a code generation utilities for Glib-based bindings.


# usually in Makefile.PL
use Gtk2::CodeGen;

# most common, use all defaults
Gtk2::CodeGen->parse_maps ('myprefix');

# more exotic, change everything
Gtk2::CodeGen->parse_maps ('foo',
input => 'foo.maps',
header => 'foo-autogen.h',
typemap => 'foo.typemap',
register => 'register-foo.xsh');
Gtk2::CodeGen->write_boot (filename => 'bootfoo.xsh',
glob => 'Foo*.xs',
ignore => '^(Foo|Foo::Bar)$');

This module packages some of the boilerplate code needed for performing code generation typically used by perl bindings for gobject-based libraries, using the Glib module as a base.

The default output filenames are in the subdirectory 'build', which usually will be present if you are using ExtUtils::Depends (as most Glib-based extensions probably should).


Gtk2::CodeGen 1.122 search tags