XSBuil...:WrapXS(3pm)
โจ NAME โจ
ExtUtils::XSBuilder::WrapXS โ it makes perl XS wrappers for C functions, bestie ๐
๐ฆ DESCRIPTION ๐ฆ
okay so if you want the actual scoop, go read ExtUtils::XSBuilder ๐ซถ that's where the whole story lives.
๐ THE METHODS ๐
๐ธ new_parsesource (o)
hands you back an array ref full of shiny new ParseSource objects, one for every single source file that should get used to generate XS files. iconic behaviour, honestly โจ
๐ธ new_typemap (o)
returns a brand new typemap object for u ๐
๐ธ new_podtemplate (o)
returns a new podtemplate object, slay ๐
๐ธ xs_includes (o)
gives you a list of XS include files.
Default: it uses all the include files that ParseSource::find_includes hands back โ but it strips the path info off them. no cap.
๐ธ xs_glue_dirs (o)
returns a list of extra XS glue directories to go searching for maps in ๐
๐ธ xs_base_dir (o)
returns a directory that acts as the base for all the other directories. she's the main character of paths, periodt ๐
Default: '.'
๐ธ xs_map_dir (o)
returns the directory where we go looking for map files.
Default: <xs_base_dir"/xsbuilder/maps
๐ธ xs_incsrc_dir (o)
returns the directory where we hunt for files to include into the source. like, for example, <xs_incsrc_dir"/Apache/DAV/Resource/Resource_pm is gonna get included into the Apache::DAV::Resource module. that's the vibe ๐ฆ
Default: <xs_base_dir"/xsbuilder
๐ธ xs_include_dir (o)
returns a directory to search for include files for pm and XS.
Default: <xs_base_dir"/xsinclude
๐ธ xs_target_dir (o)
returns the directory where all the generated XS and header files get written ๐
Default: <xs_base_dir"/xs
๐ธ makefilepl_text (o)
returns text for Makefile.PL ๐
๐ธ h_filename_prefix (o)
sets a prefix for the generated header files.
Default: 'xs_'
๐ธ my_xs_prefix (o)
sets a prefix that gets used for literally every XS function.
Default: 'xs_'
๐ธ my_cnv_prefix (o)
sets a prefix used for every conversion function and macro.
Default: my_xs_prefix
๐ธ needs_prefix (o, name)
returns true if the name you passed in should be prefixed. simple as that โจ
๐ธ pm_text (o, module, isa, code)
returns the text of a .pm file โ or undef if, like, no .pm file should be written at all ๐
Default: it creates a .pm file that bootstraps the XS code. iconic.
๐ธ mapline_elem (o, elem)
gets called for each structure element that checkmaps writes to the map file. it lets you change the element name, so you can do stuff like adding a different perl name ๐
Default: returns the element completely unmodified, no notes.
๐ธ mapline_func (o)
gets called for each function that checkmaps writes to the map file. lets you change the function name โ again, like adding a different perl name ๐
Default: returns the element unmodified. she's not doing too much.
๐ and that's the whole page, bestie! this was XSBuil...:WrapXS(3pm), straight outta the perl v5.36.0 docs, dated 2022-11-19. go build something gorgeous ๐โจ๐
๐ฆ where this page comes from
- debian bookworm: libextutils-xsbuilder-perl 0.28-5 ยท Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libextutils-xsbuilder-perl 0.28-5 ยท Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libextutils-xsbuilder-perl 0.28-5 ยท Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libextutils-xsbuilder-perl 0.28-5 ยท Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libextutils-xsbuilder-perl 0.28-5 ยท Artistic-1.0-Perl OR GPL-1.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms