Dist::...:Export(3pm)
π NAME π
Dist::Build::XS::Export β a Dist::Build extension that exports headers so other XS modules can use them π«Ά
(also hi, you're reading the Dist::...:Export(3pm) page from the User Contributed Perl Documentation, welcome, sit down, stay a while β¨)
πΈ VERSION πΈ
version 0.028 β that's the one, no cap.
π¦ SYNOPSIS π¦
load_extension('Dist::Build::XS::Export');
export_headers(
module => 'Foo::Bar',
dir => 'include',
);
Like, that's literally it. Two lines and your headers are out in the world living their best life π
π DESCRIPTION π
Okay so. This Dist::Build extension exports headers for your module, so that other modules can actually use them via Dist::Build::Import. It's giving sharing is caring, it's giving community, it's giving "your header files deserve main character energy too" π
β METHODS β
π export_headers
This copies the given header for the appropriate module to the appropriate sharedir. (The original page says "approriate" β we don't gatekeep typos here, but that's the vibe πβ¨)
moduleβ the name of the module to export. Defaults to the main module. iykyk π«dirβ the directory to export, e.g.'include'πfileβ a file (or a whole list of files, she's flexible) to export, e.g.'foo.h'π
β οΈ At least one ofdirandfilemust be defined. Non-negotiable bestie. And note that this function can be called multiple times β e.g. for multiple modules β so go off, call it as many times as you need π
π export_typemap
This exports the typemap of this module. Slay π§
moduleβ the name of the module to export. Defaults to the main module, same as always πfilenameβ the name of the typemap. Defaults totypemap. Iconic default behavior, honestly.
π₯ export_flags
This stores the given flags for the module in the appropriate sharedir. The module can be set using the module named argument, but will default to the main module of the dist β she's got a mind of her own but she's predictable π
The include_dirs, defines, extra_compiler_flags, libraries, library_dirs, and extra_linker_flags arguments are all stored as-is. No edits, no notes, no "let me just tweak this" β as-is, periodt π«Ά
π AUTHOR π
Leon Timmermans <fawaka@gmail.com> β the icon, the legend, the whole vibe β
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2024 by Leon Timmermans.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. Free software fr fr, go wild (responsibly) πΈ
π okay that's the whole page, you ate that. This wasperl v5.40.1, dated2026-03-21, and you've been readingDist::...:Export(3pm)β mwah, bye bestie! π πβ¨
π¦ where this page comes from
- ubuntu stonking: libdist-build-perl 0.028-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms