cmGlobalWatcomWMakeGenerator.h 2 KB
Newer Older
1 2
/* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
   file Copyright.txt or https://cmake.org/licensing for details.  */
3 4 5
#ifndef cmGlobalWatcomWMakeGenerator_h
#define cmGlobalWatcomWMakeGenerator_h

6
#include "cmConfigure.h" // IWYU pragma: keep
7 8

#include "cmGlobalGeneratorFactory.h"
9
#include "cmGlobalUnixMakefileGenerator3.h"
10

11
#include <iosfwd>
12 13 14 15 16 17 18
#include <string>
#include <vector>

class cmMakefile;
class cmake;
struct cmDocumentationEntry;

19 20 21 22 23 24 25 26
/** \class cmGlobalWatcomWMakeGenerator
 * \brief Write a NMake makefiles.
 *
 * cmGlobalWatcomWMakeGenerator manages nmake build process for a tree
 */
class cmGlobalWatcomWMakeGenerator : public cmGlobalUnixMakefileGenerator3
{
public:
27
  cmGlobalWatcomWMakeGenerator(cmake* cm);
28 29 30 31
  static cmGlobalGeneratorFactory* NewFactory()
  {
    return new cmGlobalGeneratorSimpleFactory<cmGlobalWatcomWMakeGenerator>();
  }
32
  //! Get the name for the generator.
33
  std::string GetName() const override
34 35 36 37
  {
    return cmGlobalWatcomWMakeGenerator::GetActualName();
  }
  static std::string GetActualName() { return "Watcom WMake"; }
38 39

  /** Get the documentation entry for this generator.  */
40
  static void GetDocumentation(cmDocumentationEntry& entry);
41

42
  /**
43
   * Try to determine system information such as shared library
44
   * extension, pthreads, byte order etc.
45
   */
46
  void EnableLanguage(std::vector<std::string> const& languages, cmMakefile*,
47
                      bool optional) override;
48

49 50
  bool AllowNotParallel() const override { return false; }
  bool AllowDeleteOnError() const override { return false; }
51 52

protected:
53 54 55 56 57 58
  std::vector<GeneratedMakeCommand> GenerateBuildCommand(
    const std::string& makeProgram, const std::string& projectName,
    const std::string& projectDir, std::vector<std::string> const& targetNames,
    const std::string& config, bool fast, int jobs, bool verbose,
    std::vector<std::string> const& makeOptions =
      std::vector<std::string>()) override;
59 60

  void PrintBuildCommandAdvice(std::ostream& os, int jobs) const override;
61 62 63
};

#endif