- addBuildSettings
void addBuildSettings(BuildSettings dst, GeneratorSettings gsettings, string config, Package root_package, bool shallow)
Fills dst with values from this project.
- addBuildTypeSettings
void addBuildTypeSettings(BuildSettings dst, GeneratorSettings gsettings, bool for_root_package)
Fills dst with build settings specific to the given build type.
- describe
ProjectDescription describe(GeneratorSettings settings)
Outputs a build description of the project, including its dependencies.
- getDefaultConfiguration
string getDefaultConfiguration(BuildPlatform platform, bool allow_non_library_configs)
Returns the name of the default build configuration for the specified
target platform.
- getDependency
inout(Package) getDependency(string name, bool is_optional)
Retrieves a particular dependency by name.
- 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 Package)) getTopologicalPackageList(bool children_first, Package root_package, string[string] configs)
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
deprecated Dependency[string] getUpgradeCache()
Undocumented in source. Be warned that the author may not have intended to support it.
- hasAllDependencies
bool hasAllDependencies()
Determines if all dependencies necessary to build have been collected.
- isUpgradeCacheUpToDate
deprecated bool isUpgradeCacheUpToDate()
Undocumented in source. Be warned that the author may not have intended to support it.
- listBuildSettings
string[] listBuildSettings(GeneratorSettings settings, string[] requestedData, ListBuildSettingsFormat list_type)
Outputs requested data for the project, optionally including its dependencies.
- missingDependencies
string[] missingDependencies()
Sorted list of missing dependencies.
- overrideConfiguration
void overrideConfiguration(string package_, string config)
Overrides the configuration chosen for a particular package in the
dependency graph.
- reinit
void reinit()
- saveSelections
void saveSelections()
Saves the currently selected dependency versions to disk.
- setUpgradeCache
void setUpgradeCache(Dependency[string] versions)
Sets a new set of versions for the upgrade cache.
- validate
void validate()
Performs basic validation of various aspects of the package.
Represents a full project, a root package with its dependencies and package selection.
All dependencies must be available locally so that the package dependency graph can be built. Use Project.reinit if necessary for reloading dependencies after more packages are available.