cmake/Source/cmGlobalJOMMakefileGenerator.h

65 lines
2.1 KiB
C
Raw Normal View History

2016-10-30 18:24:19 +01:00
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
2021-09-14 00:13:48 +02:00
#pragma once
2010-03-17 14:00:29 +02:00
2018-08-09 18:06:22 +02:00
#include <iosfwd>
2020-08-30 11:54:41 +02:00
#include <memory>
2022-03-29 21:10:50 +02:00
#include <string>
#include <vector>
2018-08-09 18:06:22 +02:00
2022-03-29 21:10:50 +02:00
#include "cmGlobalGeneratorFactory.h"
2020-02-01 23:06:01 +01:00
#include "cmGlobalUnixMakefileGenerator3.h"
2022-03-29 21:10:50 +02:00
#include "cmValue.h"
class cmMakefile;
class cmake;
2020-02-01 23:06:01 +01:00
2010-03-17 14:00:29 +02:00
/** \class cmGlobalJOMMakefileGenerator
* \brief Write a JOM makefiles.
*
* cmGlobalJOMMakefileGenerator manages nmake build process for a tree
*/
class cmGlobalJOMMakefileGenerator : public cmGlobalUnixMakefileGenerator3
{
public:
2015-08-17 11:37:30 +02:00
cmGlobalJOMMakefileGenerator(cmake* cm);
2020-08-30 11:54:41 +02:00
static std::unique_ptr<cmGlobalGeneratorFactory> NewFactory()
2016-07-09 11:21:54 +02:00
{
2020-08-30 11:54:41 +02:00
return std::unique_ptr<cmGlobalGeneratorFactory>(
new cmGlobalGeneratorSimpleFactory<cmGlobalJOMMakefileGenerator>());
2016-07-09 11:21:54 +02:00
}
2019-11-11 23:01:05 +01:00
//! Get the name for the generator.
2018-08-09 18:06:22 +02:00
std::string GetName() const override
2016-07-09 11:21:54 +02:00
{
return cmGlobalJOMMakefileGenerator::GetActualName();
}
2010-03-17 14:00:29 +02:00
// use NMake Makefiles in the name so that scripts/tests that depend on the
// name NMake Makefiles will work
2016-07-09 11:21:54 +02:00
static std::string GetActualName() { return "NMake Makefiles JOM"; }
2010-03-17 14:00:29 +02:00
/** Get the documentation entry for this generator. */
2023-05-23 16:38:00 +02:00
static cmDocumentationEntry GetDocumentation();
2013-03-16 19:13:01 +02:00
2010-03-17 14:00:29 +02:00
/**
2015-04-27 22:25:09 +02:00
* Try to determine system information such as shared library
2013-03-16 19:13:01 +02:00
* extension, pthreads, byte order etc.
2010-03-17 14:00:29 +02:00
*/
2018-08-09 18:06:22 +02:00
void EnableLanguage(std::vector<std::string> const& languages, cmMakefile*,
bool optional) override;
2023-12-07 09:12:54 +01:00
bool IsGNUMakeJobServerAware() const override { return false; }
2018-08-09 18:06:22 +02:00
protected:
2019-11-11 23:01:05 +01:00
std::vector<GeneratedMakeCommand> GenerateBuildCommand(
const std::string& makeProgram, const std::string& projectName,
const std::string& projectDir, std::vector<std::string> const& targetNames,
2022-03-29 21:10:50 +02:00
const std::string& config, int jobs, bool verbose,
const cmBuildOptions& buildOptions = cmBuildOptions(),
2019-11-11 23:01:05 +01:00
std::vector<std::string> const& makeOptions =
std::vector<std::string>()) override;
2016-07-09 11:21:54 +02:00
2015-11-17 17:22:37 +01:00
private:
void PrintCompilerAdvice(std::ostream& os, std::string const& lang,
2021-11-20 13:41:27 +01:00
cmValue envVar) const override;
2010-03-17 14:00:29 +02:00
};