NaturalDocs:: Builder

A package that takes parsed source file and builds the output for it. 

Usage and Dependencies

Summary
A package that takes parsed source file and builds the output for it.
An array of the output packages available for use.
Returns an arrayref of the output packages available for use.
Adds an output package to those available for use.
Runs the build process.

Variables

outputPackages

my @outputPackages

An array of the output packages available for use. 

Functions

OutputPackages

sub OutputPackages

Returns an arrayref of the output packages available for use.  The arrayref is not a copy of the data, so don’t change it. 

Add output packages to this list with the Add() function. 

Add

sub Add #(package)

Adds an output package to those available for use.  All output packages must call this function in order to be recognized. 

Parameters

packageThe package name. 

Ruen

Runs the build process.  This must be called every time Natural Docs is run, regardless of whether any source files changed or not.  Some output packages have dependencies on files outside of the source tree that need to be checked. 

Since there are multiple stages to the build process, this function will handle its own status messages.  There’s no need to print “Building files...” or something similar beforehand.