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 :)


In reply to Re^2: How to let my XS module interact with existing XS module? (ExtUtils::Depends) by Anonymous Monk
in thread How to let my XS module interact with existing XS module? by llancet

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.