Package

Represents a package, including its sub packages

Documentation of the dub.json can be found at http://registry.vibed.org/package-format

class Package {}

Constructors

this
this(Path root, PathAndFormat infoFile, Package parent, string versionOverride)
Undocumented in source.
this
this(Json package_info, Path root, Package parent, string versionOverride)
Undocumented in source.
this
this(RawPackage raw_package, Path root, Package parent, string versionOverride)
Undocumented in source.
this
this(PackageRecipe recipe, Path root, Package parent)
Undocumented in source.

Members

Classes

RawPackage
class RawPackage
Undocumented in source.

Functions

addBuildTypeSettings
void addBuildTypeSettings(BuildSettings settings, 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)
Undocumented in source. Be warned that the author may not have intended to support it.
generateInfoString
string generateInfoString()

Human readable information of this package and its dependencies.

getBuildSettings
const(BuildSettingsTemplate) getBuildSettings(string config)
Undocumented in source. Be warned that the author may not have intended to support it.
getBuildSettings
BuildSettings getBuildSettings(BuildPlatform platform, string config)

Returns all BuildSettings for the given platform and config.

getCombinedBuildSettings
BuildSettings getCombinedBuildSettings()

Returns the combination of all build settings for all configurations and platforms

getDefaultConfiguration
string getDefaultConfiguration(BuildPlatform platform, bool allow_non_library)

Returns the default configuration to build for the given platform

getDependencies
const(Dependency[string]) getDependencies(string config)
Undocumented in source. Be warned that the author may not have intended to support it.
getPlatformConfigurations
string[] getPlatformConfigurations(BuildPlatform platform, bool is_main_package)

Returns a list of configurations suitable for the given platform

getSubConfiguration
string getSubConfiguration(string config, Package dependency, BuildPlatform platform)
Undocumented in source. Be warned that the author may not have intended to support it.
hasDependency
bool hasDependency(string depname, string config)
Undocumented in source. Be warned that the author may not have intended to support it.
storeInfo
void storeInfo()

Overwrites the packge description file using the default filename with the current information.

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

Properties

basePackage
inout(Package) basePackage [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
configurations
string[] configurations [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
dependencies
const(Dependency[string]) dependencies [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
info
inout(PackageRecipe) info [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
name
string name [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
packageInfoFilename
Path packageInfoFilename [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
parentPackage
inout(Package) parentPackage [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
path
Path path [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
subPackages
inout(SubPackage)[] subPackages [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
ver
Version ver [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
ver
Version ver [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
vers
string vers [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

findPackageFile
PathAndFormat findPackageFile(Path path)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta