Dist::Build::XS::Export(3pm)

Dist::Build::XS::Export3pm

Dist::build extension to export headers for other xs modules

Usage

 load_extension('Dist::Build::XS::Export');
 export_headers(
     module => 'Foo::Bar',
     dir    => 'include',
 );

Version

version 0.020

Overview

This "Dist::Build" extension will export headers for your module, so they can be used by other modules using "Dist::Build::Import".

Methods

export_headers

This copies the given header for the appropriate module to the approriate sharedir.

•

module

The name of the module to export. This defaults to the main module.

•

dir

The directory to export (e.g. 'include').

•

file

A file (or a list of files) to export (e.g. 'foo.h').

At least one of "dir" and "file" must be defined. Note that this function can be called multiple times (e.g. for multiple modules).

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. The "include_dirs", "defines", "extra_compiler_flags", "libraries", "library_dirs", "extra_linker_flags" arguments are all stored as-is.

Author

Leon Timmermans <[email protected]>

From libdist-build-perl 0.020-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.