1 /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2 file Copyright.txt or https://cmake.org/licensing for details. */
5 #include "cmConfigure.h" // IWYU pragma: keep
12 #include "cmBuildOptions.h"
13 #include "cmGlobalGeneratorFactory.h"
14 #include "cmGlobalUnixMakefileGenerator3.h"
18 struct cmDocumentationEntry;
20 /** \class cmGlobalWatcomWMakeGenerator
21 * \brief Write a NMake makefiles.
23 * cmGlobalWatcomWMakeGenerator manages nmake build process for a tree
25 class cmGlobalWatcomWMakeGenerator : public cmGlobalUnixMakefileGenerator3
28 cmGlobalWatcomWMakeGenerator(cmake* cm);
29 static std::unique_ptr<cmGlobalGeneratorFactory> NewFactory()
31 return std::unique_ptr<cmGlobalGeneratorFactory>(
32 new cmGlobalGeneratorSimpleFactory<cmGlobalWatcomWMakeGenerator>());
34 //! Get the name for the generator.
35 std::string GetName() const override
37 return cmGlobalWatcomWMakeGenerator::GetActualName();
39 static std::string GetActualName() { return "Watcom WMake"; }
41 /** Get the documentation entry for this generator. */
42 static void GetDocumentation(cmDocumentationEntry& entry);
44 /** Tell the generator about the target system. */
45 bool SetSystemName(std::string const& s, cmMakefile* mf) override;
48 * Try to determine system information such as shared library
49 * extension, pthreads, byte order etc.
51 void EnableLanguage(std::vector<std::string> const& languages, cmMakefile*,
52 bool optional) override;
54 bool AllowNotParallel() const override { return false; }
55 bool AllowDeleteOnError() const override { return false; }
58 std::vector<GeneratedMakeCommand> GenerateBuildCommand(
59 const std::string& makeProgram, const std::string& projectName,
60 const std::string& projectDir, std::vector<std::string> const& targetNames,
61 const std::string& config, int jobs, bool verbose,
62 const cmBuildOptions& buildOptions = cmBuildOptions(),
63 std::vector<std::string> const& makeOptions =
64 std::vector<std::string>()) override;
66 void PrintBuildCommandAdvice(std::ostream& os, int jobs) const override;