in reply to Re: How to let my XS module interact with existing XS module?
in thread How to let my XS module interact with existing XS module?
It seems an typemap can be shared only if its author made it using ExtUtils::Typemap as a module
Never heard of that. Its a file, if its installed, and you can find it, you can include it
https://metacpan.org/module/ExtUtils::MakeMaker#TYPEMAPS
Pango-1.221\blib\arch\Pango\Install\Files.pm Pango-1.221\blib\arch\Pango\Install\pango-perl-autogen.h Pango-1.221\blib\arch\Pango\Install\pango-perl-versions.h Pango-1.221\blib\arch\Pango\Install\pango-perl.h Pango-1.221\blib\arch\Pango\Install\pango-perl.typemap Pango-1.221\blib\arch\Pango\Install\pango.typemap
Gtk2::Install::Files
package Gtk2::Install::Files; $self = { 'inc' => '-mms-bitfields -IC:/gtk_bundle/include/gtk-2.0 -IC +:/gtk_bundle/lib/gtk-2.0/include -IC:/gtk_bundle/include/atk-1.0 -IC: +/gtk_bundle/include/cairo -IC:/gtk_bundle/include/pango-1.0 -IC:/gtk_ +bundle/include/glib-2.0 -IC:/gtk_bundle/lib/glib-2.0/include -IC:/gtk +_bundle/include/freetype2 -IC:/gtk_bundle/include -IC:/gtk_bundle/inc +lude/libpng12 -I./build ', 'typemaps' => [ 'gtk2perl.typemap', 'gdk.typemap', 'gtk.typemap' ], 'deps' => [ 'Pango', 'Glib', 'Cairo' ], 'libs' => '-LC:/gtk_bundle/lib -lgtk-win32-2.0 -lgdk-win32-2 +.0 -latk-1.0 -lgio-2.0 -lgdk_pixbuf-2.0 -lpangowin32-1.0 -lgdi32 -lpa +ngocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lglib-2 +.0 -lintl ' }; # this is for backwards compatiblity @deps = @{ $self->{deps} }; @typemaps = @{ $self->{typemaps} }; $libs = $self->{libs}; $inc = $self->{inc}; $CORE = undef; foreach (@INC) { if ( -f $_ . "/Gtk2/Install/Files.pm") { $CORE = $_ . "/Gtk2/Install/"; last; } } 1;
Seems Gtk2::Install::Files is generated by ExtUtils::Depends, so just use ExtUtils::Depends in Makefile.PL and ... less work for you :)
|
|---|