1 /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2 file Copyright.txt or https://cmake.org/licensing for details. */
10 #include "cmGlobalGeneratorFactory.h"
11 #include "cmGlobalUnixMakefileGenerator3.h"
16 struct cmDocumentationEntry;
18 /** \class cmGlobalJOMMakefileGenerator
19 * \brief Write a JOM makefiles.
21 * cmGlobalJOMMakefileGenerator manages nmake build process for a tree
23 class cmGlobalJOMMakefileGenerator : public cmGlobalUnixMakefileGenerator3
26 cmGlobalJOMMakefileGenerator(cmake* cm);
27 static std::unique_ptr<cmGlobalGeneratorFactory> NewFactory()
29 return std::unique_ptr<cmGlobalGeneratorFactory>(
30 new cmGlobalGeneratorSimpleFactory<cmGlobalJOMMakefileGenerator>());
32 //! Get the name for the generator.
33 std::string GetName() const override
35 return cmGlobalJOMMakefileGenerator::GetActualName();
37 // use NMake Makefiles in the name so that scripts/tests that depend on the
38 // name NMake Makefiles will work
39 static std::string GetActualName() { return "NMake Makefiles JOM"; }
41 /** Get the documentation entry for this generator. */
42 static void GetDocumentation(cmDocumentationEntry& entry);
45 * Try to determine system information such as shared library
46 * extension, pthreads, byte order etc.
48 void EnableLanguage(std::vector<std::string> const& languages, cmMakefile*,
49 bool optional) override;
52 std::vector<GeneratedMakeCommand> GenerateBuildCommand(
53 const std::string& makeProgram, const std::string& projectName,
54 const std::string& projectDir, std::vector<std::string> const& targetNames,
55 const std::string& config, int jobs, bool verbose,
56 const cmBuildOptions& buildOptions = cmBuildOptions(),
57 std::vector<std::string> const& makeOptions =
58 std::vector<std::string>()) override;
61 void PrintCompilerAdvice(std::ostream& os, std::string const& lang,
62 cmValue envVar) const override;