dub.recipe.packagerecipe

Abstract representation of a package description file.

Members

Functions

addRequirement
bool addRequirement(ToolchainRequirements req, string name, string value)
Undocumented in source. Be warned that the author may not have intended to support it.
checkPlatform
void checkPlatform(ToolchainRequirements tr, BuildPlatform platform, string package_name)
Undocumented in source. Be warned that the author may not have intended to support it.
fixDependenciesNames
void fixDependenciesNames(string root, T aggr)

Edit all dependency names from :foo to name:foo.

getBasePackageName
string getBasePackageName(string package_name)

Returns the name of the top level package for a given (sub) package name.

getSubPackageName
string getSubPackageName(string package_name)

Returns the qualified sub package part of the given package name.

getSubPackagePath
string[] getSubPackagePath(string package_name)

Returns the individual parts of a qualified package name.

Structs

BuildSettingsTemplate
struct BuildSettingsTemplate

This keeps general information about how to build a package. It contains functions to create a specific BuildSetting, targeted at a certain BuildPlatform.

ConfigurationInfo
struct ConfigurationInfo

Bundles information about a build configuration.

PackageRecipe
struct PackageRecipe

Represents the contents of a package recipe file (dub.json/dub.sdl) in an abstract way.

RecipeDependency
struct RecipeDependency

A dependency with possible BuildSettingsTemplate

RecipeDependencyAA
struct RecipeDependencyAA

Type used to avoid a breaking change when Dependency[string] was changed to RecipeDependency[string]

SubPackage
struct SubPackage
Undocumented in source.
ToolchainRequirements
struct ToolchainRequirements

Describes minimal toolchain requirements

Meta

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.

Authors

Sönke Ludwig, Matthias Dondorff