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.

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

getUpgradeCache
Dependency[string] getUpgradeCache()
Undocumented in source. Be warned that the author may not have intended to support it.
isRedundantDependency
bool isRedundantDependency(Package pack, Package dependency)

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

isUpgradeCacheUpToDate
bool isUpgradeCacheUpToDate()
Undocumented in source. Be warned that the author may not have intended to support it.
reinit
void reinit()

Rereads the applications state.

saveSelections
void saveSelections()
Undocumented in source. Be warned that the author may not have intended to support it.
setUpgradeCache
void setUpgradeCache(Dependency[string] versions)
Undocumented in source. Be warned that the author may not have intended to support it.
validate
void validate()
Undocumented in source. Be warned that the author may not have intended to support it.

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

name
string name [@property getter]

Returns the applications name.

packageManager
inout(PackageManager) packageManager [@property getter]

Package manager instance used by the project.

rootPackage
inout(Package) rootPackage [@property getter]

Main package.

selections
inout(SelectedVersions) selections [@property getter]

The versions to use for all dependencies. Call reinit() after changing these.

Meta