Object::Pad::ExtensionBuilder(3pm)

Object::Pad::ExtensionBuilder3pm

Build-time support for extensions to "object::pad"

Usage

In Build.PL:

   use Object::Pad::ExtensionBuilder;
   my $build = Module::Build->new)
      ...,
      configure_requires => {
         'Object::Pad::ExtensionBuilder' => 0,
      },
   );
   Object::Pad::ExtensionBuilder->extend_module_build( $build );
   ...

Overview

This module provides a build-time helper to assist authors writing XS modules that provide Object::Pad extensions. It prepares a Module::Build-using distribution to be able to compile it.

Methods

write_object_pad_h

   Object::Pad::ExtensionBuilder->write_object_pad_h;

This method no longer does anything since version 0.810.

extra_compiler_flags

   @flags = Object::Pad::ExtensionBuilder->extra_compiler_flags;

Returns a list of extra flags that the build scripts should add to the compiler invocation. This enables the C compiler to find the object_pad.h file.

extend_module_build

   Object::Pad::ExtensionBuilder->extend_module_build( $build );

A convenient shortcut for performing all the tasks necessary to make a Module::Build-based distribution use the helper.

Releases

2 releases since Debian 12 (Bookworm); the text changed 1 time.

  1. 12
  2. 13

Author

Paul Evans <[email protected]>

From libobject-pad-perl 0.820-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.