1Object::Pad::ExtensionBUusielrdeCro(n3t)ributed Perl DocOubmjeenctta:t:iPoand::ExtensionBuilder(3)
2
3
4
6 "Object::Pad::ExtensionBuilder" - build-time support for extensions to
7 "Object::Pad"
8
10 In Build.PL:
11
12 use Object::Pad::ExtensionBuilder;
13
14 my $build = Module::Build->new)
15 ...,
16 configure_requires => {
17 'Object::Pad::ExtensionBuilder' => 0,
18 },
19 );
20
21 Object::Pad::ExtensionBuilder->extend_module_build( $build );
22
23 ...
24
26 This module provides a build-time helper to assist authors writing XS
27 modules that provide Object::Pad extensions. It prepares a
28 Module::Build-using distribution to be able to compile it.
29
31 write_object_pad_h
32 Object::Pad::ExtensionBuilder->write_object_pad_h
33
34 Writes the object_pad.h file to the current working directory. To cause
35 the compiler to actually find this file, see "extra_compiler_flags".
36
37 extra_compiler_flags
38 @flags = Object::Pad::ExtensionBuilder->extra_compiler_flags
39
40 Returns a list of extra flags that the build scripts should add to the
41 compiler invocation. This enables the C compiler to find the
42 object_pad.h file.
43
44 extend_module_build
45 Object::Pad::ExtensionBuilder->extend_module_build( $build )
46
47 A convenient shortcut for performing all the tasks necessary to make a
48 Module::Build-based distribution use the helper.
49
51 Paul Evans <leonerd@leonerd.org.uk>
52
53
54
55perl v5.36.0 2022-12-01 Object::Pad::ExtensionBuilder(3)