MCPcopy Create free account
hub / github.com/Kitware/CMake / cmGlobalFastbuildGenerator

Class cmGlobalFastbuildGenerator

Source/cmGlobalFastbuildGenerator.h:344–631  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

342};
343
344class cmGlobalFastbuildGenerator : public cmGlobalCommonGenerator
345{
346public:
347 cmGlobalFastbuildGenerator(cmake* cm);
348
349 void ReadCompilerOptions(FastbuildCompiler& compiler, cmMakefile* mf);
350 void ProcessEnvironment();
351
352 static std::unique_ptr<cmGlobalGeneratorFactory> NewFactory();
353 void Generate() override;
354
355 bool FindMakeProgram(cmMakefile* mf) override;
356
357 void EnableLanguage(std::vector<std::string> const& lang, cmMakefile* mf,
358 bool optional) override;
359
360 bool IsFastbuild() const override { return true; }
361
362 std::vector<GeneratedMakeCommand> GenerateBuildCommand(
363 std::string const& makeProgram, std::string const& projectName,
364 std::string const& projectDir, std::vector<std::string> const& targetNames,
365 std::string const& config, int jobs, bool verbose,
366 cmBuildOptions buildOptions = cmBuildOptions(),
367 std::vector<std::string> const& makeOptions = std::vector<std::string>(),
368 BuildTryCompile isInTryCompile = BuildTryCompile::No) override;
369
370 std::unique_ptr<cmLocalGenerator> CreateLocalGenerator(
371 cmMakefile* makefile) override;
372 std::string GetName() const override
373 {
374 return cmGlobalFastbuildGenerator::GetActualName();
375 }
376
377 bool IsMultiConfig() const override { return false; }
378
379 bool SupportsCustomObjectNames() const override { return false; }
380
381 void ComputeTargetObjectDirectory(cmGeneratorTarget*) const override;
382 void AppendDirectoryForConfig(std::string const& prefix,
383 std::string const& config,
384 std::string const& suffix,
385 std::string& dir) override;
386
387 static std::string GetActualName() { return "FASTBuild"; }
388 static std::string RequiredFastbuildVersion() { return "1.14"; }
389
390 // Setup target names
391 char const* GetAllTargetName() const override
392 {
393 return FASTBUILD_ALL_TARGET_NAME;
394 }
395 char const* GetInstallTargetName() const override { return "install"; }
396 char const* GetCleanTargetName() const override
397 {
398 return FASTBUILD_CLEAN_TARGET_NAME;
399 }
400 char const* GetInstallLocalTargetName() const override
401 {

Callers

nothing calls this directly

Calls 1

cmBuildOptionsClass · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…