Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LegacyCMakeDriver

The legacy driver.

Hierarchy

Implements

  • Disposable

Index

Constructors

Private constructor

Properties

Private _cacheWatcher

_cacheWatcher: FileSystemWatcher = vscode.workspace.createFileSystemWatcher(this.cachePath)

Watcher for the CMake cache file on disk.

Private _cmakeCache

_cmakeCache: CMakeCache | null = null

Protected _isBusy

_isBusy: boolean = false

Private _needsReconfigure

_needsReconfigure: boolean = true

cmake

ws

Accessors

allTargetName

  • get allTargetName(): string

binaryDir

  • get binaryDir(): string

cachePath

  • get cachePath(): string

cmakeCache

cmakeCacheEntries

compilerID

  • get compilerID(): string | null

copyCompileCommandsPath

  • get copyCompileCommandsPath(): string | null

currentBuildType

  • get currentBuildType(): string
  • Get the current build type, according to the current selected variant.

    This is the value passed to CMAKE_BUILD_TYPE or --config for multiconf

    Returns string

executableTargets

  • get executableTargets(): never[]

expansionOptions

generatorName

  • get generatorName(): string | null

installDir

  • get installDir(): string | null

isBusy

  • get isBusy(): boolean

isMultiConf

  • get isMultiConf(): boolean

linkerID

  • get linkerID(): string | null

mainListFile

  • get mainListFile(): string

onProgress

sourceDir

  • get sourceDir(): string
  • The source directory, where the root CMakeLists.txt lives.

    note

    This is distinct from the config values, since we do variable substitution.

    Returns string

targets

  • get targets(): never[]

Methods

Protected _cleanPriorConfiguration

  • _cleanPriorConfiguration(): Promise<void>

Private _reloadPostConfigure

  • _reloadPostConfigure(): Promise<void>

asyncDispose

  • asyncDispose(): Promise<void>

build

  • build(target: string, consumer?: proc.OutputConsumer): Promise<number | null>
  • Parameters

    • target: string
    • Optional consumer: proc.OutputConsumer

    Returns Promise<number | null>

checkNeedsReconfigure

  • checkNeedsReconfigure(): Promise<boolean>

cleanConfigure

  • cleanConfigure(consumer?: proc.OutputConsumer): Promise<number>

configure

  • configure(extra_args: string[], consumer?: proc.OutputConsumer): Promise<number>

dispose

  • dispose(): void
  • Dispose the driver. This disposes some things synchronously, but also calls the asyncDispose() method to start any asynchronous shutdown.

    Returns void

doConfigure

  • doConfigure(args_: string[], outputConsumer?: proc.OutputConsumer): Promise<number>

doConfigureSettingsChange

  • doConfigureSettingsChange(): void

doInit

  • doInit(): Promise<void>

doPostBuild

  • doPostBuild(): Promise<boolean>

Protected doPreBuild

  • doPreBuild(): Promise<boolean>

Protected doRefreshExpansions

  • doRefreshExpansions(cb: function): Promise<void>

doSetKit

  • doSetKit(need_clean: boolean, cb: function): Promise<void>

executeCommand

  • executeCommand(command: string, args: string[], consumer?: proc.OutputConsumer, options?: proc.ExecutionOptions): Subprocess

getBaseConfigureEnvironment

  • getBaseConfigureEnvironment(): Promise<object>

getBestGenerator

getConfigureEnvironment

getEffectiveSubprocessEnvironment

getExpandedEnvironment

  • getExpandedEnvironment(): Promise<object>

getKitEnvironmentVariablesObject

getPreferredGenerators

runCompileCommand

setKit

  • setKit(kit: Kit): Promise<void>
  • Change the current kit. This lets the driver reload, if necessary.

    Parameters

    • kit: Kit

      The new kit

    Returns Promise<void>

setVariantOptions

stopCurrentProcess

  • stopCurrentProcess(): Promise<boolean>

Static create

Static createDerived

  • createDerived<T>(inst: T, kit: Kit | null): Promise<T>

Generated using TypeDoc