Project

Representing a full project, with a root Package and several dependencies.

Constructors

this
this(PackageManager package_manager, Path project_path)
Undocumented in source.
this
this(PackageManager package_manager, Package pack)
Undocumented in source.

Members

Functions

addBuildSettings
void addBuildSettings(BuildSettings dst, BuildPlatform platform, string config, Package root_package, bool shallow)

Fills dst with values from this project.

addBuildTypeSettings
void addBuildTypeSettings(BuildSettings dst, BuildPlatform platform, string build_type)
Undocumented in source. Be warned that the author may not have intended to support it.
describe
void describe(Json dst, BuildPlatform platform, string config)

Outputs a JSON description of the project, including its deoendencies.

determineActions
Action[] determineActions(PackageSupplier[] packageSuppliers, UpdateOptions option)

Actions which can be performed to update the application.

getDefaultConfiguration
string getDefaultConfiguration(BuildPlatform platform, bool allow_non_library_configs)
Undocumented in source. Be warned that the author may not have intended to support it.
getDependency
inout(Package) getDependency(string name, bool isOptional)
Undocumented in source. Be warned that the author may not have intended to support it.
getPackageConfigs
string[string] getPackageConfigs(BuildPlatform platform, string config, bool allow_non_library)

Returns a map with the configuration for all packages in the dependency tree.

getTopologicalPackageList
int delegate(int delegate(ref const Package)) getTopologicalPackageList(bool children_first, Package root_package, string[string] configs)

Allows iteration of the dependency tree in topological order

isRedundantDependency
bool isRedundantDependency(Package pack, Package dependency)

Determines if the given dependency is already indirectly referenced by other dependencies of pack.

reinit
void reinit()

Rereads the applications state.

Properties

cachedPackagesIDs
string[string] cachedPackagesIDs [@property getter]

Gets all retrieved packages as a "packageId" = "version" associative array

configurations
string[] configurations [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
dependencies
const(Package[]) dependencies [@property getter]

List of retrieved dependency Packages

info
string info [@property getter]

Gathers information

mainPackage
inout(Package) mainPackage [@property getter]

Main package.

name
string name [@property getter]

Returns the applications name.

Meta