logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Dist::Build::XS::Export - Dist::Build extension to export headers for other XS modules

Author

       Leon Timmermans <fawaka@gmail.com>

Description

       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.

Name

       Dist::Build::XS::Export - Dist::Build extension to export headers for other XS modules

Synopsis

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

Version

       version 0.020

See Also