Coverage Report

Created: 2026-10-28 06:38

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
19.9k
  {
29
19.9k
    return std::unique_ptr<cmGlobalGeneratorFactory>(
30
19.9k
      new cmGlobalGeneratorSimpleFactory<cmGlobalWatcomWMakeGenerator>());
31
19.9k
  }
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
0
  bool TargetNamesAreCaseInsensitive() const override { return true; }
58
59
  std::string GetShortBinaryOutputDir() const override;
60
61
protected:
62
  std::vector<GeneratedMakeCommand> GenerateBuildCommand(
63
    std::string const& makeProgram, std::string const& projectName,
64
    std::string const& projectDir, std::vector<std::string> const& targetNames,
65
    std::string const& config, int jobs, bool verbose,
66
    cmBuildOptions buildOptions = cmBuildOptions(),
67
    std::vector<std::string> const& makeOptions = std::vector<std::string>(),
68
    BuildTryCompile isInTryCompile = BuildTryCompile::No) override;
69
70
  void PrintBuildCommandAdvice(std::ostream& os, int jobs) const override;
71
};