S_forget_pmop() only needs a flags argument for the ithreads case,
[p5sagit/p5-mst-13.2.git] / lib / Module / Build / API.pod
CommitLineData
dc8021d3 1=head1 NAME
2
3Module::Build::API - API Reference for Module Authors
4
5
6=head1 DESCRIPTION
7
8I list here some of the most important methods in C<Module::Build>.
9Normally you won't need to deal with these methods unless you want to
10subclass C<Module::Build>. But since one of the reasons I created
11this module in the first place was so that subclassing is possible
12(and easy), I will certainly write more docs as the interface
13stabilizes.
14
15
16=head2 CONSTRUCTORS
17
18=over 4
19
20=item current()
21
22[version 0.20]
23
24This method returns a reasonable facsimile of the currently-executing
25C<Module::Build> object representing the current build. You can use
26this object to query its C<notes()> method, inquire about installed
27modules, and so on. This is a great way to share information between
28different parts of your build process. For instance, you can ask
29the user a question during C<perl Build.PL>, then use their answer
30during a regression test:
31
32 # In Build.PL:
33 my $color = $build->prompt("What is your favorite color?");
34 $build->notes(color => $color);
35
36 # In t/colortest.t:
37 use Module::Build;
38 my $build = Module::Build->current;
39 my $color = $build->notes('color');
40 ...
41
42The way the C<current()> method is currently implemented, there may be
43slight differences between the C<$build> object in Build.PL and the
44one in C<t/colortest.t>. It is our goal to minimize these differences
45in future releases of Module::Build, so please report any anomalies
46you find.
47
48One important caveat: in its current implementation, C<current()> will
49B<NOT> work correctly if you have changed out of the directory that
50C<Module::Build> was invoked from.
51
52=item new()
53
54[version 0.03]
55
56Creates a new Module::Build object. Arguments to the new() method are
57listed below. Most arguments are optional, but you must provide
58either the C<module_name> argument, or C<dist_name> and one of
59C<dist_version> or C<dist_version_from>. In other words, you must
60provide enough information to determine both a distribution name and
61version.
62
63
64=over 4
65
66=item add_to_cleanup
67
68[version 0.19]
69
70An array reference of files to be cleaned up when the C<clean> action
71is performed. See also the add_to_cleanup() method.
72
73=item auto_features
74
75[version 0.26]
76
77This parameter supports the setting of features (see
78L<feature($name)>) automatically based on a set of prerequisites. For
79instance, for a module that could optionally use either MySQL or
80PostgreSQL databases, you might use C<auto_features> like this:
81
82 my $build = Module::Build->new
83 (
84 ...other stuff here...
85 auto_features => {
86 pg_support => {
87 description => "Interface with Postgres databases",
88 requires => { 'DBD::Pg' => 23.3,
89 'DateTime::Format::Pg' => 0 },
90 },
91 mysql_support => {
92 description => "Interface with MySQL databases",
93 requires => { 'DBD::mysql' => 17.9,
94 'DateTime::Format::MySQL' => 0 },
95 },
96 }
97 );
98
99For each feature named, the required prerequisites will be checked, and
100if there are no failures, the feature will be enabled (set to C<1>).
101Otherwise the failures will be displayed to the user and the feature
102will be disabled (set to C<0>).
103
104See the documentation for L<requires> for the details of how
105requirements can be specified.
106
107=item autosplit
108
109[version 0.04]
110
111An optional C<autosplit> argument specifies a file which should be run
112through the C<Autosplit::autosplit()> function. If multiple files
113should be split, the argument may be given as an array of the files to
114split.
115
116In general I don't consider autosplitting a great idea, because it's
117not always clear that autosplitting achieves its intended performance
118benefits. It may even harm performance in environments like mod_perl,
119where as much as possible of a module's code should be loaded during
120startup.
121
122=item build_class
123
124[version 0.28]
125
126The Module::Build class or subclass to use in the build
127script. Defaults to "Module::Build" or the class name passed to or
128created by a call to C<subclass()>. This property is useful if you're
129writing a custom Module::Build subclass and have a bootstrapping
130problem--that is, your subclass requires modules that may not be
131installed when C<perl Build.PL> is executed, but you've listed in
132C<build_requires> so that they should be available when C<./Build> is
133executed.
134
135=item build_requires
136
137[version 0.07]
138
139Modules listed in this section are necessary to build and install the
140given module, but are not necessary for regular usage of it. This is
141actually an important distinction - it allows for tighter control over
142the body of installed modules, and facilitates correct dependency
143checking on binary/packaged distributions of the module.
144
145See the documentation for L<Module::Build::Authoring/"PREREQUISITES">
146for the details of how requirements can be specified.
147
148=item create_packlist
149
150[version 0.28]
151
152If true, this parameter tells Module::Build to create a F<.packlist>
153file during the C<install> action, just like ExtUtils::MakeMaker does.
154The file is created in a subdirectory of the C<arch> installation
155location. It is used by some other tools (CPAN, CPANPLUS, etc.) for
156determining what files are part of an install.
157
158The default value is true. This parameter was introduced in
159Module::Build version 0.2609; previously no packlists were ever
160created by Module::Build.
161
162=item c_source
163
164[version 0.04]
165
166An optional C<c_source> argument specifies a directory which contains
167C source files that the rest of the build may depend on. Any C<.c>
168files in the directory will be compiled to object files. The
169directory will be added to the search path during the compilation and
170linking phases of any C or XS files.
171
172=item conflicts
173
174[version 0.07]
175
176Modules listed in this section conflict in some serious way with the
177given module. C<Module::Build> (or some higher-level tool) will
178refuse to install the given module if the given module/version is also
179installed.
180
181See the documentation for L<Module::Build::Authoring/"PREREQUISITES">
182for the details of how requirements can be specified.
183
184=item create_makefile_pl
185
186[version 0.19]
187
188This parameter lets you use Module::Build::Compat during the
189C<distdir> (or C<dist>) action to automatically create a Makefile.PL
190for compatibility with ExtUtils::MakeMaker. The parameter's value
191should be one of the styles named in the Module::Build::Compat
192documentation.
193
194=item create_readme
195
196[version 0.22]
197
198This parameter tells Module::Build to automatically create a F<README>
199file at the top level of your distribution. Currently it will simply
200use C<Pod::Text> (or C<Pod::Readme> if it's installed) on the file
201indicated by C<dist_version_from> and put the result in the F<README>
202file. This is by no means the only recommended style for writing a
203README, but it seems to be one common one used on the CPAN.
204
205If you generate a F<README> in this way, it's probably a good idea to
206create a separate F<INSTALL> file if that information isn't in the
207generated F<README>.
208
209=item dist_abstract
210
211[version 0.20]
212
213This should be a short description of the distribution. This is used
214when generating metadata for F<META.yml> and PPD files. If it is not
215given then C<Module::Build> looks in the POD of the module from which
216it gets the distribution's version. It looks for the first line
217matching C<$package\s-\s(.+)>, and uses the captured text as the
218abstract.
219
220=item dist_author
221
222[version 0.20]
223
224This should be something like "John Doe <jdoe@example.com>", or if
225there are multiple authors, an anonymous array of strings may be
226specified. This is used when generating metadata for F<META.yml> and
227PPD files. If this is not specified, then C<Module::Build> looks at
228the module from which it gets the distribution's version. If it finds
229a POD section marked "=head1 AUTHOR", then it uses the contents of
230this section.
231
232=item dist_name
233
234[version 0.11]
235
236Specifies the name for this distribution. Most authors won't need to
237set this directly, they can use C<module_name> to set C<dist_name> to
238a reasonable default. However, some agglomerative distributions like
239C<libwww-perl> or C<bioperl> have names that don't correspond directly
240to a module name, so C<dist_name> can be set independently.
241
242=item dist_version
243
244[version 0.11]
245
246Specifies a version number for the distribution. See C<module_name>
247or C<dist_version_from> for ways to have this set automatically from a
248C<$VERSION> variable in a module. One way or another, a version
249number needs to be set.
250
251=item dist_version_from
252
253[version 0.11]
254
255Specifies a file to look for the distribution version in. Most
256authors won't need to set this directly, they can use C<module_name>
257to set it to a reasonable default.
258
259The version is extracted from the specified file according to the same
260rules as C<ExtUtils::MakeMaker> and C<CPAN.pm>. It involves finding
261the first line that matches the regular expression
262
263 /([\$*])(([\w\:\']*)\bVERSION)\b.*\=/
264
265eval()-ing that line, then checking the value of the C<$VERSION>
266variable. Quite ugly, really, but all the modules on CPAN depend on
267this process, so there's no real opportunity to change to something
268better.
269
270=item dynamic_config
271
272[version 0.07]
273
274A boolean flag indicating whether the F<Build.PL> file must be
275executed, or whether this module can be built, tested and installed
276solely from consulting its metadata file. The main reason to set this
277to a true value is that your module performs some dynamic
278configuration as part of its build/install process. If the flag is
279omitted, the F<META.yml> spec says that installation tools should
280treat it as 1 (true), because this is a safer way to behave.
281
282Currently C<Module::Build> doesn't actually do anything with this flag
283- it's up to higher-level tools like C<CPAN.pm> to do
284something useful with it. It can potentially bring lots of security,
285packaging, and convenience improvements.
286
287=item extra_compiler_flags
288
289=item extra_linker_flags
290
291[version 0.19]
292
293These parameters can contain array references (or strings, in which
294case they will be split into arrays) to pass through to the compiler
295and linker phases when compiling/linking C code. For example, to tell
296the compiler that your code is C++, you might do:
297
298 my $build = Module::Build->new
299 (
300 module_name => 'Foo::Bar',
301 extra_compiler_flags => ['-x', 'c++'],
302 );
303
304To link your XS code against glib you might write something like:
305
306 my $build = Module::Build->new
307 (
308 module_name => 'Foo::Bar',
309 dynamic_config => 1,
310 extra_compiler_flags => scalar `glib-config --cflags`,
311 extra_linker_flags => scalar `glib-config --libs`,
312 );
313
314=item get_options
315
316[version 0.26]
317
318You can pass arbitrary command line options to F<Build.PL> or
319F<Build>, and they will be stored in the Module::Build object and can
320be accessed via the C<args()> method. However, sometimes you want
321more flexibility out of your argument processing than this allows. In
322such cases, use the C<get_options> parameter to pass in a hash
323reference of argument specifications, and the list of arguments to
324F<Build.PL> or F<Build> will be processed according to those
325specifications before they're passed on to C<Module::Build>'s own
326argument processing.
327
328The supported option specification hash keys are:
329
330
331=over 4
332
333=item type
334
335The type of option. The types are those supported by Getopt::Long; consult
336its documentation for a complete list. Typical types are C<=s> for strings,
337C<+> for additive options, and C<!> for negatable options. If the
338type is not specified, it will be considered a boolean, i.e. no
339argument is taken and a value of 1 will be assigned when the option is
340encountered.
341
342=item store
343
344A reference to a scalar in which to store the value passed to the option.
345If not specified, the value will be stored under the option name in the
346hash returned by the C<args()> method.
347
348=item default
349
350A default value for the option. If no default value is specified and no option
351is passed, then the option key will not exist in the hash returned by
352C<args()>.
353
354=back
355
356
357You can combine references to your own variables or subroutines with
358unreferenced specifications, for which the result will also be stored in the
359hash returned by C<args()>. For example:
360
361 my $loud = 0;
362 my $build = Module::Build->new
363 (
364 module_name => 'Foo::Bar',
365 get_options => {
366 loud => { store => \$loud },
367 dbd => { type => '=s' },
368 quantity => { type => '+' },
369 }
370 );
371
372 print STDERR "HEY, ARE YOU LISTENING??\n" if $loud;
373 print "We'll use the ", $build->args('dbd'), " DBI driver\n";
374 print "Are you sure you want that many?\n"
375 if $build->args('quantity') > 2;
376
377The arguments for such a specification can be called like so:
378
379 perl Build.PL --loud --dbd=DBD::pg --quantity --quantity --quantity
380
381B<WARNING:> Any option specifications that conflict with Module::Build's own
382options (defined by its properties) will throw an exception.
383
384Consult the Getopt::Long documentation for details on its usage.
385
386=item include_dirs
387
388[version 0.24]
389
390Specifies any additional directories in which to search for C header
391files. May be given as a string indicating a single directory, or as
392a list reference indicating multiple directories.
393
394=item install_path
395
396[version 0.19]
397
398You can set paths for individual installable elements by using the
399C<install_path> parameter:
400
401 my $build = Module::Build->new
402 (
403 ...other stuff here...
404 install_path => {
405 lib => '/foo/lib',
406 arch => '/foo/lib/arch',
407 }
408 );
409
410=item installdirs
411
412[version 0.19]
413
414Determines where files are installed within the normal perl hierarchy
415as determined by F<Config.pm>. Valid values are: C<core>, C<site>,
416C<vendor>. The default is C<site>. See
417L<Module::Build/"INSTALL PATHS">
418
419=item license
420
421[version 0.07]
422
423Specifies the licensing terms of your distribution. Valid options include:
424
425
426=over 4
427
428=item apache
429
430The distribution is licensed under the Apache Software License
431(http://opensource.org/licenses/apachepl.php).
432
433=item artistic
434
435The distribution is licensed under the Artistic License, as specified
436by the F<Artistic> file in the standard perl distribution.
437
438=item bsd
439
440The distribution is licensed under the BSD License
441(http://www.opensource.org/licenses/bsd-license.php).
442
443=item gpl
444
445The distribution is licensed under the terms of the Gnu General
446Public License (http://www.opensource.org/licenses/gpl-license.php).
447
448=item lgpl
449
450The distribution is licensed under the terms of the Gnu Lesser
451General Public License
452(http://www.opensource.org/licenses/lgpl-license.php).
453
454=item mit
455
456The distribution is licensed under the MIT License
457(http://opensource.org/licenses/mit-license.php).
458
459=item mozilla
460
461The distribution is licensed under the Mozilla Public
462License. (http://opensource.org/licenses/mozilla1.0.php or
463http://opensource.org/licenses/mozilla1.1.php)
464
465=item open_source
466
467The distribution is licensed under some other Open Source
468Initiative-approved license listed at
469http://www.opensource.org/licenses/ .
470
471=item perl
472
473The distribution may be copied and redistributed under the same terms
474as perl itself (this is by far the most common licensing option for
475modules on CPAN). This is a dual license, in which the user may
476choose between either the GPL or the Artistic license.
477
478=item restrictive
479
480The distribution may not be redistributed without special permission
481from the author and/or copyright holder.
482
483=item unrestricted
484
485The distribution is licensed under a license that is B<not> approved
486by www.opensource.org but that allows distribution without
487restrictions.
488
489=back
490
491
492Note that you must still include the terms of your license in your
493documentation - this field only lets automated tools figure out your
494licensing restrictions. Humans still need something to read. If you
495choose to provide this field, you should make sure that you keep it in
496sync with your written documentation if you ever change your licensing
497terms.
498
499It is a fatal error to use a license other than the ones mentioned
500above. This is not because I wish to impose licensing terms on you -
501please let me know if you would like another license option to be
502added to the list. You may also use a license type of C<unknown> if
503you don't wish to specify your terms (but this is usually not a good
504idea for you to do!).
505
506I just started out with a small set of licenses to keep things simple,
507figuring I'd let people with actual working knowledge in this area
508tell me what to do. So if that's you, drop me a line.
509
510=item meta_add
511
512[version 0.28]
513
514A hash of key/value pairs that should be added to the F<META.yml> file
515during the C<distmeta> action. Any existing entries with the same
516names will be overridden.
517
518=item meta_merge
519
520[version 0.28]
521
522A hash of key/value pairs that should be merged into the F<META.yml>
523file during the C<distmeta> action. Any existing entries with the
524same names will be overridden.
525
526The only difference between C<meta_add> and C<meta_merge> is their
527behavior on hash-valued and array-valued entries: C<meta_add> will
528completely blow away the existing hash or array value, but
529C<meta_merge> will merge the supplied data into the existing hash or
530array value.
531
532=item module_name
533
534[version 0.03]
535
536The C<module_name> is a shortcut for setting default values of
537C<dist_name> and C<dist_version_from>, reflecting the fact that the
538majority of CPAN distributions are centered around one "main" module.
539For instance, if you set C<module_name> to C<Foo::Bar>, then
540C<dist_name> will default to C<Foo-Bar> and C<dist_version_from> will
541default to C<lib/Foo/Bar.pm>. C<dist_version_from> will in turn be
542used to set C<dist_version>.
543
544Setting C<module_name> won't override a C<dist_*> parameter you
545specify explicitly.
546
547=item PL_files
548
549[version 0.06]
550
551An optional parameter specifying a set of C<.PL> files in your
552distribution. These will be run as Perl scripts prior to processing
553the rest of the files in your distribution. They are usually used as
554templates for creating other files dynamically, so that a file like
555C<lib/Foo/Bar.pm.PL> might create the file C<lib/Foo/Bar.pm>.
556
557The files are specified with the C<.PL> files as hash keys, and the
558file(s) they generate as hash values, like so:
559
560 my $build = Module::Build->new
561 (
562 module_name => 'Foo::Bar',
563 ...
564 PL_files => { 'lib/Foo/Bar.pm.PL' => 'lib/Foo/Bar.pm' },
565 );
566
567Note that the path specifications are I<always> given in Unix-like
568format, not in the style of the local system.
569
570If your C<.PL> scripts don't create any files, or if they create files
571with unexpected names, or even if they create multiple files, you can
572indicate that so that Module::Build can properly handle these created
573files:
574
575 PL_files => {
576 'lib/Foo/Bar.pm.PL' => 'lib/Foo/Bar.pm',
577 'lib/something.PL' => ['/lib/something', '/lib/else'],
578 'lib/funny.PL' => [],
579 }
580
581=item pm_files
582
583[version 0.19]
584
585An optional parameter specifying the set of C<.pm> files in this
586distribution, specified as a hash reference whose keys are the files'
587locations in the distributions, and whose values are their logical
588locations based on their package name, i.e. where they would be found
589in a "normal" Module::Build-style distribution. This parameter is
590mainly intended to support alternative layouts of files.
591
592For instance, if you have an old-style MakeMaker distribution for a
593module called C<Foo::Bar> and a F<Bar.pm> file at the top level of the
594distribution, you could specify your layout in your C<Build.PL> like
595this:
596
597 my $build = Module::Build->new
598 (
599 module_name => 'Foo::Bar',
600 ...
601 pm_files => { 'Bar.pm' => 'lib/Foo/Bar.pm' },
602 );
603
604Note that the values should include C<lib/>, because this is where
605they would be found in a "normal" Module::Build-style distribution.
606
607Note also that the path specifications are I<always> given in
608Unix-like format, not in the style of the local system.
609
610=item pod_files
611
612[version 0.19]
613
614Just like C<pm_files>, but used for specifying the set of C<.pod>
615files in your distribution.
616
617=item recommends
618
619[version 0.08]
620
621This is just like the C<requires> argument, except that modules listed
622in this section aren't essential, just a good idea. We'll just print
623a friendly warning if one of these modules aren't found, but we'll
624continue running.
625
626If a module is recommended but not required, all tests should still
627pass if the module isn't installed. This may mean that some tests
628may be skipped if recommended dependencies aren't present.
629
630Automated tools like CPAN.pm should inform the user when recommended
631modules aren't installed, and it should offer to install them if it
632wants to be helpful.
633
634See the documentation for L<Module::Build::Authoring/"PREREQUISITES">
635for the details of how requirements can be specified.
636
637=item recursive_test_files
638
639[version 0.28]
640
641Normally, C<Module::Build> does not search subdirectories when looking
642for tests to run. When this options is set it will search recursively
643in all subdirectories of the standard 't' test directory.
644
645=item requires
646
647[version 0.07]
648
649An optional C<requires> argument specifies any module prerequisites
650that the current module depends on.
651
652One note: currently C<Module::Build> doesn't actually I<require> the
653user to have dependencies installed, it just strongly urges. In the
654future we may require it. There's also a C<recommends> section for
655things that aren't absolutely required.
656
657Automated tools like CPAN.pm should refuse to install a module if one
658of its dependencies isn't satisfied, unless a "force" command is given
659by the user. If the tools are helpful, they should also offer to
660install the dependencies.
661
662A synonym for C<requires> is C<prereq>, to help succour people
663transitioning from C<ExtUtils::MakeMaker>. The C<requires> term is
664preferred, but the C<prereq> term will remain valid in future
665distributions.
666
667See the documentation for L<Module::Build::Authoring/"PREREQUISITES">
668for the details of how requirements can be specified.
669
670=item script_files
671
672[version 0.18]
673
674An optional parameter specifying a set of files that should be
675installed as executable perl scripts when the module is installed.
676May be given as an array reference of the files, or as a hash
677reference whose keys are the files (and whose values will currently be
678ignored).
679
680The default is to install no script files - in other words, there is
681no default location where Module::Build will look for script files to
682install.
683
684For backward compatibility, you may use the parameter C<scripts>
685instead of C<script_files>. Please consider this usage deprecated,
686though it will continue to exist for several version releases.
687
688=item sign
689
690[version 0.16]
691
692If a true value is specified for this parameter, C<Module::Signature>
693will be used (via the 'distsign' action) to create a SIGNATURE file
694for your distribution during the 'distdir' action, and to add the
695SIGNATURE file to the MANIFEST (therefore, don't add it yourself).
696
697The default value is false. In the future, the default may change to
698true if you have C<Module::Signature> installed on your system.
699
700=item test_files
701
702[version 0.23]
703
704An optional parameter specifying a set of files that should be used as
705C<Test::Harness>-style regression tests to be run during the C<test>
706action. May be given as an array reference of the files, or as a hash
707reference whose keys are the files (and whose values will currently be
708ignored). If the argument is given as a single string (not in an
709array reference), that string will be treated as a C<glob()> pattern
710specifying the files to use.
711
712The default is to look for a F<test.pl> script in the top-level
713directory of the distribution, and any files matching the glob pattern
714C<*.t> in the F<t/> subdirectory. If the C<recursive_test_files>
715property is true, then the C<t/> directory will be scanned recursively
716for C<*.t> files.
717
77e96e88 718
dc8021d3 719=item xs_files
720
721[version 0.19]
722
723Just like C<pm_files>, but used for specifying the set of C<.xs>
724files in your distribution.
725
726=back
727
728
729=item new_from_context(%args)
730
731[version 0.28]
732
733When called from a directory containing a F<Build.PL> script and a
734F<META.yml> file (in other words, the base directory of a
735distribution), this method will run the F<Build.PL> and return the
736resulting C<Module::Build> object to the caller. Any key-value
737arguments given to C<new_from_context()> are essentially like
738command line arguments given to the F<Build.PL> script, so for example
739you could pass C<< verbose => 1 >> to this method to turn on
740verbosity.
741
742=item resume()
743
744[version 0.03]
745
746You'll probably never call this method directly, it's only called from
747the auto-generated C<Build> script. The C<new()> method is only
748called once, when the user runs C<perl Build.PL>. Thereafter, when
749the user runs C<Build test> or another action, the C<Module::Build>
750object is created using the C<resume()> method to re-instantiate with
751the settings given earlier to C<new()>.
752
753=item subclass()
754
755[version 0.06]
756
757This creates a new C<Module::Build> subclass on the fly, as described
758in the L<Module::Build::Authoring/"SUBCLASSING"> section. The caller
759must provide either a C<class> or C<code> parameter, or both. The
760C<class> parameter indicates the name to use for the new subclass, and
761defaults to C<MyModuleBuilder>. The C<code> parameter specifies Perl
762code to use as the body of the subclass.
763
764=back
765
766
767=head2 METHODS
768
769=over 4
770
771=item add_build_element($type)
772
773[version 0.26]
774
775Adds a new type of entry to the build process. Accepts a single
776string specifying its type-name. There must also be a method defined
777to process things of that type, e.g. if you add a build element called
778C<'foo'>, then you must also define a method called
779C<process_foo_files()>.
780
781See also
782L<Module::Build::Cookbook/"Adding new file types to the build process">.
783
784=item add_to_cleanup(@files)
785
786[version 0.03]
787
788You may call C<< $self->add_to_cleanup(@patterns) >> to tell
789C<Module::Build> that certain files should be removed when the user
790performs the C<Build clean> action. The arguments to the method are
791patterns suitable for passing to Perl's C<glob()> function, specified
792in either Unix format or the current machine's native format. It's
793usually convenient to use Unix format when you hard-code the filenames
794(e.g. in F<Build.PL>) and the native format when the names are
795programmatically generated (e.g. in a testing script).
796
797I decided to provide a dynamic method of the C<$build> object, rather
798than just use a static list of files named in the F<Build.PL>, because
799these static lists can get difficult to manage. I usually prefer to
800keep the responsibility for registering temporary files close to the
801code that creates them.
802
803=item args()
804
805[version 0.26]
806
807 my $args_href = $build->args;
808 my %args = $build->args;
809 my $arg_value = $build->args($key);
810 $build->args($key, $value);
811
812This method is the preferred interface for retrieving the arguments passed via
813command line options to F<Build.PL> or F<Build>, minus the Module-Build
814specific options.
815
816When called in in a scalar context with no arguments, this method returns a
817reference to the hash storing all of the arguments; in an array context, it
818returns the hash itself. When passed a single argument, it returns the value
819stored in the args hash for that option key. When called with two arguments,
820the second argument is assigned to the args hash under the key passed as the
821first argument.
822
823=item autosplit_file($from, $to)
824
825[version 0.28]
826
827Invokes the C<AutoSplit> module on the C<$from> file, sending the
828output to the C<lib/auto> directory inside C<$to>. C<$to> is
829typically the C<blib/> directory.
830
831=item base_dir()
832
833[version 0.14]
834
835Returns a string containing the root-level directory of this build,
836i.e. where the C<Build.PL> script and the C<lib> directory can be
837found. This is usually the same as the current working directory,
838because the C<Build> script will C<chdir()> into this directory as
839soon as it begins execution.
840
841=item build_requires()
842
843[version 0.21]
844
845Returns a hash reference indicating the C<build_requires>
846prerequisites that were passed to the C<new()> method.
847
848=item check_installed_status($module, $version)
849
850[version 0.11]
851
852This method returns a hash reference indicating whether a version
853dependency on a certain module is satisfied. The C<$module> argument
854is given as a string like C<"Data::Dumper"> or C<"perl">, and the
855C<$version> argument can take any of the forms described in L<requires>
856above. This allows very fine-grained version checking.
857
858The returned hash reference has the following structure:
859
860 {
861 ok => $whether_the_dependency_is_satisfied,
862 have => $version_already_installed,
863 need => $version_requested, # Same as incoming $version argument
864 message => $informative_error_message,
865 }
866
867If no version of C<$module> is currently installed, the C<have> value
868will be the string C<< "<none>" >>. Otherwise the C<have> value will
869simply be the version of the installed module. Note that this means
870that if C<$module> is installed but doesn't define a version number,
871the C<have> value will be C<undef> - this is why we don't use C<undef>
872for the case when C<$module> isn't installed at all.
873
874This method may be called either as an object method
875(C<< $build->check_installed_status($module, $version) >>)
876or as a class method
877(C<< Module::Build->check_installed_status($module, $version) >>).
878
879=item check_installed_version($module, $version)
880
881[version 0.05]
882
883Like C<check_installed_status()>, but simply returns true or false
884depending on whether module C<$module> satisfies the dependency
885C<$version>.
886
887If the check succeeds, the return value is the actual version of
888C<$module> installed on the system. This allows you to do the
889following:
890
891 my $installed = $build->check_installed_version('DBI', '1.15');
892 if ($installed) {
893 print "Congratulations, version $installed of DBI is installed.\n";
894 } else {
895 die "Sorry, you must install DBI.\n";
896 }
897
898If the check fails, we return false and set C<$@> to an informative
899error message.
900
901If C<$version> is any non-true value (notably zero) and any version of
902C<$module> is installed, we return true. In this case, if C<$module>
903doesn't define a version, or if its version is zero, we return the
904special value "0 but true", which is numerically zero, but logically
905true.
906
907In general you might prefer to use C<check_installed_status> if you
908need detailed information, or this method if you just need a yes/no
909answer.
910
911=item compare_versions($v1, $op, $v2)
912
913[version 0.28]
914
915Compares two module versions C<$v1> and C<$v2> using the operator
916C<$op>, which should be one of Perl's numeric operators like C<!=> or
917C<< >= >> or the like. We do at least a halfway-decent job of
918handling versions that aren't strictly numeric, like C<0.27_02>, but
919exotic stuff will likely cause problems.
920
921In the future, the guts of this method might be replaced with a call
922out to C<version.pm>.
923
77e96e88 924=item config($key)
925
926=item config($key, $value)
927
928=item config() [deprecated]
dc8021d3 929
930[version 0.22]
931
77e96e88 932With a single argument C<$key>, returns the value associated with that
933key in the C<Config.pm> hash, including any changes the author or user
934has specified.
935
936With C<$key> and C<$value> arguments, sets the value for future
937callers of C<config($key)>.
938
939With no arguments, returns a hash reference containing all such
940key-value pairs. This usage is deprecated, though, because it's a
941resource hog and violates encapsulation.
dc8021d3 942
943=item config_data($name)
944
945=item config_data($name => $value)
946
947[version 0.26]
948
949With a single argument, returns the value of the configuration
950variable C<$name>. With two arguments, sets the given configuration
951variable to the given value. The value may be any perl scalar that's
952serializable with C<Data::Dumper>. For instance, if you write a
953module that can use a MySQL or PostgreSQL back-end, you might create
954configuration variables called C<mysql_connect> and
955C<postgres_connect>, and set each to an array of connection parameters
956for C<< DBI->connect() >>.
957
958Configuration values set in this way using the Module::Build object
959will be available for querying during the build/test process and after
960installation via the generated C<...::ConfigData> module, as
961C<< ...::ConfigData->config($name) >>.
962
963The C<feature()> and C<config_data()> methods represent
964Module::Build's main support for configuration of installed modules.
965See also L<Module::Build::Authoring/"SAVING CONFIGURATION INFORMATION">.
966
967=item conflicts()
968
969[version 0.21]
970
971Returns a hash reference indicating the C<conflicts> prerequisites
972that were passed to the C<new()> method.
973
974=item contains_pod($file)
975
976[version 0.20]
977
978[Deprecated] Please see L<Module::Build::ModuleInfo> instead.
979
980Returns true if the given file appears to contain POD documentation.
981Currently this checks whether the file has a line beginning with
982'=pod', '=head', or '=item', but the exact semantics may change in the
983future.
984
985=item copy_if_modified(%parameters)
986
987[version 0.19]
988
989Takes the file in the C<from> parameter and copies it to the file in
990the C<to> parameter, or the directory in the C<to_dir> parameter, if
991the file has changed since it was last copied (or if it doesn't exist
992in the new location). By default the entire directory structure of
993C<from> will be copied into C<to_dir>; an optional C<flatten>
994parameter will copy into C<to_dir> without doing so.
995
996Returns the path to the destination file, or C<undef> if nothing
997needed to be copied.
998
999Any directories that need to be created in order to perform the
1000copying will be automatically created.
1001
1002The destination file is set to read-only. If the source file has the
1003executable bit set, then the destination file will be made executable.
1004
1005=item create_build_script()
1006
1007[version 0.05]
1008
1009Creates an executable script called C<Build> in the current directory
1010that will be used to execute further user actions. This script is
1011roughly analogous (in function, not in form) to the Makefile created
1012by C<ExtUtils::MakeMaker>. This method also creates some temporary
1013data in a directory called C<_build/>. Both of these will be removed
1014when the C<realclean> action is performed.
1015
1016=item current_action()
1017
1018[version 0.28]
1019
1020Returns the name of the currently-running action, such as "build" or
1021"test". This action is not necessarily the action that was originally
1022invoked by the user. For example, if the user invoked the "test"
1023action, current_action() would initially return "test". However,
1024action "test" depends on action "code", so current_action() will
1025return "code" while that dependency is being executed. Once that
1026action has completed, current_action() will again return "test".
1027
1028If you need to know the name of the original action invoked by the
1029user, see L<invoked_action()> below.
1030
1031=item depends_on(@actions)
1032
1033[version 0.28]
1034
1035Invokes the named action or list of actions in sequence. Using this
1036method is preferred to calling the action explicitly because it
1037performs some internal record-keeping, and it ensures that the same
1038action is not invoked multiple times (note: in future versions of
1039Module::Build it's conceivable that this run-only-once mechanism will
1040be changed to something more intelligent).
1041
1042Note that the name of this method is something of a misnomer; it
1043should really be called something like
1044C<invoke_actions_unless_already_invoked()> or something, but for
1045better or worse (perhaps better!) we were still thinking in
1046C<make>-like dependency terms when we created this method.
1047
1048See also C<dispatch()>. The main distinction between the two is that
1049C<depends_on()> is meant to call an action from inside another action,
1050whereas C<dispatch()> is meant to set the very top action in motion.
1051
1052=item dir_contains($first_dir, $second_dir)
1053
1054[version 0.28]
1055
1056Returns true if the first directory logically contains the second
1057directory. This is just a convenience function because C<File::Spec>
1058doesn't really provide an easy way to figure this out (but
1059C<Path::Class> does...).
1060
1061=item dispatch($action, %args)
1062
1063[version 0.03]
1064
1065Invokes the build action C<$action>. Optionally, a list of options
1066and their values can be passed in. This is equivalent to invoking an
1067action at the command line, passing in a list of options.
1068
1069Custom options that have not been registered must be passed in as a
1070hash reference in a key named "args":
1071
1072 $build->dispatch('foo', verbose => 1, args => { my_option => 'value' });
1073
1074This method is intended to be used to programmatically invoke build
1075actions, e.g. by applications controlling Module::Build-based builds
1076rather than by subclasses.
1077
1078See also C<depends_on()>. The main distinction between the two is that
1079C<depends_on()> is meant to call an action from inside another action,
1080whereas C<dispatch()> is meant to set the very top action in motion.
1081
1082=item dist_dir()
1083
1084[version 0.28]
1085
1086Returns the name of the directory that will be created during the
1087C<dist> action. The name is derived from the C<dist_name> and
1088C<dist_version> properties.
1089
1090=item dist_name()
1091
1092[version 0.21]
1093
1094Returns the name of the current distribution, as passed to the
1095C<new()> method in a C<dist_name> or modified C<module_name>
1096parameter.
1097
1098=item dist_version()
1099
1100[version 0.21]
1101
1102Returns the version of the current distribution, as determined by the
1103C<new()> method from a C<dist_version>, C<dist_version_from>, or
1104C<module_name> parameter.
1105
1106=item do_system($cmd, @args)
1107
1108[version 0.21]
1109
1110This is a fairly simple wrapper around Perl's C<system()> built-in
1111command. Given a command and an array of optional arguments, this
1112method will print the command to C<STDOUT>, and then execute it using
1113Perl's C<system()>. It returns true or false to indicate success or
1114failure (the opposite of how C<system()> works, but more intuitive).
1115
1116Note that if you supply a single argument to C<do_system()>, it
1117will/may be processed by the systems's shell, and any special
1118characters will do their special things. If you supply multiple
1119arguments, no shell will get involved and the command will be executed
1120directly.
1121
1122=item feature($name)
1123
1124=item feature($name => $value)
1125
1126[version 0.26]
1127
1128With a single argument, returns true if the given feature is set.
1129With two arguments, sets the given feature to the given boolean value.
1130In this context, a "feature" is any optional functionality of an
1131installed module. For instance, if you write a module that could
1132optionally support a MySQL or PostgreSQL backend, you might create
1133features called C<mysql_support> and C<postgres_support>, and set them
1134to true/false depending on whether the user has the proper databases
1135installed and configured.
1136
1137Features set in this way using the Module::Build object will be
1138available for querying during the build/test process and after
1139installation via the generated C<...::ConfigData> module, as
1140C<< ...::ConfigData->feature($name) >>.
1141
1142The C<feature()> and C<config_data()> methods represent
1143Module::Build's main support for configuration of installed modules.
1144See also L<Module::Build::Authoring/"SAVING CONFIGURATION INFORMATION">.
1145
1146=item have_c_compiler()
1147
1148[version 0.21]
1149
1150Returns true if the current system seems to have a working C compiler.
1151We currently determine this by attempting to compile a simple C source
1152file and reporting whether the attempt was successful.
1153
1154=item install_base_relpaths()
1155
1156=item install_base_relpaths($type)
1157
1158=item install_base_relpaths($type => $path)
1159
1160[version 0.28]
1161
1162Set or retrieve the relative paths that are appended to
1163C<install_base> for any installable element. This is useful if you
1164want to set the relative install path for custom build elements.
1165
1166With no argument, it returns a reference to a hash containing all
1167elements and their respective values. This hash should not be modified
1168directly; use the multi-argument below form to change values.
1169
1170The single argument form returns the value associated with the
1171element C<$type>.
1172
1173The multi-argument form allows you to set the paths for element types.
1174C<$value> must be a relative path using unix-like paths. (A series of
1175directories seperated by slashes. Eg 'foo/bar'.) The return value is a
1176localized path based on C<$value>.
1177
1178Assigning the value C<undef> to an element causes it to be removed.
1179
1180=item install_destination($type)
1181
1182[version 0.28]
1183
1184Returns the directory in which items of type C<$type> (e.g. C<lib>,
1185C<arch>, C<bin>, or anything else returned by the C<install_types()>
1186method) will be installed during the C<install> action. Any settings
1187for C<install_path>, C<install_base>, and C<prefix> are taken into
1188account when determining the return value.
1189
1190=item install_path()
1191
1192=item install_path($type)
1193
1194=item install_path($type => $path)
1195
1196[version 0.28]
1197
1198Set or retrieve paths for specific installable elements. This is
1199useful when you want to examine any explicit install paths specified
1200by the user on the command line, or if you want to set the install
1201path for a specific installable element based on another attribute
1202like C<install_base()>.
1203
1204With no argument, it returns a reference to a hash containing all
1205elements and their respective values. This hash should not be modified
1206directly; use the multi-argument below form to change values.
1207
1208The single argument form returns the value associated with the
1209element C<$type>.
1210
1211The multi-argument form allows you to set the paths for element types.
1212The supplied C<$path> should be an absolute path to install elements
1213of C<$type>. The return value is C<$path>.
1214
1215Assigning the value C<undef> to an element causes it to be removed.
1216
1217=item install_types()
1218
1219[version 0.28]
1220
1221Returns a list of installable types that this build knows about.
1222These types each correspond to the name of a directory in F<blib/>,
1223and the list usually includes items such as C<lib>, C<arch>, C<bin>,
1224C<script>, C<libdoc>, C<bindoc>, and if HTML documentation is to be
1225built, C<libhtml> and C<binhtml>. Other user-defined types may also
1226exist.
1227
1228=item invoked_action()
1229
1230[version 0.28]
1231
1232This is the name of the original action invoked by the user. This
1233value is set when the user invokes F<Build.PL>, the F<Build> script,
1234or programatically through the L<dispatch()> method. It does not
1235change as sub-actions are executed as dependencies are evaluated.
1236
1237To get the name of the currently executing dependency, see
1238L<current_action()> above.
1239
1240=item notes()
1241
1242=item notes($key)
1243
1244=item notes($key => $value)
1245
1246[version 0.20]
1247
1248The C<notes()> value allows you to store your own persistent
1249information about the build, and to share that information among
1250different entities involved in the build. See the example in the
1251C<current()> method.
1252
1253The C<notes()> method is essentally a glorified hash access. With no
1254arguments, C<notes()> returns the entire hash of notes. With one argument,
1255C<notes($key)> returns the value associated with the given key. With two
1256arguments, C<notes($key, $value)> sets the value associated with the given key
1257to C<$value> and returns the new value.
1258
1259The lifetime of the C<notes> data is for "a build" - that is, the
1260C<notes> hash is created when C<perl Build.PL> is run (or when the
1261C<new()> method is run, if the Module::Build Perl API is being used
1262instead of called from a shell), and lasts until C<perl Build.PL> is
1263run again or the C<clean> action is run.
1264
1265=item orig_dir()
1266
1267[version 0.28]
1268
1269Returns a string containing the working directory that was in effect
1270before the F<Build> script chdir()-ed into the C<base_dir>. This
1271might be useful for writing wrapper tools that might need to chdir()
1272back out.
1273
1274=item os_type()
1275
1276[version 0.04]
1277
1278If you're subclassing Module::Build and some code needs to alter its
1279behavior based on the current platform, you may only need to know
1280whether you're running on Windows, Unix, MacOS, VMS, etc., and not the
1281fine-grained value of Perl's C<$^O> variable. The C<os_type()> method
1282will return a string like C<Windows>, C<Unix>, C<MacOS>, C<VMS>, or
1283whatever is appropriate. If you're running on an unknown platform, it
1284will return C<undef> - there shouldn't be many unknown platforms
1285though.
1286
1287=item prefix_relpaths()
1288
1289=item prefix_relpaths($installdirs)
1290
1291=item prefix_relpaths($installdirs, $type)
1292
1293=item prefix_relpaths($installdirs, $type => $path)
1294
1295[version 0.28]
1296
1297Set or retrieve the relative paths that are appended to C<prefix> for
1298any installable element. This is useful if you want to set the
1299relative install path for custom build elements.
1300
1301With no argument, it returns a reference to a hash containing all
1302elements and their respective values as defined by the current
1303C<installdirs> setting.
1304
1305With a single argument, it returns a reference to a hash containing
1306all elements and their respective values as defined by
1307C<$installdirs>.
1308
1309The hash returned by the above calls should not be modified directly;
1310use the three-argument below form to change values.
1311
1312The two argument form returns the value associated with the
1313element C<$type>.
1314
1315The multi-argument form allows you to set the paths for element types.
1316C<$value> must be a relative path using unix-like paths. (A series of
1317directories seperated by slashes. Eg 'foo/bar'.) The return value is a
1318localized path based on C<$value>.
1319
1320Assigning the value C<undef> to an element causes it to be removed.
1321
1322=item prepare_metadata()
1323
1324[version 0.28]
1325
1326This method is provided for authors to override to customize the
1327fields of F<META.yml>. It is passed a YAML::Node node object which can
1328be modified as desired and then returned. E.g.
1329
1330 package My::Builder;
1331 use base 'Module::Build';
1332
1333 sub prepare_metadata {
1334 my $self = shift;
1335 my $node = $self->SUPER::prepare_metadata( shift );
1336 $node->{custom_field} = 'foo';
1337 return $node;
1338 }
1339
1340=item prereq_failures()
1341
1342[version 0.11]
1343
1344Returns a data structure containing information about any failed
1345prerequisites (of any of the types described above), or C<undef> if
1346all prerequisites are met.
1347
1348The data structure returned is a hash reference. The top level keys
1349are the type of prerequisite failed, one of "requires",
1350"build_requires", "conflicts", or "recommends". The associated values
1351are hash references whose keys are the names of required (or
1352conflicting) modules. The associated values of those are hash
1353references indicating some information about the failure. For example:
1354
1355 {
1356 have => '0.42',
1357 need => '0.59',
1358 message => 'Version 0.42 is installed, but we need version 0.59',
1359 }
1360
1361or
1362
1363 {
1364 have => '<none>',
1365 need => '0.59',
1366 message => 'Prerequisite Foo isn't installed',
1367 }
1368
1369This hash has the same structure as the hash returned by the
1370C<check_installed_status()> method, except that in the case of
1371"conflicts" dependencies we change the "need" key to "conflicts" and
1372construct a proper message.
1373
1374Examples:
1375
1376 # Check a required dependency on Foo::Bar
1377 if ( $build->prereq_failures->{requires}{Foo::Bar} ) { ...
1378
1379 # Check whether there were any failures
1380 if ( $build->prereq_failures ) { ...
1381
1382 # Show messages for all failures
1383 my $failures = $build->prereq_failures;
1384 while (my ($type, $list) = each %$failures) {
1385 while (my ($name, $hash) = each %$list) {
1386 print "Failure for $name: $hash->{message}\n";
1387 }
1388 }
1389
1390=item prereq_report()
1391
1392[version 0.28]
1393
1394Returns a human-readable (table-form) string showing all
1395prerequisites, the versions required, and the versions actually
1396installed. This can be useful for reviewing the configuration of your
1397system prior to a build, or when compiling data to send for a bug
1398report. The C<prereq_report> action is just a thin wrapper around the
1399C<prereq_report()> method.
1400
1401=item prompt($message, $default)
1402
1403[version 0.12]
1404
1405Asks the user a question and returns their response as a string. The
1406first argument specifies the message to display to the user (for
1407example, C<"Where do you keep your money?">). The second argument,
1408which is optional, specifies a default answer (for example,
1409C<"wallet">). The user will be asked the question once.
1410
1411If C<prompt()> detects that it is not running interactively and there
1412is nothing on STDIN or if the PERL_MM_USE_DEFAULT environment variable
1413is set to true, the $default will be used without prompting. This
1414prevents automated processes from blocking on user input.
1415
1416If no $default is provided an empty string will be used instead.
1417
1418This method may be called as a class or object method.
1419
1420=item recommends()
1421
1422[version 0.21]
1423
1424Returns a hash reference indicating the C<recommends> prerequisites
1425that were passed to the C<new()> method.
1426
1427=item requires()
1428
1429[version 0.21]
1430
1431Returns a hash reference indicating the C<requires> prerequisites that
1432were passed to the C<new()> method.
1433
1434=item rscan_dir($dir, $pattern)
1435
1436[version 0.28]
1437
1438Uses C<File::Find> to traverse the directory C<$dir>, returning a
1439reference to an array of entries matching C<$pattern>. C<$pattern>
1440may either be a regular expression (using C<qr//> or just a plain
1441string), or a reference to a subroutine that will return true for
1442wanted entries. If C<$pattern> is not given, all entries will be
1443returned.
1444
1445Examples:
1446
1447 # All the *.pm files in lib/
1448 $m->rscan_dir('lib', qr/\.pm$/)
1449
1450 # All the files in blib/ that aren't *.html files
1451 $m->rscan_dir('blib', sub {-f $_ and not /\.html$/});
1452
1453 # All the files in t/
1454 $m->rscan_dir('t');
1455
1456=item runtime_params()
1457
1458=item runtime_params($key)
1459
1460[version 0.28]
1461
1462The C<runtime_params()> method stores the values passed on the command line
1463for valid properties (that is, any command line options for which
1464C<valid_property()> returns a true value). The value on the command line may
1465override the default value for a property, as well as any value specified in a
1466call to C<new()>. This allows you to programmatically tell if C<perl Build.PL>
1467or any execution of C<./Build> had command line options specified that
1468override valid properties.
1469
1470The C<runtime_params()> method is essentally a glorified read-only hash. With
1471no arguments, C<runtime_params()> returns the entire hash of properties
1472specified on the command line. With one argument, C<runtime_params($key)>
1473returns the value associated with the given key.
1474
1475The lifetime of the C<runtime_params> data is for "a build" - that is, the
1476C<runtime_params> hash is created when C<perl Build.PL> is run (or when the
1477C<new()> method is called, if the Module::Build Perl API is being used instead
1478of called from a shell), and lasts until C<perl Build.PL> is run again or the
1479C<clean> action is run.
1480
1481=item script_files()
1482
1483[version 0.18]
1484
1485Returns a hash reference whose keys are the perl script files to be
1486installed, if any. This corresponds to the C<script_files> parameter to the
1487C<new()> method. With an optional argument, this parameter may be set
1488dynamically.
1489
1490For backward compatibility, the C<scripts()> method does exactly the
1491same thing as C<script_files()>. C<scripts()> is deprecated, but it
1492will stay around for several versions to give people time to
1493transition.
1494
1495=item up_to_date($source_file, $derived_file)
1496
1497=item up_to_date(\@source_files, \@derived_files)
1498
1499[version 0.20]
1500
1501This method can be used to compare a set of source files to a set of
1502derived files. If any of the source files are newer than any of the
1503derived files, it returns false. Additionally, if any of the derived
1504files do not exist, it returns false. Otherwise it returns true.
1505
1506The arguments may be either a scalar or an array reference of file
1507names.
1508
1509=item y_n($message, $default)
1510
1511[version 0.12]
1512
1513Asks the user a yes/no question using C<prompt()> and returns true or
1514false accordingly. The user will be asked the question repeatedly
1515until they give an answer that looks like "yes" or "no".
1516
1517The first argument specifies the message to display to the user (for
1518example, C<"Shall I invest your money for you?">), and the second
1519argument specifies the default answer (for example, C<"y">).
1520
1521Note that the default is specified as a string like C<"y"> or C<"n">,
1522and the return value is a Perl boolean value like 1 or 0. I thought
1523about this for a while and this seemed like the most useful way to do
1524it.
1525
1526This method may be called as a class or object method.
1527
1528=back
1529
1530
1531=head2 Autogenerated Accessors
1532
1533In addition to the aforementioned methods, there are also some get/set
1534accessor methods for the following properties:
1535
1536=over 4
1537
1538=item PL_files()
1539
0ec9ad96 1540=item allow_mb_mismatch()
1541
dc8021d3 1542=item autosplit()
1543
1544=item base_dir()
1545
1546=item bindoc_dirs()
1547
1548=item blib()
1549
1550=item build_bat()
1551
1552=item build_class()
1553
1554=item build_elements()
1555
1556=item build_requires()
1557
1558=item build_script()
1559
1560=item c_source()
1561
dc8021d3 1562=item config_dir()
1563
1564=item conflicts()
1565
1566=item create_makefile_pl()
1567
1568=item create_packlist()
1569
1570=item create_readme()
1571
1572=item debugger()
1573
1574=item destdir()
1575
1576=item get_options()
1577
1578=item html_css()
1579
1580=item include_dirs()
1581
1582=item install_base()
1583
1584=item install_sets()
1585
1586=item installdirs()
1587
1588=item libdoc_dirs()
1589
1590=item license()
1591
1592=item magic_number()
1593
1594=item mb_version()
1595
1596=item meta_add()
1597
1598=item meta_merge()
1599
1600=item metafile()
1601
1602=item module_name()
1603
1604=item orig_dir()
1605
1606=item original_prefix()
1607
1608=item perl()
1609
1610=item pm_files()
1611
1612=item pod_files()
1613
1614=item pollute()
1615
1616=item prefix()
1617
1618=item prereq_action_types()
1619
1620=item quiet()
1621
1622=item recommends()
1623
1624=item recurse_into()
1625
1626=item recursive_test_files()
1627
1628=item requires()
1629
1630=item scripts()
1631
1632=item use_rcfile()
1633
1634=item verbose()
1635
1636=item xs_files()
1637
1638=back
1639
1640
1641=head1 AUTHOR
1642
1643Ken Williams <kwilliams@cpan.org>
1644
1645
1646=head1 COPYRIGHT
1647
1648Copyright (c) 2001-2006 Ken Williams. All rights reserved.
1649
1650This library is free software; you can redistribute it and/or
1651modify it under the same terms as Perl itself.
1652
1653
1654=head1 SEE ALSO
1655
1656perl(1), L<Module::Build>(3), L<Module::Build::Authoring>(3),
1657L<Module::Build::Cookbook>(3), L<ExtUtils::MakeMaker>(3), L<YAML>(3)
1658
1659F<META.yml> Specification:
77e96e88 1660L<http://module-build.sourceforge.net/META-spec-current.html>
dc8021d3 1661
1662=cut