---
name: "Dist::Build::XS::Import"
section: "3pm"
platform: "linux"
package: "libdist-build-perl"
version: "0.020-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Dist::Build::XS::Import"
---

# Dist::Build::XS::Import(3pm)

Dist::Build extension to import headers for other XS modules

## NAME

Dist::Build::XS::Import - Dist::Build extension to import headers for other XS modules

## VERSION

version 0.020

## SYNOPSIS

```
 load_extension('Dist::Build::XS');
 load_extension('Dist::Build::XS::Import');
 add_xs(
     module => 'Foo::Bar',
     import => 'My::Dependency',
 );
```

## DESCRIPTION

This module is an extension of Dist::Build::XS, adding an additional argument to the `"add_xs"` function: `"import"`. It is a counterpart to Dist::Build::XS::Export) will add the include dir and compilation flags for the given module.

## AUTHOR

Leon Timmermans \<fawaka@gmail.com\>

## 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.
