PackageDescription

Describes the build settings and meta data of a single package.

This structure contains the effective build settings and dependencies for the selected build platform. This structure is most useful for displaying information about a package in an IDE. Use TargetDescription instead when writing a build-tool.

struct PackageDescription {
string description;
string homepage;
string[] authors;
string copyright;
string license;
string[] dependencies;
TargetType targetType;
string targetPath;
string targetName;
string targetFileName;
string workingDirectory;
string mainSourceFile;
string[] importPaths;
string[] stringImportPaths;
BuildRequirement[] buildRequirements;
BuildOption[] options;
}

Members

Variables

active
bool active;

Does this package take part in the build?

configuration
string configuration;

The configuration that is built

copyFiles
string[] copyFiles;

Files to copy to the target directory

debugVersions
string[] debugVersions;

D debug version identifiers to set

dflags
string[] dflags;

Flags passed to the D compiler

files
SourceFileDescription[] files;

A list of all source/import files possibly used by the package

lflags
string[] lflags;

Flags passed to the linker

libs
string[] libs;

Librariy names to link against (typically using "-l<name>")

name
string name;

Qualified name of the package

path
string path;

Path to the package

postBuildCommands
string[] postBuildCommands;

Commands to execute after every build

postGenerateCommands
string[] postGenerateCommands;

commands executed after creating the description

preBuildCommands
string[] preBuildCommands;

Commands to execute prior to every build

preGenerateCommands
string[] preGenerateCommands;

commands executed before creating the description

version_
Version version_;

Version of the package

versions
string[] versions;

D version identifiers to set

Meta