Project

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

Members

Functions

addBuildSettings
void addBuildSettings(ref BuildSettings dst, in BuildPlatform platform, string config, in Package root_package = null, bool shallow = false)

Fills dst with values from this project.

describe
ProjectDescription describe(BuildPlatform platform, string config, string build_type = null)
void describe(ref Json dst, BuildPlatform platform, string config)

Outputs a build description of the project, including its dependencies.

getPackageConfigs
string[string] getPackageConfigs(in BuildPlatform platform, string config, bool allow_non_library = true)

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 = false, in Package root_package = null, string[string] configs = null)

Allows iteration of the dependency tree in topological order

isRedundantDependency
bool isRedundantDependency(in Package pack, in Package dependency)

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

listBuildSettings
string[] listBuildSettings(BuildPlatform platform, string config, string buildType, string[] requestedData, Compiler formattingCompiler, bool nullDelim)

Outputs requested data for the project, optionally including its dependencies.

listImportPaths
string[] listImportPaths(BuildPlatform platform, string config, string buildType, bool nullDelim)

Outputs the import paths for the project, including its dependencies.

listStringImportPaths
string[] listStringImportPaths(BuildPlatform platform, string config, string buildType, bool nullDelim)

Outputs the string import paths for the project, including its dependencies.

reinit
void reinit()

Rereads the applications state.

Properties

cachedPackagesIDs
string[string] cachedPackagesIDs [@property getter]

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

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