dub.generators.generator

Generator for project files

Members

Classes

ProjectGenerator
class ProjectGenerator

Common interface for project generators/builders.

Enums

BuildMode
enum BuildMode

Determines the mode in which the compiler and linker are invoked.

CommandType
enum CommandType

Type to specify where CLI commands that need to be run came from. Needed for proper substitution with support for the different environments.

Functions

collapseEnv
string[string] collapseEnv(string[string][] envs)
Undocumented in source. Be warned that the author may not have intended to support it.
computeBuildID
string computeBuildID(BuildSettings buildsettings, NativePath packagePath, string config, GeneratorSettings settings)

Provides a unique (per build) identifier

createProjectGenerator
ProjectGenerator createProjectGenerator(string generator_type, Project project)

Creates a project generator of the given type for the specified project.

findFilesMatchingGlobs
void findFilesMatchingGlobs(NativePath path, string[] globList, void delegate(string file) addFile, void delegate(string dir) addDir)

Calls delegates on files and directories in the given path that match any globs.

findFilesMatchingGlobs
void findFilesMatchingGlobs(NativePath path, string[] globList, void delegate(string file) addFile)

Calls delegates on files in the given path that match any globs.

makeCommandEnvironmentVariables
const(string[string])[] makeCommandEnvironmentVariables(CommandType type, Package pack, Project proj, GeneratorSettings settings, BuildSettings build_settings, string[string][] extraVars)
Undocumented in source. Be warned that the author may not have intended to support it.
packageCache
NativePath packageCache(NativePath cachePath, Package pkg)

Compute and returns the path were artifacts are stored for a given package

runBuildCommands
void runBuildCommands(CommandType type, string[] commands, Package pack, Project proj, GeneratorSettings settings, BuildSettings build_settings, string[string][] extraVars)

Runs a list of build commands for a particular package.

targetCacheDir
NativePath targetCacheDir(NativePath cachePath, Package pkg, string buildId)

Compute and return the directory where a target should be cached.

Structs

GeneratorSettings
struct GeneratorSettings
Undocumented in source.

Meta

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.

Authors

Matthias Dondorff