Coverage Report

Created: 2026-02-09 06:05

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/CMake/Source/cmGlobalWatcomWMakeGenerator.h
Line
Count
Source
1
/* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
2
   file LICENSE.rst or https://cmake.org/licensing for details.  */
3
#pragma once
4
5
#include "cmConfigure.h" // IWYU pragma: keep
6
7
#include <iosfwd>
8
#include <memory>
9
#include <string>
10
#include <vector>
11
12
#include "cmBuildOptions.h"
13
#include "cmGlobalGeneratorFactory.h"
14
#include "cmGlobalUnixMakefileGenerator3.h"
15
16
class cmake;
17
18
/** \class cmGlobalWatcomWMakeGenerator
19
 * \brief Write a NMake makefiles.
20
 *
21
 * cmGlobalWatcomWMakeGenerator manages nmake build process for a tree
22
 */
23
class cmGlobalWatcomWMakeGenerator : public cmGlobalUnixMakefileGenerator3
24
{
25
public:
26
  cmGlobalWatcomWMakeGenerator(cmake* cm);
27
  static std::unique_ptr<cmGlobalGeneratorFactory> NewFactory()
28
35
  {
29
35
    return std::unique_ptr<cmGlobalGeneratorFactory>(
30
35
      new cmGlobalGeneratorSimpleFactory<cmGlobalWatcomWMakeGenerator>());
31
35
  }
32
  //! Get the name for the generator.
33
  std::string GetName() const override
34
0
  {
35
0
    return cmGlobalWatcomWMakeGenerator::GetActualName();
36
0
  }
37
0
  static std::string GetActualName() { return "Watcom WMake"; }
38
39
  /** Get the documentation entry for this generator.  */
40
  static cmDocumentationEntry GetDocumentation();
41
42
  /** Tell the generator about the target system.  */
43
  bool SetSystemName(std::string const& s, cmMakefile* mf) override;
44
45
  /**
46
   * Try to determine system information such as shared library
47
   * extension, pthreads, byte order etc.
48
   */
49
  void EnableLanguage(std::vector<std::string> const& languages, cmMakefile*,
50
                      bool optional) override;
51
52
0
  bool AllowNotParallel() const override { return false; }
53
0
  bool AllowDeleteOnError() const override { return false; }
54
55
0
  bool IsGNUMakeJobServerAware() const override { return false; }
56
57
  std::string GetShortBinaryOutputDir() const override;
58
59
protected:
60
  std::vector<GeneratedMakeCommand> GenerateBuildCommand(
61
    std::string const& makeProgram, std::string const& projectName,
62
    std::string const& projectDir, std::vector<std::string> const& targetNames,
63
    std::string const& config, int jobs, bool verbose,
64
    cmBuildOptions buildOptions = cmBuildOptions(),
65
    std::vector<std::string> const& makeOptions = std::vector<std::string>(),
66
    BuildTryCompile isInTryCompile = BuildTryCompile::No) override;
67
68
  void PrintBuildCommandAdvice(std::ostream& os, int jobs) const override;
69
};